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 24
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
Question 13 of 24
Question 13 of 24
Right.
You guessed: The home of 7 is slot 0.
What the run did:
7 leaves 0 when divided by 7, so its home is slot 0.
Question 13 of 24
Not this time.
You guessed: The home of 7 is slot 1.
What the run did:
7 leaves 0 when divided by 7, so its home is slot 0.
Question 13 of 24
Not this time.
You guessed: The home of 7 is slot 2.
What the run did:
7 leaves 0 when divided by 7, so its home is slot 0.
Question 14 of 24
Question 14 of 24
Right.
You guessed: Slot 0 is free, so put 7 there.
What the run did:
Slot 0 is free, so put 7 there.
Question 14 of 24
Not this time.
You guessed: Slot 0 holds another number, so look at the next.
What the run did:
Slot 0 is free, so put 7 there.
Question 14 of 24
Not this time.
You guessed: Slot 0 already holds 7, so turn it away.
What the run did:
Slot 0 is free, so put 7 there.
Question 15 of 24
Question 15 of 24
Not this time.
You guessed: The home of 8 is slot 0.
What the run did:
8 leaves 1 when divided by 7, so its home is slot 1.
Question 15 of 24
Right.
You guessed: The home of 8 is slot 1.
What the run did:
8 leaves 1 when divided by 7, so its home is slot 1.
Question 15 of 24
Not this time.
You guessed: The home of 8 is slot 2.
What the run did:
8 leaves 1 when divided by 7, so its home is slot 1.
Question 16 of 24
Question 16 of 24
Not this time.
You guessed: Slot 1 is free, so put 8 there.
What the run did:
Slot 1 holds 1, not 8.
Question 16 of 24
Right.
You guessed: Slot 1 holds another number, so look at the next.
What the run did:
Slot 1 holds 1, not 8.
Question 16 of 24
Not this time.
You guessed: Slot 1 already holds 8, so turn it away.
What the run did:
Slot 1 holds 1, not 8.
Question 17 of 24
Question 17 of 24
Not this time.
You guessed: Slot 2 is free, so put 8 there.
What the run did:
Slot 2 holds 2, not 8.
Question 17 of 24
Right.
You guessed: Slot 2 holds another number, so look at the next.
What the run did:
Slot 2 holds 2, not 8.
Question 17 of 24
Not this time.
You guessed: Slot 2 already holds 8, so turn it away.
What the run did:
Slot 2 holds 2, not 8.
Question 18 of 24
Question 18 of 24
Not this time.
You guessed: Slot 3 is free, so put 8 there.
What the run did:
Slot 3 holds 3, not 8.
Question 18 of 24
Right.
You guessed: Slot 3 holds another number, so look at the next.
What the run did:
Slot 3 holds 3, not 8.
Question 18 of 24
Not this time.
You guessed: Slot 3 already holds 8, so turn it away.
What the run did:
Slot 3 holds 3, not 8.