guess the next step: Hash table with open addressing
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 27
Question 13 of 19
Step 13 of 27
Step 14 of 27
Step 15 of 27
Step 16 of 27
Step 17 of 27
Step 18 of 27
Step 19 of 27
Step 20 of 27
Step 21 of 27
Step 22 of 27
Question 13 of 19
Question 13 of 19
Not this time.
You guessed: Slot 3 is free, so put 24 there.
What the run did:
Slot 3 holds 17, not 24.
Question 13 of 19
Right.
You guessed: Slot 3 holds another number, so look at the next.
What the run did:
Slot 3 holds 17, not 24.
Question 13 of 19
Not this time.
You guessed: Slot 3 already holds 24, so turn it away.
What the run did:
Slot 3 holds 17, not 24.
Question 14 of 19
Question 14 of 19
Question 14 of 19
Not this time.
You guessed: Slot 4 is empty, so 24 is not in the table.
What the run did:
Here is 24, in slot 4.
Question 15 of 19
Question 15 of 19
Not this time.
You guessed: The home of 31 is slot 1.
What the run did:
31 leaves 3 when divided by 7, so its home is slot 3.
Question 15 of 19
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 15 of 19
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 16 of 19
Question 16 of 19
Not this time.
You guessed: Slot 3 is free, so put 31 there.
What the run did:
Slot 3 holds 17, not 31.
Question 16 of 19
Right.
You guessed: Slot 3 holds another number, so look at the next.
What the run did:
Slot 3 holds 17, not 31.
Question 16 of 19
Not this time.
You guessed: Slot 3 already holds 31, so turn it away.
What the run did:
Slot 3 holds 17, not 31.
Question 17 of 19
Question 17 of 19
Question 17 of 19
Not this time.
You guessed: Slot 5 is empty, so 31 is not in the table.
What the run did:
Here is 31, in slot 5.
Question 18 of 19
Question 18 of 19
Not this time.
You guessed: The home of 38 is slot 1.
What the run did:
38 leaves 3 when divided by 7, so its home is slot 3.
Question 18 of 19
Not this time.
You guessed: The home of 38 is slot 2.
What the run did:
38 leaves 3 when divided by 7, so its home is slot 3.
Question 18 of 19
Right.
You guessed: The home of 38 is slot 3.
What the run did:
38 leaves 3 when divided by 7, so its home is slot 3.