Skip to main content
Log in

An analytic approach to the height of binary search trees

  • Published:
Algorithmica Aims and scope Submit manuscript

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.

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. L. Devroye, A note on the height of binary search trees,J. Assoc. Comput. Mach. 33 (1986), 489–498.

    MATH  MathSciNet  Google Scholar 

  2. L. Devroye, Branching processes in the analysis of the height of trees,Acta Inform. 24 (1987), 277–298.

    Article  MATH  MathSciNet  Google Scholar 

  3. L. Devroye and B. Reed, On the variance of the height of random binary search trees,SIAM J. Comput. 24 (1995), 1157–1162.

    Article  MATH  MathSciNet  Google Scholar 

  4. M. Drmota and M. Soria, Marking in combinatorial constructions: generating functions and limiting distributions,Theoret. Comput. Sci. 144 (1995), 67–99.

    Article  MATH  MathSciNet  Google Scholar 

  5. X. Gourdon, Unpublished manuscript, 1995.

  6. P. Jacquet and W. Szpankowski, Asymptotic behaviour of the Lempel-Ziv parsing scheme and digital search trees,Theoret. comput. Sci. 144 (1995), 161–197.

    Article  MATH  MathSciNet  Google Scholar 

  7. H. M. Mahmoud,Evolution of Random Search Trees, Wiley, New York, 1992.

    MATH  Google Scholar 

  8. L. Moser and M. Wyman, Asymptotic developments of the Stirling numbers of the first kind,J. London Math. Soc. 33 (1958), 133–146.

    Article  MATH  MathSciNet  Google Scholar 

  9. B. Pittel, On growing random binary trees,J. Math. Anal. Appl. 103 (1984), 461–480.

    Article  MATH  MathSciNet  Google Scholar 

  10. J. M. Robson, The height of binary search trees,Austral. Comput. J. 11 (1979), 151–153.

    MathSciNet  Google Scholar 

  11. J. M. Robson, Personal communication.

Download references

Author information

Authors and Affiliations

Authors

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

Reprints 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

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

Key Words

Navigation