A note on the height of binary search trees
Journal of the ACM (JACM)
Branching processes in the analysis of the heights of trees
Acta Informatica
SIAM Journal on Applied Mathematics
On the Variance of the Height of Random Binary Search Trees
SIAM Journal on Computing
Asymptotic enumeration methods
Handbook of combinatorics (vol. 2)
The art of computer programming, volume 3: (2nd ed.) sorting and searching
The art of computer programming, volume 3: (2nd ed.) sorting and searching
Pertrubations: theory and methods
Pertrubations: theory and methods
STOC '00 Proceedings of the thirty-second annual ACM symposium on Theory of computing
Average Case Analysis of Algorithms on Sequences
Average Case Analysis of Algorithms on Sequences
Heights in Generalized Tries and PATRICIA Tries
LATIN '00 Proceedings of the 4th Latin American Symposium on Theoretical Informatics
An analytic approach to the height of binary search trees II
Journal of the ACM (JACM)
Handbook of Mathematical Functions, With Formulas, Graphs, and Mathematical Tables,
Handbook of Mathematical Functions, With Formulas, Graphs, and Mathematical Tables,
Reductions in binary search trees
Theoretical Computer Science
Binary Search Trees, Recurrent Properties andWave Equations
Fundamenta Informaticae
Binary Search Trees, Recurrent Properties andWave Equations
Fundamenta Informaticae
Hi-index | 5.23 |
We study the height of the binary search tree--the most fundamental data structure used for searching. We assume that the binary search tree is built from a random permutation of n elements. Under this assumption, we study the limiting distribution of the height as n → ∞. We show that the distribution has six asymptotic regions (scales). These correspond to different ranges of k and n, where Pr{Hn ≤ k} is the height distribution. In the critical region (the so-called central region), where most of the probability mass is concentrated, the limiting distribution satisfies a non-linear integral equation. While we cannot solve this equation exactly, we show that both tails of the distribution are roughly of a double exponential form. From our analysis, we conclude that the average height E[Hn] ∼ A log n - 3/2[A/(A-1)]log log n, where A = 4.311 ... is the unique solution of x logx - x - xlog2 + 1 = 0, x 1, while the variance Var[Hn] = O(1). The second term in the expansion of E[{kn] and the rate of growth of the variance were also recently obtained by B. Reed who used probabilistic arguments, while M. Drmota established the growth of the variance by analytic methods. Our analysis makes certain assumptions about the forms of some asymptotic expansions, as well as their asymptotic matching.