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 3 of 20
Question 1 of 14
Step 3 of 20
Step 4 of 20
Step 5 of 20
Step 6 of 20
Step 7 of 20
Step 8 of 20
Step 9 of 20
Step 10 of 20
Question 1 of 14
Question 1 of 14
Question 1 of 14
Not this time.
You guessed: 54 is not bigger than 11.
What the run did:
54 is bigger than 11.
Question 2 of 14
Question 2 of 14
Not this time.
You guessed: 38 is bigger than 54.
What the run did:
38 is not bigger than 54.
Question 2 of 14
Question 3 of 14
Question 3 of 14
Right.
You guessed: It swaps down with its bigger child.
What the run did:
Swap 11 down with its bigger child, 54.
Question 3 of 14
Not this time.
You guessed: It is at least as big as its children, so it stops.
What the run did:
Swap 11 down with its bigger child, 54.
Question 3 of 14
Not this time.
You guessed: It has no children, so it stops.
What the run did:
Swap 11 down with its bigger child, 54.
Question 4 of 14
Question 4 of 14
Not this time.
You guessed: It swaps down with its bigger child.
What the run did:
11 has no children, so it stops here.
Question 4 of 14
Not this time.
You guessed: It is at least as big as its children, so it stops.
What the run did:
11 has no children, so it stops here.
Question 4 of 14
Right.
You guessed: It has no children, so it stops.
What the run did:
11 has no children, so it stops here.
Question 5 of 14
Question 5 of 14
Not this time.
You guessed: 67 is bigger than 85.
What the run did:
67 is not bigger than 85.
Question 5 of 14
Question 6 of 14
Question 6 of 14
Not this time.
You guessed: 23 is bigger than 85.
What the run did:
23 is not bigger than 85.
Question 6 of 14