Model Question Paper (as circulated)Part A · Q73 marksCO4Module 4
Question 7
Let the size of a hash table is 8. The index of the hash table varies from 0 to 7. Assume the keys 73, 54, 15, 48, 89, 66, 37, 18 are mapped using modulo operator. Show how the keys are distributed using hashing
Transcription notes:
- No collision strategy is specified, yet two collisions occur (k mod 8: 73→1, 54→6, 15→7, 48→0, 89→1, 66→2, 37→5, 18→2 — so 73/89 collide at 1 and 66/18 at 2). A strategy must be assumed; the linked simulator uses chaining and can be switched to linear probing.
Topics: Hashing and hash functions
Watch this exact question run
Loading visualizer…
Solution not published yet
We only publish answers that have been checked. Study the linked topic meanwhile.