|
ADS
Algorithms and Data Structures
|
The AVL tree of Adelson-Velsky and Landis, beyond the book. More...
Files | |
| file | ADS/tree/AVLTree.h |
| The AVL tree of Adelson-Velsky and Landis, beyond the book [see SearchTree.h for the Red-Black tree of chapter 6]: a binary search tree whose every node has subtrees of heights differing by at most 1, so that its height is below \( 1.4405 \log_2( n + 2 ) \), a little more balanced than a Red-Black tree (whose bound is \( 2 \log_2( n + 1 ) \)), at the price of more rotations on the updates. | |
Classes | |
| struct | ADS::AVLTreeNodes< K, V > |
| the adaptor of the nodes of an AVLTree [see JoinAdaptor] More... | |
| class | ADS::AVLTree< K, V > |
| a DICTIONARY on an AVL tree, with the operations based on join [see Joinable] More... | |
The AVL tree of Adelson-Velsky and Landis, beyond the book.
The definitions, the invariants and the costs of the area are in Theory of trees.