Something I was curious about from my lecture:
Suppose we want to probe every Rth location for the function x mod 10 and R = 2. Now to hash 4, 14, 114, 1114, and 11114:
- 4 would go in slot 4.
- 14 would first try to get into slot 4, but seeing that it's full, it'll go to slot 6 then (+R).
- 114 would find slot 4 full, going to slot 6 (+R), but since that's full, it'll go to Slot 0 (+2R).
But for 1114, it seems to keep going on forever- no matter where it goes, it'll always run into a full slot. What happens in this case?