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