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 7 of 27
Question 7 of 24
Step 7 of 27
Step 8 of 27
Step 9 of 27
Step 10 of 27
Step 11 of 27
Step 12 of 27
Step 13 of 27
Question 7 of 24
Question 7 of 24
Right.
You guessed: The home of 4 is slot 4.
What the run did:
4 leaves 4 when divided by 7, so its home is slot 4.
Question 7 of 24
Not this time.
You guessed: The home of 4 is slot 5.
What the run did:
4 leaves 4 when divided by 7, so its home is slot 4.
Question 7 of 24
Not this time.
You guessed: The home of 4 is slot 6.
What the run did:
4 leaves 4 when divided by 7, so its home is slot 4.
Question 8 of 24
Question 8 of 24
Right.
You guessed: Slot 4 is free, so put 4 there.
What the run did:
Slot 4 is free, so put 4 there.
Question 8 of 24
Not this time.
You guessed: Slot 4 holds another number, so look at the next.
What the run did:
Slot 4 is free, so put 4 there.
Question 8 of 24
Not this time.
You guessed: Slot 4 already holds 4, so turn it away.
What the run did:
Slot 4 is free, so put 4 there.
Question 9 of 24
Question 9 of 24
Not this time.
You guessed: The home of 5 is slot 3.
What the run did:
5 leaves 5 when divided by 7, so its home is slot 5.
Question 9 of 24
Not this time.
You guessed: The home of 5 is slot 4.
What the run did:
5 leaves 5 when divided by 7, so its home is slot 5.
Question 9 of 24
Right.
You guessed: The home of 5 is slot 5.
What the run did:
5 leaves 5 when divided by 7, so its home is slot 5.
Question 10 of 24
Question 10 of 24
Right.
You guessed: Slot 5 is free, so put 5 there.
What the run did:
Slot 5 is free, so put 5 there.
Question 10 of 24
Not this time.
You guessed: Slot 5 holds another number, so look at the next.
What the run did:
Slot 5 is free, so put 5 there.
Question 10 of 24
Not this time.
You guessed: Slot 5 already holds 5, so turn it away.
What the run did:
Slot 5 is free, so put 5 there.
Question 11 of 24
Question 11 of 24
Not this time.
You guessed: The home of 6 is slot 4.
What the run did:
6 leaves 6 when divided by 7, so its home is slot 6.
Question 11 of 24
Not this time.
You guessed: The home of 6 is slot 5.
What the run did:
6 leaves 6 when divided by 7, so its home is slot 6.
Question 11 of 24
Right.
You guessed: The home of 6 is slot 6.
What the run did:
6 leaves 6 when divided by 7, so its home is slot 6.
Question 12 of 24
Question 12 of 24
Right.
You guessed: Slot 6 is free, so put 6 there.
What the run did:
Slot 6 is free, so put 6 there.
Question 12 of 24
Not this time.
You guessed: Slot 6 holds another number, so look at the next.
What the run did:
Slot 6 is free, so put 6 there.
Question 12 of 24
Not this time.
You guessed: Slot 6 already holds 6, so turn it away.
What the run did:
Slot 6 is free, so put 6 there.