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 20 of 27
Question 19 of 22
Step 20 of 27
Step 21 of 27
Step 22 of 27
Step 23 of 27
Step 24 of 27
Question 19 of 22
Question 19 of 22
Not this time.
You guessed: Here is 31, in slot 5.
What the run did:
Slot 5 is empty, so the search ends. 31 is not in the table.
Question 19 of 22
Right.
You guessed: Slot 5 is empty, so 31 is not in the table.
What the run did:
Slot 5 is empty, so the search ends. 31 is not in the table.
Question 20 of 22
Question 20 of 22
Not this time.
You guessed: The home of 59 is slot 2.
What the run did:
59 leaves 3 when divided by 7, so its home is slot 3.
Question 20 of 22
Right.
You guessed: The home of 59 is slot 3.
What the run did:
59 leaves 3 when divided by 7, so its home is slot 3.
Question 20 of 22
Not this time.
You guessed: The home of 59 is slot 4.
What the run did:
59 leaves 3 when divided by 7, so its home is slot 3.
Question 21 of 22
Question 21 of 22
Not this time.
You guessed: The step of 59 is 3.
What the run did:
59 leaves 4 when divided by 5, so its step is 5: each move goes 5 slots on, round to the start.
Question 21 of 22
Not this time.
You guessed: The step of 59 is 4.
What the run did:
59 leaves 4 when divided by 5, so its step is 5: each move goes 5 slots on, round to the start.
Question 21 of 22
Right.
You guessed: The step of 59 is 5.
What the run did:
59 leaves 4 when divided by 5, so its step is 5: each move goes 5 slots on, round to the start.
Question 22 of 22
Question 22 of 22
Not this time.
You guessed: Slot 3 is free, so put 59 there.
What the run did:
Slot 3 holds 17, not 59.
That is every question on this run: 0 of 22 right.
Question 22 of 22
Right.
You guessed: Slot 3 holds another number, so step on.
What the run did:
Slot 3 holds 17, not 59.
That is every question on this run: 1 of 22 right.
Question 22 of 22
Not this time.
You guessed: Slot 3 already holds 59, so turn it away.
What the run did:
Slot 3 holds 17, not 59.
That is every question on this run: 0 of 22 right.