|
ADS
Algorithms and Data Structures
|
The binary search tree of Morin whose nodes keep the size, the depth and the height of their subtree (exercise 6.19 of Morin), beyond the book. More...
Files | |
| file | ADS/tree/MeasuredSearchTree.h |
| The binary search tree of Morin whose nodes keep the size, the depth and the height of their subtree (exercise 6.19 of Morin), beyond the book: a DICTIONARY [see ADT.h] with the find(x) of an SSet (lowerBound()) and the getLE(x) of exercise 6.14, whose insertions and removals keep the three measures of every node exact for a constant factor on the plain tree, \( O( h ) \) time. | |
Classes | |
| class | ADS::MeasuredSearchTree< K, V > |
| a DICTIONARY on a binary search tree whose nodes keep the size, the depth and the height of their subtree More... | |
The binary search tree of Morin whose nodes keep the size, the depth and the height of their subtree (exercise 6.19 of Morin), beyond the book.
The definitions, the invariants and the costs of the area are in Theory of trees.