|
ADS
Algorithms and Data Structures
|
The space-efficient list of section 3.3 of Morin's book, beyond the book. More...
Files | |
| file | ADS/sequence/SEList.h |
| The space-efficient list of section 3.3 of Morin's book, beyond the book: a doubly linked list of blocks, each a circular buffer of at most \( b + 1 \) items (an unrolled list), the blocks but the first and the last holding between \( b - 1 \) and \( b + 1 \) items, so that the \( n \) items take \( n + O( b + n / b ) \) places and pointers where a List [see List.h] takes \( 2 n \) pointers more, and a walk reads \( b \) items per block. | |
Classes | |
| class | ADS::SEList< T > |
| a list of blocks of \( b - 1 \) to \( b + 1 \) items, with \( O( n / b ) \) pointers More... | |
The space-efficient list of section 3.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.