Comparative Performance of the AVL Tree and Three Variants of the Red-Black Tree
Russell A. Brown

TL;DR
This paper compares the performance of AVL trees and three variants of red-black trees, analyzing their efficiency in insertion and deletion operations under different key orderings.
Contribution
It provides a detailed performance comparison of AVL and red-black tree variants, including an analysis of an alternative deletion algorithm.
Findings
Bottom-up red-black trees are faster than AVL for random insertions and deletions.
AVL trees outperform bottom-up red-black trees for insertions of consecutive keys.
Left-leaning red-black trees are slower than other variants for all tested operations.
Abstract
This article compares the performance of the AVL tree to the performance of the bottom-up, top-down, and left-leaning red-black trees. The bottom-up red-black tree is faster than the AVL tree for insertion and deletion of randomly ordered keys. The AVL tree is faster than the bottom-up red-black tree for insertion but slower for deletion of consecutively ordered keys. The top-down red-black tree is faster than the bottom-up red-black tree for insertion but slower for deletion of randomly ordered keys, and slower for insertion and deletion of consecutively ordered keys. The left-leaning red-black tree is slower than the three other trees for insertion and deletion of randomly and consecutively ordered keys. An alternative deletion algorithm, which reduces the number of rebalancing operations required by deletion, is analyzed.
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Manufacturing and Logistics Optimization · Embedded Systems Design Techniques · Formal Methods in Verification
