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