Linear Probing with 5-wise Independence
Author(s) -
Anna Pagh,
Rasmus Pagh,
Milan Ružić
Publication year - 2011
Publication title -
siam review
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 4.683
H-Index - 120
eISSN - 1095-7200
pISSN - 0036-1445
DOI - 10.1137/110827831
Subject(s) - hash function , double hashing , linear hashing , dynamic perfect hashing , universal hashing , logarithm , hash table , k independent hashing , computer science , linear space , theoretical computer science , independence (probability theory) , function (biology) , mathematics , algorithm , discrete mathematics , statistics , mathematical analysis , computer security , evolutionary biology , biology
Hashing with linear probing dates back to the 1950s and is among the most studied algorithms for storing (key, value) pairs. In recent years it has become one of the most important hash table organizations since it uses the cache of modern computers very well. Unfortunately, previous analyses rely either on complicated and space consuming hash functions, or on the unrealistic assumption of free access to a hash function with random and independent function values. Carter and Wegman, in their seminal paper on universal hashing, raised the question of extending their analysis to linear probing. However, we show in this paper that linear probing using a 2-wise independent hash function may have expected logarithmic cost per operation. Recently, Paˇtraşcu and Thorup have shown that 3- and 4-wise independent hash functions may also give rise to logarithmic expected query time. On the positive side, we show that 5-wise independence is enough to ensure constant expected time per operation. This resolves the question of finding a space and time efficient hash function that provably ensures good performance for hashing with linear probing.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom