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