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 8 of 17
Question 7 of 13
Step 8 of 17
Step 9 of 17
Step 10 of 17
Step 11 of 17
Step 12 of 17
Step 13 of 17
Step 14 of 17
Question 7 of 13
Question 7 of 13
Right.
You guessed: 1 is not in the bucket yet, so put it in.
What the run did:
1 is not in bucket 1 yet, so put it in.
Question 7 of 13
Not this time.
You guessed: Another number is here, so walk past it.
What the run did:
1 is not in bucket 1 yet, so put it in.
Question 7 of 13
Not this time.
You guessed: 1 is already in the bucket, so turn it away.
What the run did:
1 is not in bucket 1 yet, so put it in.
Question 8 of 13
Question 8 of 13
Right.
You guessed: 6 can only be in bucket 1.
What the run did:
6 leaves 1 when divided by 5, so if it is here at all, it is in bucket 1.
Question 8 of 13
Not this time.
You guessed: 6 can only be in bucket 2.
What the run did:
6 leaves 1 when divided by 5, so if it is here at all, it is in bucket 1.
Question 8 of 13
Not this time.
You guessed: 6 can only be in bucket 3.
What the run did:
6 leaves 1 when divided by 5, so if it is here at all, it is in bucket 1.
Question 9 of 13
Question 9 of 13
Not this time.
You guessed: 6 is not in the bucket yet, so put it in.
What the run did:
26 is not 6.
Question 9 of 13
Right.
You guessed: Another number is here, so walk past it.
What the run did:
26 is not 6.
Question 9 of 13
Not this time.
You guessed: 6 is already in the bucket, so turn it away.
What the run did:
26 is not 6.
Question 10 of 13
Question 10 of 13
Not this time.
You guessed: 6 is not in the bucket yet, so put it in.
What the run did:
1 is not 6.
Question 10 of 13
Right.
You guessed: Another number is here, so walk past it.
What the run did:
1 is not 6.
Question 10 of 13
Not this time.
You guessed: 6 is already in the bucket, so turn it away.
What the run did:
1 is not 6.
Question 11 of 13
Question 11 of 13
Not this time.
You guessed: Here is 6.
What the run did:
6 is not in bucket 1, so it is not in the table.
Question 11 of 13
Right.
You guessed: 6 is not in the bucket, so it is not in the table.
What the run did:
6 is not in bucket 1, so it is not in the table.
Question 12 of 13
Question 12 of 13
Right.
You guessed: 26 can only be in bucket 1.
What the run did:
26 leaves 1 when divided by 5, so if it is here at all, it is in bucket 1.
Question 12 of 13
Not this time.
You guessed: 26 can only be in bucket 2.
What the run did:
26 leaves 1 when divided by 5, so if it is here at all, it is in bucket 1.
Question 12 of 13
Not this time.
You guessed: 26 can only be in bucket 3.
What the run did:
26 leaves 1 when divided by 5, so if it is here at all, it is in bucket 1.