0
A hash table of size 7 uses double hashing with h1(k) = k mod 7 and h2(k) = 5 − (k mod 5). The keys 14, 21 and 28 are inserted in this order. In which slot is the key 28 stored?
- A0
- B6
- C4
- D2
Correct answer: D
A hash table of size 7 uses double hashing with h1(k) = k mod 7 and h2(k) = 5 − (k mod 5). The keys 14, 21 and 28 are inserted in this order. In which slot is the key 28 stored?