|
ADS
Algorithms and Data Structures
|
The scapegoat tree of Galperin and Rivest, the general balanced tree of Andersson (section 8.1 of Morin), beyond the book. More...
Files | |
| file | ADS/tree/ScapegoatTree.h |
| The scapegoat tree of Galperin and Rivest, the general balanced tree of Andersson (section 8.1 of Morin), beyond the book: a binary search tree with no balance information in its nodes, whose height stays at most \( \log_b q \), \( q \) an upper bound on the number of keys that satisfies \( q / 2 \le n \le q \) and \( 1 < b < 2 \) a parameter (\( b = 3 / 2 \) in Morin, \( b = 1 / \alpha \) in Galperin and Rivest), by rebuilding subtrees into perfectly balanced ones. | |
Classes | |
| class | ADS::ScapegoatTree< K, V, StoredSizes > |
| a DICTIONARY on a scapegoat tree of height at most \( \log_b q \), whose nodes keep the size of their subtree if StoredSizes More... | |
The scapegoat tree of Galperin and Rivest, the general balanced tree of Andersson (section 8.1 of Morin), beyond the book.
The definitions, the invariants and the costs of the area are in Theory of trees.