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

The hash table with lists of overflow of section 7.2.1, a realization of the DICTIONARY. More...

Files

file  ADS/dictionary/ChainedHashTable.h
 The hash table with lists of overflow of section 7.2.1, a realization of the DICTIONARY [see ADT.h]: the place \( i \) of a vector of size \( m \) holds a LIST with the pairs whose keys have \( H( k ) = i \), insert() puts a new key at the head of its list, lookup() and remove() go along it.

Classes

class  ADS::ChainedHashTable< K, V, C, H >
 a hash table with lists of overflow More...

Enumerations

enum class  ADS::Chain { ADS::Chain::FRONT , ADS::Chain::MOVE_TO_FRONT , ADS::Chain::SORTED }
 how a ChainedHashTable keeps its lists More...

Detailed description

The hash table with lists of overflow of section 7.2.1, a realization of the DICTIONARY.

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

Enumeration type documentation

◆ Chain

enum class ADS::Chain
strong

how a ChainedHashTable keeps its lists

Enumerator
FRONT 

a new key at the head, nothing moves

MOVE_TO_FRONT 

also the key found by lookup() goes to the head

SORTED 

the keys of a list in increasing order