Skip to main content
Log in

Branching processes in the analysis of the heights of trees

  • Published:
Acta Informatica Aims and scope Submit manuscript

Summary

It is shown how the theory of branching processes can be applied in the analysis of the expected height of random trees. In particular, we will study the height of random binary search trees, random k—d trees, quadtrees and union-find trees under various models of randomization. For example, for the random binary search tree constructed from a random permutation of 1,..., n, it is shown that H n/(c log(n)) tends to 1 in probability and in the mean as n→∞, where H n is the height of the tree, and c =4.31107... is a solution of the equation \(\left( {\frac{{2e}}{c}} \right) = 1\). In addition, we show that \(H_n - c log (n) = {\text{O}}(\sqrt {log(n)loglog(n)} )\) in probability.

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. Aho, A.V., Hopcroft, J.E., Ullman, J.D.: The design and analysis of computer algorithms. Reading, Mass.: Addison-Wesley 1975

    Google Scholar 

  2. Aho, A.V., Hopcroft, J.E., Ullman, J.D.: Data structures and algorithms. Reading, Mass.: Addison-Wesley 1983

    Google Scholar 

  3. Athreya, K.B., Ney, P.E.: Branching processes. Berlin-Heidelberg-New York: Springer 1972

    Google Scholar 

  4. Bentley, J.L., Stanat, D.F.: Analysis of range searches in quad trees. Inf. Proc. Lett. 3, 170–173 (1975)

    Google Scholar 

  5. Bentley, J.L.: Multidimensional binary search trees used for associative searching. Commun. ACM 18, 509–517 (1975)

    Google Scholar 

  6. Biggins, J.D.: The first and last-birth problems for a multitype age-dependent branching process. Adv. Appl. Probab. 8, 446–459 (1976)

    Google Scholar 

  7. Biggins, J.D.: Chernoff's theorem in the branching random walk. J. Appl. Probab. 14, 630–636 (1977)

    Google Scholar 

  8. Brown, G.G., Shubert, B.O.: On random binary trees. Math. Oper. Res. 9, 43–65 (1984)

    Google Scholar 

  9. de Bruijn, N.G., Knuth, D.E., Rice, S.O.: The average height of planted plane trees. In: Read, R.-C. (ed.) Graph Theory and Computing, pp. 15–22. New York: Academic Press 1972

    Google Scholar 

  10. Chow, Y.S., Teicher, H.: Probability theory. Berlin-Heidelberg-New York: Springer 1978

    Google Scholar 

  11. Devroye, L.: A note on the expected height of binary search trees. J. ACM 33, 489–498 (1986)

    Google Scholar 

  12. Finkel, R.A., Bentley, J.L.: Quad trees: a data structure for retrieval on composite keys. Acta Inf. 4, 1–9 (1974)

    Google Scholar 

  13. Flajolet, P., Odlyzko, A.: The average height of binary trees and other simple trees. J. Comput. Syst. Sci. 25, 171–213 (1982)

    Google Scholar 

  14. Flajolet, P., Steyaert, J.M.: A branching process arising in dynamic hashing, trie searching and polynomial factorization. Lect. Notes Comput. Sci., vol. 140, pp. 239–251. Berlin-Heidelberg New York: Springer 1982

    Google Scholar 

  15. Flajolet, P.: On the performance evaluation of extendible hashing and trie search. Acta Inf. 20, 345–369 (1983)

    Google Scholar 

  16. Gonnet, G.H.: Unpublished handwritten letter. (1983)

  17. Harris, T.E.: The theory of branching processes. Berlin-Heidelberg-New York: Springer 1963

    Google Scholar 

  18. Kemp, R.: On the stack size of regularly distributed binary trees. 6th ICALP Conference, held at Udine, Italy, 1979

  19. Knuth, D.E.: The art of computer programming, vol. 1. Fundamental algorithms, 2nd Ed. Reading, Mass.: Addison-Wesley 1973

    Google Scholar 

  20. Knuth, D.E.: The art of computer programming, vol. 3. Sorting and searching. Reading, Mass.: Addison-Wesley 1973

    Google Scholar 

  21. Knuth, D.E., Schonhage, A.: The expected linearity of a simple equivalence algorithm. Theor. Comput. Sci. 6, 281–315 (1978)

    Google Scholar 

  22. Kounias, E.G.: Bounds for the probability of a union, with applications. Ann. Math. Statist. 39, 2154–2158(1968)

    Google Scholar 

  23. Lee, D.T., Wong, C.K.: Worst-case analysis for region and partial region searches in multidimensional binary search trees and quad trees. Acta Inf. 9, 23–29 (1977)

    Google Scholar 

  24. Mendelson, H.: Analysis of extendible hashing. IEEE Trans. Software Eng. 8, 611–619 (1982)

    Google Scholar 

  25. Pittel, B.: Asymptotical growth of a class of random trees. Ann. Probab. 13, 414–427 (1985)

    Google Scholar 

  26. Pittel, B.: Paths in a random digital tree: limiting distributions. Adv. Appl. Probab. 18, 139–155 (1986)

    Google Scholar 

  27. Rao, C.R.: Linear statistical inference and its applications. New York: John Wiley 1973

    Google Scholar 

  28. Regnier, M.: On the average height of trees in digital search and dynamic hashing. Inf. Process. Lett. 13, 64–66 (1982)

    Google Scholar 

  29. Renyi, A., Szekeres, G.: On the height of trees. J. Aust. Math. Soc. 7, 497–507 (1967)

    Google Scholar 

  30. Robson, J.M.: The height of binary search trees. Aust. Comput. J. 11, 151–153 (1979)

    Google Scholar 

  31. Samet, H.: The quadtree and related hierarchical data structures. Comput. Surv. 16, 187–260 (1984)

    Google Scholar 

  32. Savage, I.R.: Probability inequalities of the Tchebycheff type. Res. Nat. Bur. Stand. 65, 211–222 (1961)

    Google Scholar 

  33. Standish, T.A.: Data structure techniques. Reading, Mass.: Addison-Wesley 1980

    Google Scholar 

  34. Stepanov, V.E.: On the distribution of the number of vertices in strata of a random tree. Theory Probab. Appl. 14, 65–78 (1969)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

Research of the author was sponsored by NSERC Grant A3456 and by FCAC Grant EQ-1678

Rights and permissions

Reprints and permissions

About this article

Cite this article

Devroye, L. Branching processes in the analysis of the heights of trees. Acta Informatica 24, 277–298 (1987). https://doi.org/10.1007/BF00265991

Download citation

  • Received:

  • Issue Date:

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

Keywords

Navigation