Skip to main content
Log in

Aspects of insertion in random trees

Aspekte bei der Einfügung in Zufallsbäume

  • Published:
Computing Aims and scope Submit manuscript

Abstract

A method formulated by Yao and used by Brown has yielded bounds on the fraction of nodes with specified properties in trees bult by a sequence of random internal nodes in a random tree built by binary search and insertion, and show that in such a tree about bounds better than those now known. We then apply these methods to weight-balanced trees and to a type of “weakly balanced” trees. We determine the distribution of the weight-balance factors of the internal nodes in a random tree built by binary search and insertion and show that in such a tree about 72% of all internal nodes have weight balance factors lying between\(1 - \sqrt 2 /2\) and\(\sqrt 2 /2\).

Zusammenfassung

Eine Methode, die von Yao formuliert und von Brown angewendet wurde, gestattet es, schranken für den Anteil von Knoten mit bestimmten Eigenschaften in Bäumen anzugeben, die durch eine Folge von zufälligen Einfügungen entstehen. Für den Fall von AVL-Bäumen (höhenbalanziert) zeigen wird, daß solche Methoden nicht erweitert werden können, um bessere Schranken als die bisher bekannten zu berechnen. Dann wenden wir diese Methode auf gewichtsbalanzierte Bäume und auf eine Art von “schwach balanzierten” Bäumen an und bestimmen die Verteilung der gewichtsbalanzierten Faktoren der inneren Knoten in einem Zufallsbaum, der durch binäre Suche und Einfügen entsteht; ferner zeigen wir, daß in einem solchen Baum ungefähr 72% der inneren Knoten gewichtsbalanzierte Faktoren zwischen\(1 - \sqrt 2 /2\) und\(\sqrt 2 /2\) haben.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Bagchi, A., Reingold, E. M.: A naturally occurring function continuous only at irrationals. Amer. Math. Monthly89 (1982).

  2. Blum, N., Mehlhorn, K.: On the average number of rebalancing operations in weight-balanced trees. Technical Report A-78/06, Fachbereich Angewandte Mathematik und Informatik, Universität des Saarlandes, Saarbrücken, Federal Republic of Germany, June 1978.

    Google Scholar 

  3. Brown, M. R.: A partial analysis of random height-balanced trees. SIAM J. Comp.8, 33–41 (1979).

    Article  Google Scholar 

  4. Knuth, D. E.: The art of computer programming; Vol. 3: Sorting and searching. Reading, Mass.: Addison-Wesley 1972.

    Google Scholar 

  5. Nievergelt, J., Reingold, E. M.: Binary search trees of bounded balance. SIAM J. Comp.2, 33–43 (1973).

    Article  Google Scholar 

  6. Reingold, E. M., Nievergelt, J., Deo, N.: Combinatorial algorithms: theory and practice. Englewood Cliffs, N.J.: Prentice-Hall 1977.

    Google Scholar 

  7. Yao, A. C.-C.: On random 2–3 trees. Acta Informatica9, 159–170 (1978).

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Bagchi, A., Reingold, E.M. Aspects of insertion in random trees. Computing 29, 11–29 (1982). https://doi.org/10.1007/BF02254848

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02254848

AMS Subject Classification

Key words

Navigation