Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Performance of height-balanced trees

Published: 01 January 1976 Publication History
  • Get Citation Alerts
  • Abstract

    This paper presents the results of simulations that investigate the performance of height-balanced (HB[k]) trees. It is shown that the only statistic of HB[1] trees (AVL trees) that is a function of the size of the tree is the time to search for an item in the tree. For sufficiently large trees, the execution times of all procedures for maintaining HB[1] trees are independent of the size of the tree. In particular, an average of .465 restructures are required per insertion, with an average of 2.78 nodes revisited to restore the HB[1] property; an average of .214 restructures are required per deletion, with an average of 1.91 nodes revisited to restore the HB[1] property. Moreover, the execution times of procedures for maintaining HB[k] trees, for k > 1, are also independent of the size of the tree except for the average number of nodes revisited on a delete operation in order to restore the HB[k] property on traceback. The cost of maintaining HB[k] trees drops sharply as the allowable imbalance (k) increases. Both analytical and experimental results that show the cost of maintaining HB[k] trees as a function of k are discussed.

    References

    [1]
    Adel'son-Vel'skii, G.M., and Landis, E.M. An algorithm for the organization of information. Doklady Akad. Nauk. USSR 146, 2 (1962), 263-266.]]
    [2]
    Feller, W. An Introduction to Probability Theory and Its Applications. Wiley, New York, pp. 275-279.]]
    [3]
    Foster, C.C. Information storage and retrieval using AVL trees. In Proc. ACM 20th Nat. Conf., 1965, pp. 192-205.]]
    [4]
    Foster, C.C. A generalization of AVL trees. Comm. ACM 16, 8 (Aug. 1973), 513-517.]]
    [5]
    Knott, G.D. A balanced tree storage and retrieval algorithm. In Proc. Symp. on Information Storage and Retrieval, J. Minker & S. Rosenfeld (Eds.), U. of Maryland, April 1971, pp. 175-196.]]
    [6]
    Knutb, D. The Art of Computer Programming, Fol. 3, Sorting and Searching. Addison-Wesley, Reading, Mass., 1973, See. 6. 2.3.]]
    [7]
    Kosaraju, S.R. On information storage and retrieval by AVL trees. In Princeton Conf. on Information Storage and Retrieval, Princeton U., 1973.]]
    [8]
    Martin, W.A., and Ness, D.N. Optimizing binary trees grown with a sorting algorithm. Comm. ACM 15, 2 (Feb. 1972), 88-93.]]
    [9]
    Nievergelt, J., and Reingold, E.M. Binary search trees of bounded balance. SIAM J. Computing 4, 1 (March 1973), 33-43.]]
    [10]
    Tan, K.C. On Foster's information storage and retrieval using AVL trees. Comm. ACM 15, 9 (Sept. 1972), 843.]]
    [11]
    Stone, H., and Siewiorek, D.P. Introduction to Computer Organization and Data Structure, PDP-11 Ed. McGraw-Hill, New York, 1975.]]
    [12]
    Wulf, W.A.D., Russell, D.B., and Habermann, A.N. BLISS: A language for systems programming. Comm. ACM 14, 12 (Dec. 1971), 780-790.]]

    Cited By

    View all
    • (2022)Balanced Clustering with a Tree over ClustersJournal of Communications Technology and Electronics10.1134/S106422692113005266:S1(S23-S34)Online publication date: 24-Mar-2022
    • (2018)On Balanced Clustering (Indices, Models, Examples)Journal of Communications Technology and Electronics10.1134/S106422691712010562:12(1506-1515)Online publication date: 27-Feb-2018
    • (2018)A novel time-event-driven algorithm for simulating spiking neural networks based on circular arrayNeurocomputing10.1016/j.neucom.2018.02.085292(121-129)Online publication date: May-2018
    • Show More Cited By

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image Communications of the ACM
    Communications of the ACM  Volume 19, Issue 1
    Jan. 1976
    45 pages
    ISSN:0001-0782
    EISSN:1557-7317
    DOI:10.1145/359970
    Issue’s Table of Contents
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 January 1976
    Published in CACM Volume 19, Issue 1

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. AVL trees
    2. HB[k] trees
    3. balanced trees
    4. information storage and retrieval
    5. searching

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)149
    • Downloads (Last 6 weeks)14

    Other Metrics

    Citations

    Cited By

    View all
    • (2022)Balanced Clustering with a Tree over ClustersJournal of Communications Technology and Electronics10.1134/S106422692113005266:S1(S23-S34)Online publication date: 24-Mar-2022
    • (2018)On Balanced Clustering (Indices, Models, Examples)Journal of Communications Technology and Electronics10.1134/S106422691712010562:12(1506-1515)Online publication date: 27-Feb-2018
    • (2018)A novel time-event-driven algorithm for simulating spiking neural networks based on circular arrayNeurocomputing10.1016/j.neucom.2018.02.085292(121-129)Online publication date: May-2018
    • (2016)A Look at Symmetric Binary B-TreesINFOR: Information Systems and Operational Research10.1080/03155986.1982.1173184920:2(65-81)Online publication date: 25-May-2016
    • (2015)Cache-Sensitive Memory Layout for Dynamic Binary TreesThe Computer Journal10.1093/comjnl/bxv09059:5(630-649)Online publication date: 4-Nov-2015
    • (2014)On counting and embedding a subclass of height-balanced treesModelling and Simulation in Engineering10.1155/2014/7489412014(34-34)Online publication date: 1-Jan-2014
    • (2014)Managing your trees: Insights from a metropolitan-scale low-power wireless network2014 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS)10.1109/INFCOMW.2014.6849310(664-669)Online publication date: Apr-2014
    • (2012)Comparative performance evaluation of the AVL and red-black treesProceedings of the Fifth Balkan Conference in Informatics10.1145/2371316.2371320(14-19)Online publication date: 16-Sep-2012
    • (2011)Rebalancing operations for deletions in AVL-treesRAIRO. Informatique théorique10.1051/ita/198519040323119:4(323-329)Online publication date: 8-Jan-2011
    • (2011)A new class of balanced search trees : half-balanced binary search tressRAIRO. Informatique théorique10.1051/ita/198216010051116:1(51-71)Online publication date: 8-Jan-2011
    • Show More Cited By

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Get Access

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media