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 37 of 48
Question 25 of 33
Step 37 of 48
Step 38 of 48
Step 39 of 48
Step 40 of 48
Step 41 of 48
Step 42 of 48
Step 43 of 48
Step 44 of 48
Question 25 of 33
Question 25 of 33
Not this time.
You guessed: 23 is bigger than 31, so they swap.
What the run did:
23 is not bigger than 31, so they stay as they are.
Question 25 of 33
Right.
You guessed: 23 is not bigger than 31, so they stay.
What the run did:
23 is not bigger than 31, so they stay as they are.
Question 26 of 33
Question 26 of 33
Right.
You guessed: The biggest number left settles at the end.
What the run did:
31 is now at the end of the unsorted part. Nothing bigger is left, so it stays there for good.
Question 26 of 33
Not this time.
You guessed: Everything left is already in order.
What the run did:
31 is now at the end of the unsorted part. Nothing bigger is left, so it stays there for good.
Question 27 of 33
Question 27 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 27 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 28 of 33
Question 28 of 33
Right.
You guessed: 18 is bigger than 12, so they swap.
What the run did:
18 is bigger than 12, so they are the wrong way round.
Question 28 of 33
Not this time.
You guessed: 18 is not bigger than 12, so they stay.
What the run did:
18 is bigger than 12, so they are the wrong way round.
Question 29 of 33
Question 29 of 33
Not this time.
You guessed: 18 is bigger than 23, so they swap.
What the run did:
18 is not bigger than 23, so they stay as they are.
Question 29 of 33
Right.
You guessed: 18 is not bigger than 23, so they stay.
What the run did:
18 is not bigger than 23, so they stay as they are.
Question 30 of 33
Question 30 of 33
Right.
You guessed: The biggest number left settles at the end.
What the run did:
23 is now at the end of the unsorted part. Nothing bigger is left, so it stays there for good.
Question 30 of 33
Not this time.
You guessed: Everything left is already in order.
What the run did:
23 is now at the end of the unsorted part. Nothing bigger is left, so it stays there for good.