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 11 of 35
Question 7 of 20
Step 11 of 35
Step 12 of 35
Step 13 of 35
Step 14 of 35
Step 15 of 35
Step 16 of 35
Step 17 of 35
Step 18 of 35
Step 20 of 35
Step 21 of 35
Question 7 of 20
Question 7 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 7 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 8 of 20
Question 8 of 20
Right.
You guessed: 12 is smaller than 31, so 12 is the smallest so far.
What the run did:
12 is smaller than 31.
Question 8 of 20
Not this time.
You guessed: 12 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
12 is smaller than 31.
Question 9 of 20
Question 9 of 20
Right.
You guessed: 7 is smaller than 12, so 7 is the smallest so far.
What the run did:
7 is smaller than 12.
Question 9 of 20
Not this time.
You guessed: 7 is not smaller than 12, so 12 stays the smallest so far.
What the run did:
7 is smaller than 12.
Question 10 of 20
Question 10 of 20
Not this time.
You guessed: 49 is smaller than 7, so 49 is the smallest so far.
What the run did:
49 is not smaller than 7, so 7 is still the smallest so far.
Question 10 of 20
Right.
You guessed: 49 is not smaller than 7, so 7 stays the smallest so far.
What the run did:
49 is not smaller than 7, so 7 is still the smallest so far.
Question 11 of 20
Question 11 of 20
Right.
You guessed: The smallest left swaps into this place.
What the run did:
Swap 7 into the place, and 31 goes where 7 was.
Question 11 of 20
Not this time.
You guessed: The smallest left is already in this place, so nothing moves.
What the run did:
Swap 7 into the place, and 31 goes where 7 was.
Question 12 of 20
Question 12 of 20
Right.
You guessed: 12 is smaller than 31, so 12 is the smallest so far.
What the run did:
12 is smaller than 31.
Question 12 of 20
Not this time.
You guessed: 12 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
12 is smaller than 31.