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.
Similar content being viewed by others
Notes
The and: in the conditional statement is the abortive version, which does not check the second condition if the first is false.
References
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)
Chern, H., Hwang, H.: Phase changes in random \(m\)-ary search trees and generalized Quicksort. Random Struct. Algorithms 19, 316–358 (2001)
Comer, D.: The ubiquitous B-tree. Comput. Surveys 11, 121–137 (1979)
Devroye, L.: On the expected height of fringe-balanced trees. Acta Inf. 30, 459–466 (1993)
Frobenius, G.: Über matrizen aus nicht negativen elementen. Sitzungsber, Königl. Preuss. Akad. Wiss. 456–477 (1912)
Janson, S.: Mean and variance of balanced Pólya urns. Adv. Appl. Probab. 52, 1224–1248 (2020)
Knuth, D.: The Art of Computer Programming, vol. 3. Addison-Wesley, Reading (1973)
Mahmoud, H.: Evolution of Random Search Trees. Wiley, New York (1992)
Mahmoud, H.: On rotations in fringe-balanced binary trees. Inf. Process. Lett. 65, 41–46 (1998)
Mahmoud, H.: Pólya Urn Models. Chapman-Hall, Orlando (2008)
Mahmoud, H., Pittel, B.: Analysis of the space of search trees under the random insertion algorithm. J. Algorithms 10, 52–75 (1989)
Panholzer, A., Prodinger, H.: An analytic approach for the analysis of rotations in fringe-balanced binary search trees. Ann. Combin. 2, 173–184 (1998)
Perron, O.: Zur theorie der matrices. Math. Ann. 64, 248–263 (1907)
Poblete, P., Munro, J.: The analysis of a fringe heuristic for binary search trees. J. Algorithms 6, 336–350 (1985)
Ross, S.: Stochastic Processes. John Wiley, New York (1983)
Smythe, R.: Central limit theorems for urn models. Stochastic Processes Appl. 65, 115–137 (1996)
Baeze-Yates, R.: Fringe analysis revisited. Assoc. Comput. Mach.: Comput. Surveys 27, 109–119 (1995)
Régnier, M.: A limiting distribution for quicksort. RAIRO-Theor. Inf. Appl. 23, 335–343 (1989)
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
Corresponding author
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.
About this article
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
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00236-023-00448-2