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

\( k \) STACKs in one structure, beyond the book More...

Files

file  ADS/stack/MultiStack.h
 \( k \) STACKs in one structure [see ADT.h], beyond the book: the items of all the stacks are cells of a single vector, each linked to the cell below it in its stack, and the free cells form a further list, so that the stacks share the space and none is full while the others have room (the vector, a std::vector, grows by a constant factor when all the cells are used).

Classes

class  ADS::MultiStack< T >
 \( k \) stacks sharing a vector of linked cells More...

Detailed description

\( k \) STACKs in one structure, beyond the book

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