Amortized Rotation Cost in AVL Trees
Mahdi Amani, Kevin A. Lai, and Robert E. Tarjan

TL;DR
This paper constructs specific AVL trees demonstrating that alternating deletions and insertions can cause each deletion to require logarithmic rotations, confirming a conjecture about the amortized cost of such operations.
Contribution
The paper provides the first explicit construction of AVL trees where each deletion can incur () rotations in the amortized case, validating a prior conjecture.
Findings
Constructed infinite families of AVL trees with high amortized rotation costs.
Showed that repeated deletion-insertion pairs can reproduce the original tree.
Confirmed the conjecture that alternating deletions and insertions can cause () rotations.
Abstract
An AVL tree is the original type of balanced binary search tree. An insertion in an -node AVL tree takes at most two rotations, but a deletion in an -node AVL tree can take . A natural question is whether deletions can take many rotations not only in the worst case but in the amortized case as well. A sequence of successive deletions in an -node tree takes rotations, but what happens when insertions are intermixed with deletions? Heaupler, Sen, and Tarjan conjectured that alternating insertions and deletions in an -node AVL tree can cause each deletion to do rotations, but they provided no construction to justify their claim. We provide such a construction: we show that, for infinitely many , there is a set of {\it expensive} -node AVL trees with the property that, given any tree in , deleting a certain leaf and then…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Genomics and Phylogenetic Studies · Advanced Database Systems and Queries
