Module grove::trees::avl [−][src]
Expand description
Implementation of AVL trees. Balanced by keeping track of node ranks, this is a worst-case balancing Algorithm that has a small memory overhead per node.
Structs
An AVL tree. Balanced by keeping track of node ranks, this is a worst-case balancing Algorithm that has a small memory overhead per node.
A walker struct for AVLTree
.
Functions
Concatenates the trees together, in place, with a given value for the middle.
Complexity: O(log n)
. More precisely, O(dr)
where dr
is the difference of ranks between the two trees.