guess the next step: Binary heap
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 2 of 24
Question 1 of 8
Step 2 of 24
Step 3 of 24
Step 4 of 24
Step 5 of 24
Step 6 of 24
Step 7 of 24
Step 8 of 24
Step 9 of 24
Step 12 of 24
Step 13 of 24
Step 14 of 24
Question 1 of 8
Question 1 of 8
Not this time.
You guessed: 7 is smaller than the number above it, so it climbs.
What the run did:
7 is at the top, so it stays.
Question 1 of 8
Not this time.
You guessed: 7 is not smaller than the number above it, so it stays.
What the run did:
7 is at the top, so it stays.
Question 1 of 8
Right.
You guessed: 7 is at the top, so it stays.
What the run did:
7 is at the top, so it stays.
Question 2 of 8
Question 2 of 8
Right.
You guessed: 3 is smaller than the number above it, so it climbs.
What the run did:
3 is smaller than 7, the number above it.
Question 2 of 8
Not this time.
You guessed: 3 is not smaller than the number above it, so it stays.
What the run did:
3 is smaller than 7, the number above it.
Question 2 of 8
Not this time.
You guessed: 3 is at the top, so it stays.
What the run did:
3 is smaller than 7, the number above it.
Question 3 of 8
Question 3 of 8
Not this time.
You guessed: 3 is smaller than the number above it, so it climbs.
What the run did:
3 is at the top, so it stays.
Question 3 of 8
Not this time.
You guessed: 3 is not smaller than the number above it, so it stays.
What the run did:
3 is at the top, so it stays.
Question 3 of 8
Right.
You guessed: 3 is at the top, so it stays.
What the run did:
3 is at the top, so it stays.
Question 4 of 8
Question 4 of 8
Not this time.
You guessed: 9 is smaller than the number above it, so it climbs.
What the run did:
9 is not smaller than 3, the number above it, so it stays.
Question 4 of 8
Right.
You guessed: 9 is not smaller than the number above it, so it stays.
What the run did:
9 is not smaller than 3, the number above it, so it stays.
Question 4 of 8
Not this time.
You guessed: 9 is at the top, so it stays.
What the run did:
9 is not smaller than 3, the number above it, so it stays.
Question 5 of 8
Question 5 of 8
Question 5 of 8
Not this time.
You guessed: 7 is not smaller than 9.
What the run did:
7 is smaller than 9.
Question 6 of 8
Question 6 of 8
Question 6 of 8
Not this time.
You guessed: 9 is no bigger than the numbers below it, so it stays.
What the run did:
Swap them: 9 sinks below 7.
Question 6 of 8
Not this time.
You guessed: Nothing is below 9, so it stays.
What the run did:
Swap them: 9 sinks below 7.