期刊文献+

红黑树的高度 被引量:4

Height of a red-black tree
下载PDF
导出
摘要 先证明高度是h的准红黑树至少有2「2h﹁+2﹂2h」-2个结点.再证明有n个结点的准红黑树的高度至多是2﹂log2(n+2)」+﹂log2(n+2lo)g-23﹂l-o1g2(n+2)」」-2.最后证明有n个结点的红黑树的高度至多是2﹂log2(n+2)」+﹂log2(n+2lo)g-23﹂l-og12(n+2)」」-2,该式比原来的2﹂log2(n+1)」+1准确.有n个结点的红黑树的高度在﹂log2(n+1)」和2﹂log2(n+2)」+﹂log2(n+2lo)g-23﹂l-og12(n+2)」」-2之间.此文进一步完善了红黑树的性质. Firstly, it is proved that an almost-red-black tree of height h has at least 2┌h/2┐+2└h/2┘-2-2 nodes. Secondly, it is proved that the height of an almost-red-black tree with n nodes is at most 2└log2(n+2)┘+└log2(n+2)-└log2(n+2)┘/log2 3-1┘-2. Finally, it is proved that the height of a red-black tree with n nodes is at 2└log2(n+2)┘+└log2(n+2)-└log2(n+2)┘/log2 3-1┘-2, which is more precise than the original formula, 2└log2(n+1)┘+1. The height of a red-black tree with n nodes is between └log2( n + 1)┘ and 2└log2(n+2)-└log2(n+2)┘/log2 3-1┘-2. The properties of red-black trees are further perfected.
作者 唐自立
出处 《苏州大学学报(自然科学版)》 CAS 2006年第3期33-36,共4页 Journal of Soochow University(Natural Science Edition)
关键词 红黑树 对称二叉B-树 2—3—4树 准红黑树 高度 黑高度 red-black tree symmetric binary B-tree 2-3-4 tree almost-red-black tree height black-height
  • 相关文献

参考文献5

  • 1CORMEN T H,LEISERSON C E,RIVEST R L,et al.Introduction to Algorithms[M].Cambridge,MA:MIT Press,2001.
  • 2唐自立.一种新的删除红黑树的结点的算法[J].计算机应用与软件,2006,23(1):139-141. 被引量:6
  • 3BAASE S,GELDER A V.Computer Algorithms:Introduction to Design and Analysis[M].Reading,MA:Addison-Wesley Longman,2000.
  • 4SAHNI S.Data Structures,Algorithms,and Applications in C++[M].Boston:McGraw-Hill,1998.
  • 5COLLINS W J.Data Structures and the Standard Template Library[M].Boston:McGraw-Hill,2003.

二级参考文献3

  • 1唐自立.一种新的删除AVL树的结点的算法[J].计算机应用与软件,2005,22(4):107-109. 被引量:4
  • 2Cormen T. H. Leiserson C. E. Rivest R L, Stein C, Introduction to Algorithms[ M ] ,2nd ed, Cambridge, MA : MIT Press ,2001.
  • 3Weiss M. A, Data Structures and Algorithm Analysis in C ++ [ M] ,2nd ed, Reading, MA : Addlson-Wesley Longman, 1999.

共引文献5

同被引文献22

  • 1王萍.B-树的性能分析及其在数据搜索中的应用[J].浙江海洋学院学报(自然科学版),2005,24(1):80-81. 被引量:5
  • 2唐自立.一种新的删除红黑树的结点的算法[J].计算机应用与软件,2006,23(1):139-141. 被引量:6
  • 3唐自立.一种新的删除HB(k)树的结点的算法[J].计算机工程与应用,2007,43(5):45-48. 被引量:2
  • 4Andersson 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.
  • 5Weiss M A.Data structures and algorithm analysis in C++[M].2nd ed.Reading,MA:Addison-Wesley Longman, 1999.
  • 6CORMEN T H. , LEISERSON C E, RONSLD L. 算法导论[M].北京:机械工业出版社,2006:1-8.
  • 7Michael Owens. The Definitive Guide to SQLite[M]. New York :Apress,2006.
  • 8夏铭.嵌入式数据库结构及索引查询技术研究.计算机工程与应用,2006,.
  • 9Gongye Zhou, Lanlan Yuan, Jincai Chen. B + Tree Management Method of Object Attributes for ObjectBased Storage [ J ]. Networking, Architecture and Storage (NAS), 2007,17(1): 253-254.
  • 10Nicolai M.losuttis,C + + standard library:a tutorial and reference[M] .Boston:Addis on Wesley Longman Inc,1999:175-216.

引证文献4

二级引证文献6

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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