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 1 of 12
Question 1 of 10
Step 1 of 12
Step 2 of 12
Step 3 of 12
Step 4 of 12
Step 5 of 12
Step 6 of 12
Step 7 of 12
Question 1 of 10
Question 1 of 10
Right.
You guessed: 10 belongs in bucket 0.
What the run did:
10 leaves 0 when divided by 5, so it belongs in bucket 0.
Question 1 of 10
Not this time.
You guessed: 10 belongs in bucket 1.
What the run did:
10 leaves 0 when divided by 5, so it belongs in bucket 0.
Question 1 of 10
Not this time.
You guessed: 10 belongs in bucket 2.
What the run did:
10 leaves 0 when divided by 5, so it belongs in bucket 0.
Question 2 of 10
Question 2 of 10
Right.
You guessed: 10 is not in the bucket yet, so put it in.
What the run did:
10 is not in bucket 0 yet, so put it in.
Question 2 of 10
Not this time.
You guessed: Another number is here, so walk past it.
What the run did:
10 is not in bucket 0 yet, so put it in.
Question 2 of 10
Not this time.
You guessed: 10 is already in the bucket, so turn it away.
What the run did:
10 is not in bucket 0 yet, so put it in.
Question 3 of 10
Question 3 of 10
Not this time.
You guessed: 21 belongs in bucket 0.
What the run did:
21 leaves 1 when divided by 5, so it belongs in bucket 1.
Question 3 of 10
Right.
You guessed: 21 belongs in bucket 1.
What the run did:
21 leaves 1 when divided by 5, so it belongs in bucket 1.
Question 3 of 10
Not this time.
You guessed: 21 belongs in bucket 2.
What the run did:
21 leaves 1 when divided by 5, so it belongs in bucket 1.
Question 4 of 10
Question 4 of 10
Right.
You guessed: 21 is not in the bucket yet, so put it in.
What the run did:
21 is not in bucket 1 yet, so put it in.
Question 4 of 10
Not this time.
You guessed: Another number is here, so walk past it.
What the run did:
21 is not in bucket 1 yet, so put it in.
Question 4 of 10
Not this time.
You guessed: 21 is already in the bucket, so turn it away.
What the run did:
21 is not in bucket 1 yet, so put it in.
Question 5 of 10
Question 5 of 10
Not this time.
You guessed: 32 belongs in bucket 1.
What the run did:
32 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 5 of 10
Right.
You guessed: 32 belongs in bucket 2.
What the run did:
32 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 5 of 10
Not this time.
You guessed: 32 belongs in bucket 3.
What the run did:
32 leaves 2 when divided by 5, so it belongs in bucket 2.
Question 6 of 10
Question 6 of 10
Right.
You guessed: 32 is not in the bucket yet, so put it in.
What the run did:
32 is not in bucket 2 yet, so put it in.
Question 6 of 10
Not this time.
You guessed: Another number is here, so walk past it.
What the run did:
32 is not in bucket 2 yet, so put it in.
Question 6 of 10
Not this time.
You guessed: 32 is already in the bucket, so turn it away.
What the run did:
32 is not in bucket 2 yet, so put it in.