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 7 of 17
Question 7 of 15
Step 7 of 17
Step 8 of 17
Step 9 of 17
Step 10 of 17
Step 11 of 17
Step 12 of 17
Step 13 of 17
Question 7 of 15
Question 7 of 15
Not this time.
You guessed: The home of 23 is slot 0.
What the run did:
23 leaves 2 when divided by 7, so its home is slot 2.
Question 7 of 15
Not this time.
You guessed: The home of 23 is slot 1.
What the run did:
23 leaves 2 when divided by 7, so its home is slot 2.
Question 7 of 15
Right.
You guessed: The home of 23 is slot 2.
What the run did:
23 leaves 2 when divided by 7, so its home is slot 2.
Question 8 of 15
Question 8 of 15
Not this time.
You guessed: The step of 23 is 2.
What the run did:
23 leaves 3 when divided by 5, so its step is 4: each move goes 4 slots on, round to the start.
Question 8 of 15
Not this time.
You guessed: The step of 23 is 3.
What the run did:
23 leaves 3 when divided by 5, so its step is 4: each move goes 4 slots on, round to the start.
Question 8 of 15
Right.
You guessed: The step of 23 is 4.
What the run did:
23 leaves 3 when divided by 5, so its step is 4: each move goes 4 slots on, round to the start.
Question 9 of 15
Question 9 of 15
Right.
You guessed: Slot 2 is free, so put 23 there.
What the run did:
Slot 2 is free, so put 23 there.
Question 9 of 15
Not this time.
You guessed: Slot 2 holds another number, so step on.
What the run did:
Slot 2 is free, so put 23 there.
Question 9 of 15
Not this time.
You guessed: Slot 2 already holds 23, so turn it away.
What the run did:
Slot 2 is free, so put 23 there.
Question 10 of 15
Question 10 of 15
Not this time.
You guessed: The home of 31 is slot 2.
What the run did:
31 leaves 3 when divided by 7, so its home is slot 3.
Question 10 of 15
Right.
You guessed: The home of 31 is slot 3.
What the run did:
31 leaves 3 when divided by 7, so its home is slot 3.
Question 10 of 15
Not this time.
You guessed: The home of 31 is slot 4.
What the run did:
31 leaves 3 when divided by 7, so its home is slot 3.
Question 11 of 15
Question 11 of 15
Not this time.
You guessed: The step of 31 is 1.
What the run did:
31 leaves 1 when divided by 5, so its step is 2: each move goes 2 slots on, round to the start.
Question 11 of 15
Right.
You guessed: The step of 31 is 2.
What the run did:
31 leaves 1 when divided by 5, so its step is 2: each move goes 2 slots on, round to the start.
Question 11 of 15
Not this time.
You guessed: The step of 31 is 3.
What the run did:
31 leaves 1 when divided by 5, so its step is 2: each move goes 2 slots on, round to the start.
Question 12 of 15
Question 12 of 15
Right.
You guessed: Slot 3 is free, so put 31 there.
What the run did:
Slot 3 is free, so put 31 there.
Question 12 of 15
Not this time.
You guessed: Slot 3 holds another number, so step on.
What the run did:
Slot 3 is free, so put 31 there.
Question 12 of 15
Not this time.
You guessed: Slot 3 already holds 31, so turn it away.
What the run did:
Slot 3 is free, so put 31 there.