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

The dual array deque of section 2.5 of Morin's book, beyond the book. More...

Files

file  ADS/sequence/DualArrayDeque.h
 The dual array deque of section 2.5 of Morin's book, beyond the book: a LIST by rank made of two stacks back to back, \( F \) with the first items from the top and \( B \) with the others from the bottom, so that the item of rank \( i \) is \( F[ |F| - 1 - i ] \) for \( i < |F| \) and \( B[ i - |F| ] \) otherwise.

Classes

class  ADS::DualArrayDeque< T, S >
 a LIST by rank on two stacks S back to back, balanced More...

Detailed description

The dual array deque of section 2.5 of Morin's book, beyond the book.

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