|
ADS
Algorithms and Data Structures
|
The randomized binary search tree of Martínez and Roura (exercise 7.14 of Morin), beyond the book. More...
Files | |
| file | ADS/tree/RandomizedSearchTree.h |
| The randomized binary search tree of Martínez and Roura (exercise 7.14 of Morin), beyond the book: a binary search tree that stores no priorities but the size of each subtree, and stays a random binary search tree, i.e., of the shape that the insertions of its keys in a uniformly random order give, whatever the order of the operations; the expected depth of a node is \( O( \log n ) \), as in a treap [see Treap.h], and the sizes give the access by rank for free (select(), rank()). | |
Classes | |
| class | ADS::RandomizedSearchTree< K, V > |
| a DICTIONARY on a randomized binary search tree of Martínez and Roura More... | |
The randomized binary search tree of Martínez and Roura (exercise 7.14 of Morin), beyond the book.
The definitions, the invariants and the costs of the area are in Theory of trees.