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 2 of 35
Question 1 of 20
Step 2 of 35
Step 3 of 35
Step 4 of 35
Step 5 of 35
Step 6 of 35
Step 7 of 35
Step 8 of 35
Step 9 of 35
Question 1 of 20
Question 1 of 20
Right.
You guessed: 7 is smaller than 31, so 7 is the smallest so far.
What the run did:
7 is smaller than 31.
Question 1 of 20
Not this time.
You guessed: 7 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
7 is smaller than 31.
Question 2 of 20
Question 2 of 20
Not this time.
You guessed: 31 is smaller than 7, so 31 is the smallest so far.
What the run did:
31 is not smaller than 7, so 7 is still the smallest so far.
Question 2 of 20
Right.
You guessed: 31 is not smaller than 7, so 7 stays the smallest so far.
What the run did:
31 is not smaller than 7, so 7 is still the smallest so far.
Question 3 of 20
Question 3 of 20
Not this time.
You guessed: 12 is smaller than 7, so 12 is the smallest so far.
What the run did:
12 is not smaller than 7, so 7 is still the smallest so far.
Question 3 of 20
Right.
You guessed: 12 is not smaller than 7, so 7 stays the smallest so far.
What the run did:
12 is not smaller than 7, so 7 is still the smallest so far.
Question 4 of 20
Question 4 of 20
Not this time.
You guessed: 7 is smaller than 7, so 7 is the smallest so far.
What the run did:
7 is not smaller than 7, so 7 is still the smallest so far.
Question 4 of 20
Right.
You guessed: 7 is not smaller than 7, so 7 stays the smallest so far.
What the run did:
7 is not smaller than 7, so 7 is still the smallest so far.
Question 5 of 20
Question 5 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 5 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 6 of 20
Question 6 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 6 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.