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 38 of 61
Question 25 of 35
Step 38 of 61
Step 39 of 61
Step 40 of 61
Step 42 of 61
Step 43 of 61
Step 44 of 61
Step 45 of 61
Step 46 of 61
Step 47 of 61
Question 25 of 35
Question 25 of 35
Not this time.
You guessed: 49 is smaller than 23, so 49 is the smallest so far.
What the run did:
49 is not smaller than 23, so 23 is still the smallest so far.
Question 25 of 35
Right.
You guessed: 49 is not smaller than 23, so 23 stays the smallest so far.
What the run did:
49 is not smaller than 23, so 23 is still the smallest so far.
Question 26 of 35
Question 26 of 35
Right.
You guessed: The smallest left swaps into this place.
What the run did:
Swap 23 into the place, and 31 goes where 23 was.
Question 26 of 35
Not this time.
You guessed: The smallest left is already in this place, so nothing moves.
What the run did:
Swap 23 into the place, and 31 goes where 23 was.
Question 27 of 35
Question 27 of 35
Right.
You guessed: 31 is smaller than 56, so 31 is the smallest so far.
What the run did:
31 is smaller than 56.
Question 27 of 35
Not this time.
You guessed: 31 is not smaller than 56, so 56 stays the smallest so far.
What the run did:
31 is smaller than 56.
Question 28 of 35
Question 28 of 35
Not this time.
You guessed: 42 is smaller than 31, so 42 is the smallest so far.
What the run did:
42 is not smaller than 31, so 31 is still the smallest so far.
Question 28 of 35
Right.
You guessed: 42 is not smaller than 31, so 31 stays the smallest so far.
What the run did:
42 is not smaller than 31, so 31 is still the smallest so far.
Question 29 of 35
Question 29 of 35
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 29 of 35
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 30 of 35
Question 30 of 35
Right.
You guessed: The smallest left swaps into this place.
What the run did:
Swap 31 into the place, and 56 goes where 31 was.
Question 30 of 35
Not this time.
You guessed: The smallest left is already in this place, so nothing moves.
What the run did:
Swap 31 into the place, and 56 goes where 31 was.