Abstract
A new balancing method for binary search trees is presented, which achieves logarithmic worst-case cost on searches and updates. The method uses the sizes of the subtrees as balancing information; therefore operations by rank are efficiently performed without any changes in the data structure. Compared to weighted binary search trees [7], which also achieve logarithmic worst-case cost by making use of the sizes of the subtrees, the operations involved with our method are likely to be less costly in most real situations.
This research was partially supported by the IST Programme of the EU IST-1999-14186 (ALCOM-FT), and by the project DGES PB98-0926 (AEDRI).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
G.M. Adel’son-Vel’skii and E. M. Landis. An algorithm for the organization of information. Dokladi Akademia Nauk SSSR, 146(2):263–266, 1962. English translation in Soviet Math. Doklay 3, 1259-1263, 1962.
A. Andersson. General balanced trees. Journal of Algorithms, 30:1–18, 1999.
N. Blum and K. Mehlhorn. On the average number of rebalancing operations in weight-balanced trees. TCS: Theoretical Computer Science, 11:303–320, 1980.
L.J. Guibas and R. Sedgewick. A dichromatic framework for balanced trees. In Proc. of the 19th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 8–21, October 1978.
D.E. Knuth. The Art of Computer Programming: Sorting and Searching, volume 3. Addison-Wesley, Reading, MA, 2nd edition, 1998.
C. Martínez and S. Roura. Randomized binary search trees. Journal of the ACM, 45(2):288–323, March 1998.
J. Nievergelt and E. Reingold. Binary search trees of bounded balance. SIAM Journal on Computing, 2(1):33–43, 1973.
R. Sedgewick. Algorithms in C. Addison-Wesley, 3rd edition, 1998.
D.D. Sleator and R.E. Tarjan. Self-adjusting binary search trees. Journal of the ACM, 32(3):652–686, July 1985.
M.A. Weiss. Data Structures ℰ Algorithm Analysis in C++. Addison-Wesley, 2nd edition, 1999.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Roura, S. (2001). A New Method for Balancing Binary Search Trees. In: Orejas, F., Spirakis, P.G., van Leeuwen, J. (eds) Automata, Languages and Programming. ICALP 2001. Lecture Notes in Computer Science, vol 2076. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-48224-5_39
Download citation
DOI: https://doi.org/10.1007/3-540-48224-5_39
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-42287-7
Online ISBN: 978-3-540-48224-6
eBook Packages: Springer Book Archive