← CS 302 Home

Selection Sort — Maximum to End

Each pass finds the largest item in the unsorted region and swaps it to the end.
Sorted region grows from right to left.

Unsorted
Largest found
Sorted (final position)