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 14 of 65
Question 7 of 35
Step 14 of 65
Step 15 of 65
Step 16 of 65
Step 17 of 65
Step 19 of 65
Step 20 of 65
Step 21 of 65
Step 22 of 65
Step 23 of 65
Step 24 of 65
Step 25 of 65
Step 26 of 65
Question 7 of 35
Question 7 of 35
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 7 of 35
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 8 of 35
Question 8 of 35
Right.
You guessed: The smallest left swaps into this place.
What the run did:
Swap 7 into the place, and 56 goes where 7 was.
Question 8 of 35
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 56 goes where 7 was.
Question 9 of 35
Question 9 of 35
Right.
You guessed: 42 is smaller than 49, so 42 is the smallest so far.
What the run did:
42 is smaller than 49.
Question 9 of 35
Not this time.
You guessed: 42 is not smaller than 49, so 49 stays the smallest so far.
What the run did:
42 is smaller than 49.
Question 10 of 35
Question 10 of 35
Right.
You guessed: 31 is smaller than 42, so 31 is the smallest so far.
What the run did:
31 is smaller than 42.
Question 10 of 35
Not this time.
You guessed: 31 is not smaller than 42, so 42 stays the smallest so far.
What the run did:
31 is smaller than 42.
Question 11 of 35
Question 11 of 35
Right.
You guessed: 23 is smaller than 31, so 23 is the smallest so far.
What the run did:
23 is smaller than 31.
Question 11 of 35
Not this time.
You guessed: 23 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
23 is smaller than 31.
Question 12 of 35
Question 12 of 35
Right.
You guessed: 18 is smaller than 23, so 18 is the smallest so far.
What the run did:
18 is smaller than 23.
Question 12 of 35
Not this time.
You guessed: 18 is not smaller than 23, so 23 stays the smallest so far.
What the run did:
18 is smaller than 23.