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