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 1 of 48
Question 1 of 33
Step 1 of 48
Step 2 of 48
Step 3 of 48
Step 4 of 48
Step 5 of 48
Step 6 of 48
Step 7 of 48
Step 8 of 48
Step 9 of 48
Step 10 of 48
Step 11 of 48
Question 1 of 33
Question 1 of 33
Right.
You guessed: 42 is bigger than 7, so they swap.
What the run did:
42 is bigger than 7, so they are the wrong way round.
Question 1 of 33
Not this time.
You guessed: 42 is not bigger than 7, so they stay.
What the run did:
42 is bigger than 7, so they are the wrong way round.
Question 2 of 33
Question 2 of 33
Right.
You guessed: 42 is bigger than 31, so they swap.
What the run did:
42 is bigger than 31, so they are the wrong way round.
Question 2 of 33
Not this time.
You guessed: 42 is not bigger than 31, so they stay.
What the run did:
42 is bigger than 31, so they are the wrong way round.
Question 3 of 33
Question 3 of 33
Right.
You guessed: 42 is bigger than 18, so they swap.
What the run did:
42 is bigger than 18, so they are the wrong way round.
Question 3 of 33
Not this time.
You guessed: 42 is not bigger than 18, so they stay.
What the run did:
42 is bigger than 18, so they are the wrong way round.
Question 4 of 33
Question 4 of 33
Not this time.
You guessed: 42 is bigger than 56, so they swap.
What the run did:
42 is not bigger than 56, so they stay as they are.
Question 4 of 33
Right.
You guessed: 42 is not bigger than 56, so they stay.
What the run did:
42 is not bigger than 56, so they stay as they are.
Question 5 of 33
Question 5 of 33
Right.
You guessed: 56 is bigger than 23, so they swap.
What the run did:
56 is bigger than 23, so they are the wrong way round.
Question 5 of 33
Not this time.
You guessed: 56 is not bigger than 23, so they stay.
What the run did:
56 is bigger than 23, so they are the wrong way round.
Question 6 of 33
Question 6 of 33
Right.
You guessed: 56 is bigger than 12, so they swap.
What the run did:
56 is bigger than 12, so they are the wrong way round.
Question 6 of 33
Not this time.
You guessed: 56 is not bigger than 12, so they stay.
What the run did:
56 is bigger than 12, so they are the wrong way round.