guess the next step: Hash table with chaining
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 23
Question 7 of 20
Step 7 of 23
Step 8 of 23
Step 9 of 23
Step 10 of 23
Step 11 of 23
Step 12 of 23
Step 13 of 23
Question 7 of 20
Question 7 of 20
Right.
You guessed: 8 is not in the bucket yet, so put it in.
What the run did:
8 is not in bucket 3 yet, so put it in.
Question 7 of 20
Not this time.
You guessed: Another number is here, so walk past it.
What the run did:
8 is not in bucket 3 yet, so put it in.
Question 7 of 20
Not this time.
You guessed: 8 is already in the bucket, so turn it away.
What the run did:
8 is not in bucket 3 yet, so put it in.
Question 8 of 20
Question 8 of 20
Right.
You guessed: 22 belongs in bucket 2.
What the run did:
22 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 8 of 20
Not this time.
You guessed: 22 belongs in bucket 3.
What the run did:
22 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 8 of 20
Not this time.
You guessed: 22 belongs in bucket 4.
What the run did:
22 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 9 of 20
Question 9 of 20
Not this time.
You guessed: 22 is not in the bucket yet, so put it in.
What the run did:
17 is not 22.
Question 9 of 20
Right.
You guessed: Another number is here, so walk past it.
What the run did:
17 is not 22.
Question 9 of 20
Not this time.
You guessed: 22 is already in the bucket, so turn it away.
What the run did:
17 is not 22.
Question 10 of 20
Question 10 of 20
Not this time.
You guessed: 22 is not in the bucket yet, so put it in.
What the run did:
42 is not 22.
Question 10 of 20
Right.
You guessed: Another number is here, so walk past it.
What the run did:
42 is not 22.
Question 10 of 20
Not this time.
You guessed: 22 is already in the bucket, so turn it away.
What the run did:
42 is not 22.
Question 11 of 20
Question 11 of 20
Right.
You guessed: 22 is not in the bucket yet, so put it in.
What the run did:
22 is not in bucket 2 yet, so put it in.
Question 11 of 20
Not this time.
You guessed: Another number is here, so walk past it.
What the run did:
22 is not in bucket 2 yet, so put it in.
Question 11 of 20
Not this time.
You guessed: 22 is already in the bucket, so turn it away.
What the run did:
22 is not in bucket 2 yet, so put it in.
Question 12 of 20
Question 12 of 20
Not this time.
You guessed: 42 can only be in bucket 1.
What the run did:
42 leaves 2 when divided by 5, so if it is here at all, it is in bucket 2.
Question 12 of 20
Right.
You guessed: 42 can only be in bucket 2.
What the run did:
42 leaves 2 when divided by 5, so if it is here at all, it is in bucket 2.
Question 12 of 20
Not this time.
You guessed: 42 can only be in bucket 3.
What the run did:
42 leaves 2 when divided by 5, so if it is here at all, it is in bucket 2.