Selection Sort is a list sorting algorithm. It is very easy to implement but is rather inefficient.
Algorithm
For each position in the List the algorithm searches for the smallest Item in the list starting at that point. When that item is found it is swapped into the current position.
Examples
Pseudocode
selection sort(list[1 to n])
for i = 1 to n - 1
minimum = i
for j = i + 1 to n
if list at j jkloipi9
External links
Selection sort
|
