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