Abstract
Randomized algorithms are often enjoyed for their simplicity, but the hash functions used to yield the desired theoretical guarantees are often neither simple nor practical. Here we show that the simplest possible tabulation hashing provides unexpectedly strong guarantees. The scheme itself dates back to Carter and Wegman (STOC'77). Keys are viewed as consisting of c characters. We initialize c tables T1, ..., Tc mapping characters to random hash codes. A key x = (x1, ..., xc) is hashed to T1[x1] ⊕ ... ⊕ Tc[xc], where ⊕ denotes xor. While this scheme is not even 4-independent, we show that it provides many of the guarantees that are normally obtained via higher independence, e.g., Chernoff-type concentration, min-wise hashing for estimating set intersection, and cuckoo hashing.
Original language | English |
---|---|
Title of host publication | Proceedings of the 43rd annual ACM symposium on Theory of computing |
Number of pages | 10 |
Publisher | Association for Computing Machinery |
Publication date | 2011 |
Pages | 1-10 |
ISBN (Print) | 978-1-4503-0691-1 |
DOIs | |
Publication status | Published - 2011 |
Externally published | Yes |
Event | 43rd ACM Symposium on Theory of Computing - San Jose, California, United States Duration: 6 Jun 2011 → 8 Jun 2011 Conference number: 43 |
Conference
Conference | 43rd ACM Symposium on Theory of Computing |
---|---|
Number | 43 |
Country/Territory | United States |
City | San Jose, California |
Period | 06/06/2011 → 08/06/2011 |