guess the next step: Building 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 10 of 20
Question 7 of 14
Step 10 of 20
Step 11 of 20
Step 12 of 20
Step 13 of 20
Step 14 of 20
Step 15 of 20
Step 16 of 20
Step 17 of 20
Question 7 of 14
Question 7 of 14
Not this time.
You guessed: It swaps down with its bigger child.
What the run did:
85 is at least as big as both its children, so it stops here.
Question 7 of 14
Right.
You guessed: It is at least as big as its children, so it stops.
What the run did:
85 is at least as big as both its children, so it stops here.
Question 7 of 14
Not this time.
You guessed: It has no children, so it stops.
What the run did:
85 is at least as big as both its children, so it stops here.
Question 8 of 14
Question 8 of 14
Question 8 of 14
Not this time.
You guessed: 85 is not bigger than 46.
What the run did:
85 is bigger than 46.
Question 9 of 14
Question 9 of 14
Not this time.
You guessed: 54 is bigger than 85.
What the run did:
54 is not bigger than 85.
Question 9 of 14
Question 10 of 14
Question 10 of 14
Right.
You guessed: It swaps down with its bigger child.
What the run did:
Swap 46 down with its bigger child, 85.
Question 10 of 14
Not this time.
You guessed: It is at least as big as its children, so it stops.
What the run did:
Swap 46 down with its bigger child, 85.
Question 10 of 14
Not this time.
You guessed: It has no children, so it stops.
What the run did:
Swap 46 down with its bigger child, 85.
Question 11 of 14
Question 11 of 14
Question 11 of 14
Not this time.
You guessed: 67 is not bigger than 46.
What the run did:
67 is bigger than 46.
Question 12 of 14
Question 12 of 14
Not this time.
You guessed: 23 is bigger than 67.
What the run did:
23 is not bigger than 67.
Question 12 of 14