|
ADS
Algorithms and Data Structures
|
The multiset on a hash table (exercise 8.10). More...
Files | |
| file | ADS/set/HashMultiset.h |
| The multiset on a hash table (exercise 8.10): a counter of occurrences per item, which the insertion of a new item sets to 1 and of an item already there increases by 1, and the removal decreases, removing the item at 0; each operation costs \( O( 1 ) \) expected time. | |
Classes | |
| class | ADS::HashMultiset< T, H > |
| a multiset on a hash table, a counter of occurrences per item: the insertion of a new item sets it to 1, of an item already there adds 1, the removal subtracts 1 and removes the item at 0 (exercise 8.10) More... | |
The multiset on a hash table (exercise 8.10).
The definitions, the invariants and the costs of the area are in Theory of sets.