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 14 of 40
Question 7 of 21
Step 14 of 40
Step 15 of 40
Step 16 of 40
Step 17 of 40
Step 20 of 40
Step 21 of 40
Step 22 of 40
Step 23 of 40
Step 24 of 40
Question 7 of 21
Question 7 of 21
Not this time.
You guessed: 5 is smaller than the number above it, so it climbs.
What the run did:
5 is at the top, so it stays.
Question 7 of 21
Not this time.
You guessed: 5 is not smaller than the number above it, so it stays.
What the run did:
5 is at the top, so it stays.
Question 7 of 21
Right.
You guessed: 5 is at the top, so it stays.
What the run did:
5 is at the top, so it stays.
Question 8 of 21
Question 8 of 21
Not this time.
You guessed: 23 is smaller than the number above it, so it climbs.
What the run did:
23 is not smaller than 12, the number above it, so it stays.
Question 8 of 21
Right.
You guessed: 23 is not smaller than the number above it, so it stays.
What the run did:
23 is not smaller than 12, the number above it, so it stays.
Question 8 of 21
Not this time.
You guessed: 23 is at the top, so it stays.
What the run did:
23 is not smaller than 12, the number above it, so it stays.
Question 9 of 21
Question 9 of 21
Question 9 of 21
Not this time.
You guessed: 12 is not smaller than 23.
What the run did:
12 is smaller than 23.
Question 10 of 21
Question 10 of 21
Not this time.
You guessed: 47 is smaller than 12.
What the run did:
47 is not smaller than 12.
Question 10 of 21
Right.
You guessed: 47 is not smaller than 12.
What the run did:
47 is not smaller than 12.
Question 11 of 21
Question 11 of 21
Question 11 of 21
Not this time.
You guessed: 23 is no bigger than the numbers below it, so it stays.
What the run did:
Swap them: 23 sinks below 12.
Question 11 of 21
Not this time.
You guessed: Nothing is below 23, so it stays.
What the run did:
Swap them: 23 sinks below 12.
Question 12 of 21
Question 12 of 21
Not this time.
You guessed: 31 is smaller than 23.
What the run did:
31 is not smaller than 23.
Question 12 of 21
Right.
You guessed: 31 is not smaller than 23.
What the run did:
31 is not smaller than 23.