guess the next step: Heap sort
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 11 of 53
Question 7 of 29
Step 11 of 53
Step 12 of 53
Step 13 of 53
Step 14 of 53
Step 15 of 53
Step 16 of 53
Step 17 of 53
Question 7 of 29
Question 7 of 29
Question 7 of 29
Not this time.
You guessed: 56 is not bigger than 42.
What the run did:
56 is bigger than 42.
Question 8 of 29
Question 8 of 29
Not this time.
You guessed: 31 is bigger than 56.
What the run did:
31 is not bigger than 56.
Question 8 of 29
Question 9 of 29
Question 9 of 29
Right.
You guessed: The number being sifted swaps down with its bigger child.
What the run did:
Swap 42 down with its bigger child, 56.
Question 9 of 29
Not this time.
You guessed: The number being sifted is at least as big as its children, so it stops.
What the run did:
Swap 42 down with its bigger child, 56.
Question 10 of 29
Question 10 of 29
Not this time.
You guessed: 18 is bigger than 42.
What the run did:
18 is not bigger than 42.
Question 10 of 29
Question 11 of 29
Question 11 of 29
Not this time.
You guessed: 7 is bigger than 42.
What the run did:
7 is not bigger than 42.
Question 11 of 29
Question 12 of 29
Question 12 of 29
Not this time.
You guessed: The number being sifted swaps down with its bigger child.
What the run did:
42 is at least as big as its children, so it stops here.
Question 12 of 29
Right.
You guessed: The number being sifted is at least as big as its children, so it stops.
What the run did:
42 is at least as big as its children, so it stops here.