guess the next step: Changing a number in a 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 25
Question 7 of 12
Step 14 of 25
Step 15 of 25
Step 16 of 25
Step 17 of 25
Step 18 of 25
Step 19 of 25
Step 20 of 25
Step 21 of 25
Step 22 of 25
Step 23 of 25
Step 24 of 25
Question 7 of 12
Question 7 of 12
Not this time.
You guessed: 33 is smaller than the number above it, so it climbs.
What the run did:
33 is not smaller than 8, the number above it, so it stays.
Question 7 of 12
Right.
You guessed: 33 is not smaller than the number above it, so it stays.
What the run did:
33 is not smaller than 8, the number above it, so it stays.
Question 7 of 12
Not this time.
You guessed: 33 is at the top, so it stays.
What the run did:
33 is not smaller than 8, the number above it, so it stays.
Question 8 of 12
Question 8 of 12
Right.
You guessed: 19 is smaller than the number above it, so it climbs.
What the run did:
19 is smaller than 26, the number above it.
Question 8 of 12
Not this time.
You guessed: 19 is not smaller than the number above it, so it stays.
What the run did:
19 is smaller than 26, the number above it.
Question 8 of 12
Not this time.
You guessed: 19 is at the top, so it stays.
What the run did:
19 is smaller than 26, the number above it.
Question 9 of 12
Question 9 of 12
Not this time.
You guessed: 19 is smaller than the number above it, so it climbs.
What the run did:
19 is not smaller than 8, the number above it, so it stays.
Question 9 of 12
Right.
You guessed: 19 is not smaller than the number above it, so it stays.
What the run did:
19 is not smaller than 8, the number above it, so it stays.
Question 9 of 12
Not this time.
You guessed: 19 is at the top, so it stays.
What the run did:
19 is not smaller than 8, the number above it, so it stays.
Question 10 of 12
Question 10 of 12
Not this time.
You guessed: 52 is smaller than the number above it, so it climbs.
What the run did:
52 is not smaller than 19, the number above it, so it stays.
Question 10 of 12
Right.
You guessed: 52 is not smaller than the number above it, so it stays.
What the run did:
52 is not smaller than 19, the number above it, so it stays.
Question 10 of 12
Not this time.
You guessed: 52 is at the top, so it stays.
What the run did:
52 is not smaller than 19, the number above it, so it stays.
Question 11 of 12
Question 11 of 12
Not this time.
You guessed: 26 becomes 61, smaller, so it may need to climb.
What the run did:
Change 26 to 61. It got no smaller, so it is still no smaller than anything above it, but it may need to sink.
Question 11 of 12
Right.
You guessed: 26 becomes 61, no smaller, so it may need to sink.
What the run did:
Change 26 to 61. It got no smaller, so it is still no smaller than anything above it, but it may need to sink.
Question 12 of 12
Question 12 of 12
Not this time.
You guessed: 61 swaps down.
What the run did:
Nothing is below 61, so it stays.
That is every question on this run: 0 of 12 right.
Question 12 of 12
Not this time.
You guessed: 61 is no bigger than anything below it, so it stays.
What the run did:
Nothing is below 61, so it stays.
That is every question on this run: 0 of 12 right.
Question 12 of 12
Right.
You guessed: Nothing is below 61, so it stays.
What the run did:
Nothing is below 61, so it stays.
That is every question on this run: 1 of 12 right.