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(logm) 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 m1,…, mk has amortized complexity O(Σki=1 log mi).
CITATION STYLE
Soisalon-Soininen, E., & Widmayer, P. (2002). Amortized complexity of bulk updates in AVL-trees. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 2368, pp. 439–448). Springer Verlag. https://doi.org/10.1007/3-540-45471-3_45
Mendeley helps you to discover research relevant for your work.