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