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

The order maintenance of exercise 8.11 of Morin (his Sequence), beyond the book. More...

Files

file  ADS/sequence/OrderMaintenanceList.h
 The order maintenance of exercise 8.11 of Morin (his Sequence), beyond the book: a list of elements with addAfter( e , v ), which adds a new element right after \( e \) (at the front if \( e \) is nil), in \( O( 1 ) \) amortized time, remove( e ), in \( O( 1 ) \) time, and testBefore( a , b ), whether \( a \) comes before \( b \), in \( O( 1 ) \) time.

Classes

class  ADS::OrderMaintenanceList< T >
 a list of items of type T whose order between two elements is tested in \( O( 1 ) \) by labels on two levels More...

Detailed description

The order maintenance of exercise 8.11 of Morin (his Sequence), beyond the book.

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