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