Skip to main content
Log in

Balancing m-ary search trees with compressions on the fringe

  • Original Article
  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract

We investigate the performance of random m-ary trees grown under an algorithm that perfectly balances k levels, whenever the opportunity arises in a fringe subtree. The average-case analysis shows that considerable saving in space and search time is achieved by such a fringe balancing algorithm.

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.

Fig. 1
Fig. 2

Similar content being viewed by others

Notes

  1. The and: in the conditional statement is the abortive version, which does not check the second condition if the first is false.

References

  1. Aldous, D., Flannery, B., Palacios, J.L.: Two applications of urn processes the fringe analysis of search trees and the simulation of quasi-stationary distributions of Markov chains. Probab. Eng. Inf. Sci. 2, 293–307 (1988)

    Article  Google Scholar 

  2. Chern, H., Hwang, H.: Phase changes in random \(m\)-ary search trees and generalized Quicksort. Random Struct. Algorithms 19, 316–358 (2001)

    Article  MathSciNet  Google Scholar 

  3. Comer, D.: The ubiquitous B-tree. Comput. Surveys 11, 121–137 (1979)

    Article  Google Scholar 

  4. Devroye, L.: On the expected height of fringe-balanced trees. Acta Inf. 30, 459–466 (1993)

    Article  MathSciNet  Google Scholar 

  5. Frobenius, G.: Über matrizen aus nicht negativen elementen. Sitzungsber, Königl. Preuss. Akad. Wiss. 456–477 (1912)

  6. Janson, S.: Mean and variance of balanced Pólya urns. Adv. Appl. Probab. 52, 1224–1248 (2020)

    Article  MathSciNet  Google Scholar 

  7. Knuth, D.: The Art of Computer Programming, vol. 3. Addison-Wesley, Reading (1973)

    Google Scholar 

  8. Mahmoud, H.: Evolution of Random Search Trees. Wiley, New York (1992)

    Google Scholar 

  9. Mahmoud, H.: On rotations in fringe-balanced binary trees. Inf. Process. Lett. 65, 41–46 (1998)

    Article  MathSciNet  Google Scholar 

  10. Mahmoud, H.: Pólya Urn Models. Chapman-Hall, Orlando (2008)

    Book  Google Scholar 

  11. Mahmoud, H., Pittel, B.: Analysis of the space of search trees under the random insertion algorithm. J. Algorithms 10, 52–75 (1989)

    Article  MathSciNet  Google Scholar 

  12. Panholzer, A., Prodinger, H.: An analytic approach for the analysis of rotations in fringe-balanced binary search trees. Ann. Combin. 2, 173–184 (1998)

    Article  MathSciNet  Google Scholar 

  13. Perron, O.: Zur theorie der matrices. Math. Ann. 64, 248–263 (1907)

    Article  MathSciNet  Google Scholar 

  14. Poblete, P., Munro, J.: The analysis of a fringe heuristic for binary search trees. J. Algorithms 6, 336–350 (1985)

    Article  MathSciNet  Google Scholar 

  15. Ross, S.: Stochastic Processes. John Wiley, New York (1983)

    Google Scholar 

  16. Smythe, R.: Central limit theorems for urn models. Stochastic Processes Appl. 65, 115–137 (1996)

    Article  MathSciNet  Google Scholar 

  17. Baeze-Yates, R.: Fringe analysis revisited. Assoc. Comput. Mach.: Comput. Surveys 27, 109–119 (1995)

    Google Scholar 

  18. Régnier, M.: A limiting distribution for quicksort. RAIRO-Theor. Inf. Appl. 23, 335–343 (1989)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgements

The authors sincerely thank two anonymous reviewers for their careful scrutiny and insightful remarks which significantly improved the exposition.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hosam Mahmoud.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Gao, S., Hatem, L. & Mahmoud, H. Balancing m-ary search trees with compressions on the fringe. Acta Informatica 61, 53–66 (2024). https://doi.org/10.1007/s00236-023-00448-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00236-023-00448-2

Mathematics Subject Classifications

Navigation