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