期刊文献+

一种新的删除HB(k)树的结点的算法 被引量:2

New algorithm for deleting node from HB(k) tree
下载PDF
导出
摘要 Foster的删除HB(k)树的结点的算法的主要思想是先删除结点再自下而上处理某些子树,涉及自下而上的后退。提出一种新的删除HB(k)树的结点的算法,其主要思想是先自上而下处理某些子树再删除结点,不涉及自下而上的后退。举例说明新算法的执行过程。证明新算法是正确的。与Foster的删除HB(k)树的结点的算法相比,新算法不涉及辅助栈的使用。设n是HB(k)树的结点的个数。新算法的时间复杂性是O(log2n),与Foster的删除HB(k)树的结点的算法的相同。实验结果表明新算法的平均执行时间比Foster的删除HB(k)树的结点的算法短。新算法的空间复杂性是O(1),比Foster的删除HB(k)树的结点的算法低。 The main idea of Foster's algorithm for deleting a node from an HB(k) tree is to delete the node first and then to process certain subtrees from below to above,relating to the backtracking from below to above.A new algorithm for deleting a node from an HB(k) tree is presented,whose main idea is to process certain subtrees from above to below first and then to delete the node,instead of relating to the backtracking from below to above.The execution of the new algorithm is illustrated by an example.The new algorithm is proved correct.Compared with Foster's algorithm for deleting a node from an HB(k) tree,the new algorithm does not relate to the use of an auxiliary stack.Let n be the number of nodes of an HB (k) tree.The time complexity of the new algorithm is O(log2n),and it is the same as that of Foster's algorithm for deleting a node from an HB (k) tree.Experimental results show that the average execution time of the new algorithm is shorter than that of Foster's algorithm for delet ing a node from an HB(k) tree.The space complexity of the new algorithm is O(1),and it is lower than that of Foster's algorithm for deleting a node from an HB(k) tree.
作者 唐自立
出处 《计算机工程与应用》 CSCD 北大核心 2007年第5期45-48,共4页 Computer Engineering and Applications
基金 江苏省高校自然科学研究计划项目(the Natural Science Research Project of Higher Education of Jiangsu Province China under Grant No.03KJB520128)
关键词 HB(k)树 结点 删除 旋转 HB (k) tree node deletion rotation
  • 相关文献

参考文献6

二级参考文献8

  • 1唐自立.一种新的删除AVL树的结点的算法[J].计算机应用与软件,2005,22(4):107-109. 被引量:4
  • 2施伯乐,数据结构,1988年
  • 3Knuth D.E.,The Art of Computer Programming,Vol.3:Sorting and Searching[M],2nd ed,Reading ,MA,Addison-Wesley,1998.
  • 4Kruse R.L.,Ryba A.J.,Data Structures and Program Design in C+ + [M],Upper Saddle River,NJ:Prentice Hall,1999.
  • 5陈琳.两个关于平衡树的结点删除算法.《计算机应用与软件》,1987,4(5):34-43.
  • 6Cormen T. H. Leiserson C. E. Rivest R L, Stein C, Introduction to Algorithms[ M ] ,2nd ed, Cambridge, MA : MIT Press ,2001.
  • 7Weiss M. A, Data Structures and Algorithm Analysis in C ++ [ M] ,2nd ed, Reading, MA : Addlson-Wesley Longman, 1999.
  • 8唐自立.基于遍历序列的唯一确定树或二叉树的方法[J].小型微型计算机系统,2001,22(8):985-988. 被引量:11

共引文献18

同被引文献5

  • 1唐自立.一种新的删除红黑树的结点的算法[J].计算机应用与软件,2006,23(1):139-141. 被引量:6
  • 2唐自立.红黑树的高度[J].苏州大学学报(自然科学版),2006,22(3):33-36. 被引量:4
  • 3Andersson A.Balanced search trees made simple [C]//Eecture Notes in Computer Science 709.Proceedings of the 3rd Workshop on Algorithms and Data Structures,London:Springer-Verlag, 1993:60-71.
  • 4Weiss M A.Data structures and algorithm analysis in C++[M].2nd ed.Reading,MA:Addison-Wesley Longman, 1999.
  • 5Th. Ottmann,H. W. Six,D. Wood. One-sided k-height-balanced trees[J] 1979,Computing(4):283~290

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部