Hashing24 PDF
Hashing24 PDF
Performance :
Much better than linear or quadratic probing.
Does not suffer from clustering
BUT requires computation of a second function 5
m = 13
sequence of keys: 18-26-35-9-64-47-96-36-70
h1(k) = k mod 13
Insert the sequence into a hash table using
linear probing
quadratic probing
double hashing with h2(k) = k mod 7 + 6
Hashing - rehashing