ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
FingerTreap.h

The treap with finger search of exercise 7.9 of Morin, beyond the book. More...

Files

file  ADS/tree/FingerTreap.h
 The treap with finger search of exercise 7.9 of Morin, beyond the book: a treap [see Treap.h] whose nodes keep their parent, the size of their subtree and its smallest and largest node, so that a search may start from any node \( u \) rather than from the root: it climbs to the first ancestor \( w \) whose subtree spans the key, \( w.\mathit{min} \le k \le w.\mathit{max} \), and goes down from it as usual.

Classes

class  ADS::FingerTreap< K, V >
 a DICTIONARY on a treap with the parents, the sizes and the extremes of the subtrees, searched from a finger More...

Detailed description

The treap with finger search of exercise 7.9 of Morin, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of trees.