节点文献

一种简化的AVL树的实现方法

A Development of AVL Tree:HAVL Tree

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 刘绍翰; 高天行; 黄志球;

【Author】 Liu Shaohan Gao Tianxing Huang Zhiqiu(College of Information Science & Technology,Nanjing Univ.of Aeronautics & Astronautics,Nanjing 210093,China)

【机构】 南京航空航天大学信息科学与技术学院;

【摘要】 平衡二叉查找树是计算机中有效地组织大规模查找数据的主要手段,因为在树的创建、节点的插入、删除过程中都维持了树的平衡.AVL树是平衡二叉查找树,但是AVL树在创建、插入、删除时维护树的平衡操作需要按照平衡因子的不同情况分别进行处理,程序长,实现过程繁杂.本文利用树的高度提出一种新的AVL平衡树数学描述—高度平衡树(HAVL),并进行了理论分析:HAVL在旋转操作的同时维持节点的高度信息,从而使位于上层的函数不必重新计算统计域,维持树的平衡的各种情况可以统一简洁处理,该数学描述简洁,程序实现直观,程序实现代码量小,维持平衡的C语言代码是一般AVL平衡树的代码长度的大约1/5左右.实验结果表明,HAVL能够保持AVL树的优秀特性,运行时间更短.

【Abstract】 Balance binary search tree is the main way to organize the data for searching in the large scale data,because the tree is maintain balanced when create tree,insert node into tree and delete node form tree.The classical AVL tree is most widely used balance binary search tree,which maintains balance when inserting node,deleting node and creating tree according to the balance factor;the process is tedious and program is long.We propose a new mathematic model of AVL tree using the height of tree:Height AVL(HAVL) tree and analysis of its performance.The HAVL tree maintains the height of sub tree of AVL during rotation so that the upper maintain process do not compute the information repeatly.The principle of HAVL tree is as same as AVL tree;but it is concise and easy to be implemented;the length of code of HAVL maintaining balance implemented using C language is about 20% of AVL.The experiment shows the HAVL inherits the advantage of AVL and run faster.

【关键词】 AVL树; 平衡二叉查找树; 平衡; 旋转; 高度;
【Key words】 AVL tree; balance binary search tree; balance; rotation; height;
【基金】 国家“863”计划基金资助项目(2009AA044601)
  • 【文献出处】 三峡大学学报(自然科学版) ,Journal of China Three Gorges University(Natural Sciences) , 编辑部邮箱 ,2011年01期
  • 【分类号】TP311.12
  • 【被引频次】9
  • 【下载频次】248
节点文献中: 

本文链接的文献网络图示:

本文的引文网络