Skip to main content

Amortized Complexity of Bulk Updates in AVL-Trees

  • Conference paper
  • First Online:
Book cover Algorithm Theory — SWAT 2002 (SWAT 2002)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2368))

Included in the following conference series:

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).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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.

    MathSciNet  Google Scholar 

  2. L. Arge, K.H. Hinrichs, J. Vahrenhold, and J.S. Vitter. Efficient bulk operations on dynamic R-trees. Algorithmica 33 (2002), 104–128.

    Article  MATH  MathSciNet  Google Scholar 

  3. 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.

    Google Scholar 

  4. 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.

    Google Scholar 

  5. S. Huddleston and K. Mehlhorn. A new data structure for representing sorted lists. Acta Informatica 17 (1982), 157–184.

    Article  MATH  MathSciNet  Google Scholar 

  6. 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.

    Google Scholar 

  7. D.E. Knuth. The Art of Computer Programming, Volume 3, Sorting and Searching, Second Edition. Addison-Wesley, Reading, Mass., 1998.

    Google Scholar 

  8. 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.

    Google Scholar 

  9. 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.

    Google Scholar 

  10. 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.

    Google Scholar 

  11. K. Mehlhorn. Data Structures and Algorithms, Vol. 1: Sorting and Searching, Springer-Verlag, 1986.

    Google Scholar 

  12. K. Mehlhorn and A. Tsakalidis. An amortized analysis of insertions into AVL-trees. SIAM Journal on Computing 15:1 (1986), 22–33.

    Article  MATH  MathSciNet  Google Scholar 

  13. 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.

    Article  Google Scholar 

  14. 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.

    Google Scholar 

  15. R.E. Tarjan. Amortized computational complexity. SIAM Journal on Algebraic and Discrete Methods 6 (1985), 306–318.

    Article  MATH  MathSciNet  Google Scholar 

  16. A.K. Tsakalidis. Rebalancing operations for deletions in AVL-trees. RAIRO Inform. Theorique 19:4 (1985), 323–329.

    MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics