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

The TreapList of exercise 7.11 of Morin, beyond the book. More...

Files

file  ADS/sequence/TreapList.h
 The TreapList of exercise 7.11 of Morin, beyond the book: a sequence with access, insertion and removal at any index in \( O( \log n ) \) expected time, on a treap [see Treap.h] whose symmetric order is the order of the sequence and whose nodes keep the size of their subtree, so that the index of a node is the size of the left subtrees passed on the right along its path (an implicit treap: the keys are the indices, never stored).

Classes

class  ADS::TreapList< T >
 a sequence of items of type T on an implicit treap, the TreapList of Morin More...

Detailed description

The TreapList of exercise 7.11 of Morin, beyond the book.

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