arXiv · 2406.05162
Comparative Performance of the AVL Tree and Three Variants of the Red-Black Tree
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.
Explore related subjects
Keep this discovery
Russell A. Brown. 2024-06-07. Comparative Performance of the AVL Tree and Three Variants of the Red-Black Tree. https://doi.org/10.1002/spe.3437
Cite the original work for its findings. Save a collection to share your selection of sources.