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.
Similar content being viewed by others
References
Aho, A.V., Hopcroft, J.E., Ullman, J.D.: The design and analysis of computer algorithms. Reading, Mass.: Addison-Wesley 1975
Aho, A.V., Hopcroft, J.E., Ullman, J.D.: Data structures and algorithms. Reading, Mass.: Addison-Wesley 1983
Athreya, K.B., Ney, P.E.: Branching processes. Berlin-Heidelberg-New York: Springer 1972
Bentley, J.L., Stanat, D.F.: Analysis of range searches in quad trees. Inf. Proc. Lett. 3, 170–173 (1975)
Bentley, J.L.: Multidimensional binary search trees used for associative searching. Commun. ACM 18, 509–517 (1975)
Biggins, J.D.: The first and last-birth problems for a multitype age-dependent branching process. Adv. Appl. Probab. 8, 446–459 (1976)
Biggins, J.D.: Chernoff's theorem in the branching random walk. J. Appl. Probab. 14, 630–636 (1977)
Brown, G.G., Shubert, B.O.: On random binary trees. Math. Oper. Res. 9, 43–65 (1984)
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
Chow, Y.S., Teicher, H.: Probability theory. Berlin-Heidelberg-New York: Springer 1978
Devroye, L.: A note on the expected height of binary search trees. J. ACM 33, 489–498 (1986)
Finkel, R.A., Bentley, J.L.: Quad trees: a data structure for retrieval on composite keys. Acta Inf. 4, 1–9 (1974)
Flajolet, P., Odlyzko, A.: The average height of binary trees and other simple trees. J. Comput. Syst. Sci. 25, 171–213 (1982)
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
Flajolet, P.: On the performance evaluation of extendible hashing and trie search. Acta Inf. 20, 345–369 (1983)
Gonnet, G.H.: Unpublished handwritten letter. (1983)
Harris, T.E.: The theory of branching processes. Berlin-Heidelberg-New York: Springer 1963
Kemp, R.: On the stack size of regularly distributed binary trees. 6th ICALP Conference, held at Udine, Italy, 1979
Knuth, D.E.: The art of computer programming, vol. 1. Fundamental algorithms, 2nd Ed. Reading, Mass.: Addison-Wesley 1973
Knuth, D.E.: The art of computer programming, vol. 3. Sorting and searching. Reading, Mass.: Addison-Wesley 1973
Knuth, D.E., Schonhage, A.: The expected linearity of a simple equivalence algorithm. Theor. Comput. Sci. 6, 281–315 (1978)
Kounias, E.G.: Bounds for the probability of a union, with applications. Ann. Math. Statist. 39, 2154–2158(1968)
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)
Mendelson, H.: Analysis of extendible hashing. IEEE Trans. Software Eng. 8, 611–619 (1982)
Pittel, B.: Asymptotical growth of a class of random trees. Ann. Probab. 13, 414–427 (1985)
Pittel, B.: Paths in a random digital tree: limiting distributions. Adv. Appl. Probab. 18, 139–155 (1986)
Rao, C.R.: Linear statistical inference and its applications. New York: John Wiley 1973
Regnier, M.: On the average height of trees in digital search and dynamic hashing. Inf. Process. Lett. 13, 64–66 (1982)
Renyi, A., Szekeres, G.: On the height of trees. J. Aust. Math. Soc. 7, 497–507 (1967)
Robson, J.M.: The height of binary search trees. Aust. Comput. J. 11, 151–153 (1979)
Samet, H.: The quadtree and related hierarchical data structures. Comput. Surv. 16, 187–260 (1984)
Savage, I.R.: Probability inequalities of the Tchebycheff type. Res. Nat. Bur. Stand. 65, 211–222 (1961)
Standish, T.A.: Data structure techniques. Reading, Mass.: Addison-Wesley 1980
Stepanov, V.E.: On the distribution of the number of vertices in strata of a random tree. Theory Probab. Appl. 14, 65–78 (1969)
Author information
Authors and Affiliations
Additional information
Research of the author was sponsored by NSERC Grant A3456 and by FCAC Grant EQ-1678
Rights 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
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00265991