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