guess the next step: Hash table with double hashing
Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.
Step 13 of 17
Question 13 of 15
Step 13 of 17
Step 14 of 17
Step 15 of 17
Step 16 of 17
Question 13 of 15
Question 13 of 15
Not this time.
You guessed: The home of 39 is slot 2.
What the run did:
39 leaves 4 when divided by 7, so its home is slot 4.
Question 13 of 15
Not this time.
You guessed: The home of 39 is slot 3.
What the run did:
39 leaves 4 when divided by 7, so its home is slot 4.
Question 13 of 15
Right.
You guessed: The home of 39 is slot 4.
What the run did:
39 leaves 4 when divided by 7, so its home is slot 4.
Question 14 of 15
Question 14 of 15
Not this time.
You guessed: The step of 39 is 3.
What the run did:
39 leaves 4 when divided by 5, so its step is 5: each move goes 5 slots on, round to the start.
Question 14 of 15
Not this time.
You guessed: The step of 39 is 4.
What the run did:
39 leaves 4 when divided by 5, so its step is 5: each move goes 5 slots on, round to the start.
Question 14 of 15
Right.
You guessed: The step of 39 is 5.
What the run did:
39 leaves 4 when divided by 5, so its step is 5: each move goes 5 slots on, round to the start.
Question 15 of 15
Question 15 of 15
Right.
You guessed: Slot 4 is free, so put 39 there.
What the run did:
Slot 4 is free, so put 39 there.
That is every question on this run: 1 of 15 right.
Question 15 of 15
Not this time.
You guessed: Slot 4 holds another number, so step on.
What the run did:
Slot 4 is free, so put 39 there.
That is every question on this run: 0 of 15 right.
Question 15 of 15
Not this time.
You guessed: Slot 4 already holds 39, so turn it away.
What the run did:
Slot 4 is free, so put 39 there.
That is every question on this run: 0 of 15 right.