question 1
An empty table of 7 slots puts in 60, 4, 11 and 89, in that order. How many probes do the four puts make in all?
the answer, and why
the answer is A
60, 4 and 11 have home 4; 89 has home 5. 60 takes slot 4, 1 probe. 4 walks to slot 5, 2 probes. 11 walks slots 4 and 5 to slot 6, 3 probes. 89 finds slot 5 taken by 4, then slot 6 by 11, and takes slot 0, 3 probes. That is 9.
if you chose another
- That counts 1 probe a put, as if every home were free.
- That counts 89 as 1 probe, as if its home were free, but 4 took slot 5 on its walk.
- That leaves out 89's put, which makes 3 probes.