guess the next step: Selection 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 22 of 35
Question 13 of 20
Step 22 of 35
Step 23 of 35
Step 24 of 35
Step 25 of 35
Step 27 of 35
Step 28 of 35
Step 29 of 35
Step 30 of 35
Question 13 of 20
Question 13 of 20
Not this time.
You guessed: 31 is smaller than 12, so 31 is the smallest so far.
What the run did:
31 is not smaller than 12, so 12 is still the smallest so far.
Question 13 of 20
Right.
You guessed: 31 is not smaller than 12, so 12 stays the smallest so far.
What the run did:
31 is not smaller than 12, so 12 is still the smallest so far.
Question 14 of 20
Question 14 of 20
Not this time.
You guessed: 49 is smaller than 12, so 49 is the smallest so far.
What the run did:
49 is not smaller than 12, so 12 is still the smallest so far.
Question 14 of 20
Right.
You guessed: 49 is not smaller than 12, so 12 stays the smallest so far.
What the run did:
49 is not smaller than 12, so 12 is still the smallest so far.
Question 15 of 20
Question 15 of 20
Right.
You guessed: The smallest left swaps into this place.
What the run did:
Swap 12 into the place, and 31 goes where 12 was.
Question 15 of 20
Not this time.
You guessed: The smallest left is already in this place, so nothing moves.
What the run did:
Swap 12 into the place, and 31 goes where 12 was.
Question 16 of 20
Question 16 of 20
Not this time.
You guessed: 31 is smaller than 31, so 31 is the smallest so far.
What the run did:
31 is not smaller than 31, so 31 is still the smallest so far.
Question 16 of 20
Right.
You guessed: 31 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
31 is not smaller than 31, so 31 is still the smallest so far.
Question 17 of 20
Question 17 of 20
Not this time.
You guessed: 49 is smaller than 31, so 49 is the smallest so far.
What the run did:
49 is not smaller than 31, so 31 is still the smallest so far.
Question 17 of 20
Right.
You guessed: 49 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
49 is not smaller than 31, so 31 is still the smallest so far.
Question 18 of 20
Question 18 of 20
Not this time.
You guessed: The smallest left swaps into this place.
What the run did:
31 is the smallest left and already in this place, so no swap is needed. It stays there for good.
Question 18 of 20
Right.
You guessed: The smallest left is already in this place, so nothing moves.
What the run did:
31 is the smallest left and already in this place, so no swap is needed. It stays there for good.