[prev] 44 [next]

Exercise 5: Insertion into Linear Hashed File

Consider a file with b=4, c=3, d=2, sp=0, hash(x) as above

Insert tuples in alpha order with the following keys and hashes:

khash(k)    khash(k)    khash(k)    khash(k)
a10001   g00000   m11001   s01110
b11010   h00000   n01000   t10011
c01111   i10010   o00110   u00010
d01111   j10110   p11101   v11111
e01100   k00101   q00010   w10000
f00010   l00101   r00000   x00111

The hash values are the 5 lower-order bits from the full 32-bit hash.