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 29 of 61
Question 19 of 35
Step 29 of 61
Step 30 of 61
Step 31 of 61
Step 32 of 61
Step 34 of 61
Step 35 of 61
Step 36 of 61
Step 37 of 61
Step 38 of 61
Question 19 of 35
Question 19 of 35
Not this time.
You guessed: 42 is smaller than 18, so 42 is the smallest so far.
What the run did:
42 is not smaller than 18, so 18 is still the smallest so far.
Question 19 of 35
Right.
You guessed: 42 is not smaller than 18, so 18 stays the smallest so far.
What the run did:
42 is not smaller than 18, so 18 is still the smallest so far.
Question 20 of 35
Question 20 of 35
Not this time.
You guessed: 49 is smaller than 18, so 49 is the smallest so far.
What the run did:
49 is not smaller than 18, so 18 is still the smallest so far.
Question 20 of 35
Right.
You guessed: 49 is not smaller than 18, so 18 stays the smallest so far.
What the run did:
49 is not smaller than 18, so 18 is still the smallest so far.
Question 21 of 35
Question 21 of 35
Right.
You guessed: The smallest left swaps into this place.
What the run did:
Swap 18 into the place, and 31 goes where 18 was.
Question 21 of 35
Not this time.
You guessed: The smallest left is already in this place, so nothing moves.
What the run did:
Swap 18 into the place, and 31 goes where 18 was.
Question 22 of 35
Question 22 of 35
Not this time.
You guessed: 56 is smaller than 31, so 56 is the smallest so far.
What the run did:
56 is not smaller than 31, so 31 is still the smallest so far.
Question 22 of 35
Right.
You guessed: 56 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
56 is not smaller than 31, so 31 is still the smallest so far.
Question 23 of 35
Question 23 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 23 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 24 of 35
Question 24 of 35
Not this time.
You guessed: 42 is smaller than 23, so 42 is the smallest so far.
What the run did:
42 is not smaller than 23, so 23 is still the smallest so far.
Question 24 of 35
Right.
You guessed: 42 is not smaller than 23, so 23 stays the smallest so far.
What the run did:
42 is not smaller than 23, so 23 is still the smallest so far.