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 13 of 23
Question 13 of 20
Step 13 of 23
Step 14 of 23
Step 15 of 23
Step 16 of 23
Step 17 of 23
Step 18 of 23
Step 19 of 23
Step 20 of 23
Question 13 of 20
Question 13 of 20
Not this time.
You guessed: 42 is not in the bucket yet, so put it in.
What the run did:
17 is not 42.
Question 13 of 20
Right.
You guessed: Another number is here, so walk past it.
What the run did:
17 is not 42.
Question 13 of 20
Not this time.
You guessed: 42 is already in the bucket, so turn it away.
What the run did:
17 is not 42.
Question 14 of 20
Question 14 of 20
Question 14 of 20
Not this time.
You guessed: 42 is not in the bucket, so it is not in the table.
What the run did:
Here is 42, in bucket 2.
Question 15 of 20
Question 15 of 20
Right.
You guessed: 35 belongs in bucket 0.
What the run did:
35 leaves 0 when divided by 5, so it belongs in bucket 0.
Question 15 of 20
Not this time.
You guessed: 35 belongs in bucket 1.
What the run did:
35 leaves 0 when divided by 5, so it belongs in bucket 0.
Question 15 of 20
Not this time.
You guessed: 35 belongs in bucket 2.
What the run did:
35 leaves 0 when divided by 5, so it belongs in bucket 0.
Question 16 of 20
Question 16 of 20
Right.
You guessed: 35 is not in the bucket yet, so put it in.
What the run did:
35 is not in bucket 0 yet, so put it in.
Question 16 of 20
Not this time.
You guessed: Another number is here, so walk past it.
What the run did:
35 is not in bucket 0 yet, so put it in.
Question 16 of 20
Not this time.
You guessed: 35 is already in the bucket, so turn it away.
What the run did:
35 is not in bucket 0 yet, so put it in.
Question 17 of 20
Question 17 of 20
Not this time.
You guessed: 12 belongs in bucket 1.
What the run did:
12 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 17 of 20
Right.
You guessed: 12 belongs in bucket 2.
What the run did:
12 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 17 of 20
Not this time.
You guessed: 12 belongs in bucket 3.
What the run did:
12 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 18 of 20
Question 18 of 20
Not this time.
You guessed: 12 is not in the bucket yet, so put it in.
What the run did:
17 is not 12.
Question 18 of 20
Right.
You guessed: Another number is here, so walk past it.
What the run did:
17 is not 12.
Question 18 of 20
Not this time.
You guessed: 12 is already in the bucket, so turn it away.
What the run did:
17 is not 12.