Back to Search Start Over

Tetris–Hashing or optimal table compression

Authors :
Klaus Simon
Bernhard Seybold
Nicola Galli
Source :
Discrete Applied Mathematics. 110:41-58
Publication Year :
2001
Publisher :
Elsevier BV, 2001.

Abstract

In this paper, we present a new method for mapping a static set of n keys, each an integer between 0 and N−1, into a hash table of size n without any collision. Our data structure requires only an additional array of n integers, each less than n, and achieves a worst-case lookup time of O(1). This method is based on a randomized compression scheme, and it finds a minimal perfect hash function in average time O(n). Our concept can be easily adapted for dynamic key sets. Then, the hash table has no longer minimal size but the storage location remains very small. Because of its simplicity our approach is particularly interesting for practical purposes.

Details

ISSN :
0166218X
Volume :
110
Database :
OpenAIRE
Journal :
Discrete Applied Mathematics
Accession number :
edsair.doi.dedup.....6d3c10d9b236f526c94475936f9b55bf
Full Text :
https://doi.org/10.1016/s0166-218x(00)00302-4