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