guess the next step: Bubble 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 21 of 48
Question 13 of 33
Step 21 of 48
Step 22 of 48
Step 23 of 48
Step 24 of 48
Step 25 of 48
Step 26 of 48
Step 27 of 48
Step 28 of 48
Question 13 of 33
Question 13 of 33
Right.
You guessed: 42 is bigger than 12, so they swap.
What the run did:
42 is bigger than 12, so they are the wrong way round.
Question 13 of 33
Not this time.
You guessed: 42 is not bigger than 12, so they stay.
What the run did:
42 is bigger than 12, so they are the wrong way round.
Question 14 of 33
Question 14 of 33
Not this time.
You guessed: 42 is bigger than 49, so they swap.
What the run did:
42 is not bigger than 49, so they stay as they are.
Question 14 of 33
Right.
You guessed: 42 is not bigger than 49, so they stay.
What the run did:
42 is not bigger than 49, so they stay as they are.
Question 15 of 33
Question 15 of 33
Right.
You guessed: The biggest number left settles at the end.
What the run did:
49 is now at the end of the unsorted part. Nothing bigger is left, so it stays there for good.
Question 15 of 33
Not this time.
You guessed: Everything left is already in order.
What the run did:
49 is now at the end of the unsorted part. Nothing bigger is left, so it stays there for good.
Question 16 of 33
Question 16 of 33
Not this time.
You guessed: 7 is bigger than 18, so they swap.
What the run did:
7 is not bigger than 18, so they stay as they are.
Question 16 of 33
Right.
You guessed: 7 is not bigger than 18, so they stay.
What the run did:
7 is not bigger than 18, so they stay as they are.
Question 17 of 33
Question 17 of 33
Not this time.
You guessed: 18 is bigger than 31, so they swap.
What the run did:
18 is not bigger than 31, so they stay as they are.
Question 17 of 33
Right.
You guessed: 18 is not bigger than 31, so they stay.
What the run did:
18 is not bigger than 31, so they stay as they are.
Question 18 of 33
Question 18 of 33
Right.
You guessed: 31 is bigger than 23, so they swap.
What the run did:
31 is bigger than 23, so they are the wrong way round.
Question 18 of 33
Not this time.
You guessed: 31 is not bigger than 23, so they stay.
What the run did:
31 is bigger than 23, so they are the wrong way round.