Abstract
A bulk insertion for a given set of keys inserts all keys in the set into a leaf-oriented AVL-tree. Similarly, a bulk deletion deletes them all. The bulk insertion is simple if all keys fall in the same leaf position in the AVL-tree. We prove that simple bulk insertions and deletions of m keys have amortized complexity O(log m) for the tree adjustment phase. Our reasoning implies easy proofs for the amortized constant rebalancing cost of single insertions and deletions in AVL-trees. We prove that in general, the bulk operation composed of several simple ones of sizes m 1,..., m k has amortized complexity O(Σ ki=1 log m i).
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 Landis. An algorithm for the organisation of information. Dokl. Akad. Nauk SSSR 146 (1962), 263–266 (in Russian); English Translation in Soviet. Math. 3, 1259–1262.
L. Arge, K.H. Hinrichs, J. Vahrenhold, and J.S. Vitter. Efficient bulk operations on dynamic R-trees. Algorithmica 33 (2002), 104–128.
A. Gärtner, A. Kemper, D. Kossmann, B. Zeller. Efficient bulk deletes in relational databases. In: Proceedings of the 17th International Conference on Data Engineering. IEEE Computer Society, 2001, pp. 183–192.
S. Hanke and E. Soisalon-Soininen. Group updates for red-black trees. In: Proceedings of the 4th Italian Conference on Algorithms and Complexity, Lecture Notes in Computer Science 1767. Springer-Verlag, 2000, pp. 253–262.
S. Huddleston and K. Mehlhorn. A new data structure for representing sorted lists. Acta Informatica 17 (1982), 157–184.
C. Jermaine, A. Datta, and E. Omiecinski. A novel index supporting high volume data warehouse insertion. In: Proceedings of the 25th International Conference on Very Large Databases. Morgan Kaufmann Publishers, 1999, pp. 235–246.
D.E. Knuth. The Art of Computer Programming, Volume 3, Sorting and Searching, Second Edition. Addison-Wesley, Reading, Mass., 1998.
T.-W. Kuo, C-H. Wei, and K.-Y. Lam. Real-time data access control on B-tree index structures. In: Proceedings of the 15th International Conference on Data Engineering. IEEE Computer Society, 1999, pp. 458–467.
K.S. Larsen. Relaxed multi-way trees with group updates. In: Proceedings of the 20th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems. ACM Press, 2001, pp. 93–101.
L. Malmi and E. Soisalon-Soininen. Group updates for relaxed height-balanced trees. In: Proceedings of the 18th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems. ACM Press, 1999, pp. 358–367.
K. Mehlhorn. Data Structures and Algorithms, Vol. 1: Sorting and Searching, Springer-Verlag, 1986.
K. Mehlhorn and A. Tsakalidis. An amortized analysis of insertions into AVL-trees. SIAM Journal on Computing 15:1 (1986), 22–33.
K. Pollari-Malmi, E. Soisalon-Soininen, and T. Ylönen. Concurrency control in B-trees with batch updates. IEEE Transactions on Knowledge and Data Engineering 8 (1996), 975–984.
K. Pollari-Malmi, J. Ruuth, and E. Soisalon-Soininen. Concurrency control in B-trees with differential indices. In: Proceedings of the International Database Engineering and Applications Symposium. IEEE Computer Society, 2000, pp. 287–295.
R.E. Tarjan. Amortized computational complexity. SIAM Journal on Algebraic and Discrete Methods 6 (1985), 306–318.
A.K. Tsakalidis. Rebalancing operations for deletions in AVL-trees. RAIRO Inform. Theorique 19:4 (1985), 323–329.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Soisalon-Soininen, E., Widmayer, P. (2002). Amortized Complexity of Bulk Updates in AVL-Trees. In: Penttonen, M., Schmidt, E.M. (eds) Algorithm Theory — SWAT 2002. SWAT 2002. Lecture Notes in Computer Science, vol 2368. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45471-3_45
Download citation
DOI: https://doi.org/10.1007/3-540-45471-3_45
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43866-3
Online ISBN: 978-3-540-45471-7
eBook Packages: Springer Book Archive