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