Abstract
By using analytic tools it is shown that the expected value of the heightH n of binary search trees of sizen is asymptotically given by EH n =c logn+\(\mathcal{O}\) (log logn) and its variance by VH n =\(\mathcal{O}\)((log logn)2), wherec=4.31107 …. The same bounds have been obtained by Devroye and Reed [3] by completely different methods.
Similar content being viewed by others
References
L. Devroye, A note on the height of binary search trees,J. Assoc. Comput. Mach. 33 (1986), 489–498.
L. Devroye, Branching processes in the analysis of the height of trees,Acta Inform. 24 (1987), 277–298.
L. Devroye and B. Reed, On the variance of the height of random binary search trees,SIAM J. Comput. 24 (1995), 1157–1162.
M. Drmota and M. Soria, Marking in combinatorial constructions: generating functions and limiting distributions,Theoret. Comput. Sci. 144 (1995), 67–99.
X. Gourdon, Unpublished manuscript, 1995.
P. Jacquet and W. Szpankowski, Asymptotic behaviour of the Lempel-Ziv parsing scheme and digital search trees,Theoret. comput. Sci. 144 (1995), 161–197.
H. M. Mahmoud,Evolution of Random Search Trees, Wiley, New York, 1992.
L. Moser and M. Wyman, Asymptotic developments of the Stirling numbers of the first kind,J. London Math. Soc. 33 (1958), 133–146.
B. Pittel, On growing random binary trees,J. Math. Anal. Appl. 103 (1984), 461–480.
J. M. Robson, The height of binary search trees,Austral. Comput. J. 11 (1979), 151–153.
J. M. Robson, Personal communication.
Author information
Authors and Affiliations
Additional information
Communicated by H. Prodinger and W. Szpankowski.
Dedicated to Philippe Flajolet on the occasion of his 50th birthday
This research was supported by the Austrian Science Foundation FWF, Grant P10187-MAT.
Online publication September 22, 2000.
Rights and permissions
About this article
Cite this article
Drmota, M. An analytic approach to the height of binary search trees. Algorithmica 29, 89–119 (2001). https://doi.org/10.1007/BF02679615
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF02679615