|
ADS
Algorithms and Data Structures
|
The SET on a hash table whose foreach follows the order of insertion (exercise 8.9). More...
Files | |
| file | ADS/set/LinkedHashSet.h |
| The SET on a hash table whose foreach follows the order of insertion (exercise 8.9): a LIST keeps the items in that order and the table maps each item to its position, so insert(), remove() and contains() take \( O( 1 ) \) expected time and forEach() \( O( n ) \). | |
Classes | |
| class | ADS::LinkedHashSet< T, H > |
| a set on a hash table whose foreach follows the order of insertion: a LIST keeps the items in that order and the table maps each item to its position, so insert(), remove() and contains() take \( O( 1 ) \) expected time and forEach() \( O( n ) \) (exercise 8.9) More... | |
The SET on a hash table whose foreach follows the order of insertion (exercise 8.9).
The definitions, the invariants and the costs of the area are in Theory of sets.