question 1
An empty table of 7 slots puts in 31, 38, 52 and 25, in that order. How many probes do the four puts make in all?
the answer, and why
the answer is A
31, 38 and 52 have home 3; 25 has home 4. 31 takes slot 3, 1 probe. 38 walks to slot 4, 2 probes. 52 walks slots 3 and 4 to slot 5, 3 probes. 25 finds slot 4 taken by 38, then slot 5 by 52, 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 25 as 1 probe, as if its home were free, but 38 took slot 4 on its walk.
- That leaves out 25's put, which makes 3 probes.