Balancing binary trees by internal path reduction

Author:

Gonnet Gaston H.1

Affiliation:

1. Univ. of Waterloo, Waterloo, Ont., Canada

Abstract

We present an algorithm for balancing binary search trees. In this algorithm single or double rotations are performed when they decrease the internal path of the total tree. It is shown that the worst internal path on such trees is never more than 5 percent worse than optimal and that its height is never more than 44 percent taller than optimal. This compares favorably with the AVL trees whose internal path may be 28 percent worse than optimal and the same 44 percent worst height, and with the weight-balanced trees which may be 15 and 100 percent worse than optimal, respectively. On the other hand, the number of rotations during a single insertion/deletion can be O(n), although the amortized worst-case number of rotations is O(log n) per update.

Publisher

Association for Computing Machinery (ACM)

Subject

General Computer Science

Reference32 articles.

1. An algorithm for the organization of information. Dokl. Akad. Nauk U.S;Adel'son-Vel'skii G.M.;S.B.,1962

2. Weight-balanced trees

3. A comparison of tree-balancing algorithms

4. A storage scheme for height-balanced trees

5. A Partial Analysis of Random Height-Balanced Trees

Cited by 21 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Shuffle Tree: A Randomized Self-Adjusting Binary Search Tree;2023-07-11

2. UPDATE-EFFICIENT DATA STRUCTURES FOR DYNAMIC IP ROUTER TABLES;International Journal of Foundations of Computer Science;2007-04

3. UPDATE-EFFICIENT DATA STRUCTURES FOR DYNAMIC IP ROUTER TABLES;International Journal of Foundations of Computer Science;2007-02

4. Echtzeit-Suchprozessor-Architekturen;e & i Elektrotechnik und Informationstechnik;1998-03

5. ISA [k] trees: A class of binary search trees with minimal or near minimal internal path length;Software: Practice and Experience;1993-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3