guess the next step: Hash table that grows
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 17 of 43
Question 13 of 29
Step 17 of 43
Step 18 of 43
Step 19 of 43
Step 20 of 43
Step 21 of 43
Step 22 of 43
Step 23 of 43
Step 24 of 43
Step 25 of 43
Question 13 of 29
Question 13 of 29
Not this time.
You guessed: The new home of 10 is slot 1.
What the run did:
Move 10: it leaves 2 when divided by 8, so its new home is slot 2.
Question 13 of 29
Right.
You guessed: The new home of 10 is slot 2.
What the run did:
Move 10: it leaves 2 when divided by 8, so its new home is slot 2.
Question 13 of 29
Not this time.
You guessed: The new home of 10 is slot 3.
What the run did:
Move 10: it leaves 2 when divided by 8, so its new home is slot 2.
Question 14 of 29
Question 14 of 29
Right.
You guessed: The home of 24 among the new slots is slot 0.
What the run did:
Now 24 leaves 0 when divided by 8, so its home among the new slots is slot 0.
Question 14 of 29
Not this time.
You guessed: The home of 24 among the new slots is slot 1.
What the run did:
Now 24 leaves 0 when divided by 8, so its home among the new slots is slot 0.
Question 14 of 29
Not this time.
You guessed: The home of 24 among the new slots is slot 2.
What the run did:
Now 24 leaves 0 when divided by 8, so its home among the new slots is slot 0.
Question 15 of 29
Question 15 of 29
Not this time.
You guessed: The home of 10 is slot 1.
What the run did:
10 leaves 2 when divided by 8, so its home is slot 2.
Question 15 of 29
Right.
You guessed: The home of 10 is slot 2.
What the run did:
10 leaves 2 when divided by 8, so its home is slot 2.
Question 15 of 29
Not this time.
You guessed: The home of 10 is slot 3.
What the run did:
10 leaves 2 when divided by 8, so its home is slot 2.
Question 16 of 29
Question 16 of 29
Not this time.
You guessed: Slot 2 is empty, so 10 is not in the table yet.
What the run did:
Slot 2 already holds 10. A number goes in only once, so this one is turned away.
Question 16 of 29
Not this time.
You guessed: Slot 2 holds another number, so look at the next.
What the run did:
Slot 2 already holds 10. A number goes in only once, so this one is turned away.
Question 16 of 29
Right.
You guessed: Slot 2 already holds 10, so turn it away.
What the run did:
Slot 2 already holds 10. A number goes in only once, so this one is turned away.
Question 17 of 29
Question 17 of 29
Right.
You guessed: The home of 25 is slot 1.
What the run did:
25 leaves 1 when divided by 8, so its home is slot 1.
Question 17 of 29
Not this time.
You guessed: The home of 25 is slot 2.
What the run did:
25 leaves 1 when divided by 8, so its home is slot 1.
Question 17 of 29
Not this time.
You guessed: The home of 25 is slot 3.
What the run did:
25 leaves 1 when divided by 8, so its home is slot 1.
Question 18 of 29
Question 18 of 29
Not this time.
You guessed: Slot 1 is empty, so 25 is not in the table yet.
What the run did:
Slot 1 holds 17, so look at the next slot for 25.
Question 18 of 29
Right.
You guessed: Slot 1 holds another number, so look at the next.
What the run did:
Slot 1 holds 17, so look at the next slot for 25.
Question 18 of 29
Not this time.
You guessed: Slot 1 already holds 25, so turn it away.
What the run did:
Slot 1 holds 17, so look at the next slot for 25.