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 24 of 40
Question 13 of 21
Step 24 of 40
Step 25 of 40
Step 26 of 40
Step 27 of 40
Step 28 of 40
Step 29 of 40
Step 30 of 40
Step 31 of 40
Step 34 of 40
Step 35 of 40
Step 36 of 40
Question 13 of 21
Question 13 of 21
Not this time.
You guessed: 23 swaps down.
What the run did:
23 is no bigger than the numbers below it, so it stays.
Question 13 of 21
Right.
You guessed: 23 is no bigger than the numbers below it, so it stays.
What the run did:
23 is no bigger than the numbers below it, so it stays.
Question 13 of 21
Not this time.
You guessed: Nothing is below 23, so it stays.
What the run did:
23 is no bigger than the numbers below it, so it stays.
Question 14 of 21
Question 14 of 21
Right.
You guessed: 8 is smaller than the number above it, so it climbs.
What the run did:
8 is smaller than 23, the number above it.
Question 14 of 21
Not this time.
You guessed: 8 is not smaller than the number above it, so it stays.
What the run did:
8 is smaller than 23, the number above it.
Question 14 of 21
Not this time.
You guessed: 8 is at the top, so it stays.
What the run did:
8 is smaller than 23, the number above it.
Question 15 of 21
Question 15 of 21
Right.
You guessed: 8 is smaller than the number above it, so it climbs.
What the run did:
8 is smaller than 12, the number above it.
Question 15 of 21
Not this time.
You guessed: 8 is not smaller than the number above it, so it stays.
What the run did:
8 is smaller than 12, the number above it.
Question 15 of 21
Not this time.
You guessed: 8 is at the top, so it stays.
What the run did:
8 is smaller than 12, the number above it.
Question 16 of 21
Question 16 of 21
Not this time.
You guessed: 8 is smaller than the number above it, so it climbs.
What the run did:
8 is at the top, so it stays.
Question 16 of 21
Not this time.
You guessed: 8 is not smaller than the number above it, so it stays.
What the run did:
8 is at the top, so it stays.
Question 16 of 21
Right.
You guessed: 8 is at the top, so it stays.
What the run did:
8 is at the top, so it stays.
Question 17 of 21
Question 17 of 21
Question 17 of 21
Not this time.
You guessed: 12 is not smaller than 23.
What the run did:
12 is smaller than 23.
Question 18 of 21
Question 18 of 21
Not this time.
You guessed: 47 is smaller than 12.
What the run did:
47 is not smaller than 12.
Question 18 of 21
Right.
You guessed: 47 is not smaller than 12.
What the run did:
47 is not smaller than 12.