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