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

Perfect hashing of a static set, beyond the book. More...

Files

file  ADS/dictionary/PerfectHashing.h
 Perfect hashing of a static set, beyond the book: a function is perfect on a set \( S \) of \( n \) keys if it has no collision on \( S \), minimal if its range is \( \{ 0 , \ldots , n - 1 \} \), and order preserving if it maps the keys in their order; a table built on it searches in \( O( 1 ) \) time in the worst case, as the table with direct access [see DirectTable.h], but in \( O( n ) \) space instead of the size of the universe.

Classes

class  ADS::PerfectHashTable
 a static SET of integers on the two-level perfect hashing More...
class  ADS::OrderedMinimalPerfectHash< K >
 the function of Czech, Havas and Majewski that maps \( \mathit{keys}[ i ] \) to \( i \) More...

Detailed description

Perfect hashing of a static set, beyond the book.

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