Sorting
Should we worry about speed?
2
Task Description
We have an array of n values in any
- rder
We need to have the array sorted in
ascending or descending order of values
3
Selection Sort
Select the smallest value in the array Swap that value with the value in the first
array location
Repeatedly do: Select the smallest value of the remaining
values
Swap that value with the value in the first of
the remaining locations
Stop when no values remain