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

The treque (triple ended queue) of exercise 2.3 of Morin's book, beyond the book. More...

Files

file  ADS/sequence/Treque.h
 The treque (triple ended queue) of exercise 2.3 of Morin's book, beyond the book: a LIST by rank whose operator[] takes \( O( 1 ) \) time and whose insertions and removals at the rank \( i \) take \( O( 1 + \min\{ i , n - i , | n / 2 - i | \} ) \) amortized time, fast near either end and near the middle.

Classes

class  ADS::Treque< T >
 a LIST by rank fast at both ends and in the middle, on two circular deques More...

Detailed description

The treque (triple ended queue) of exercise 2.3 of Morin's book, beyond the book.

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