The Selectionsort Algorithm
p
Start by
finding the
smallest
entry.
p
Swap the
smallest
entry with
the
first
entry
.
[0]
[1]
[2]
[3]
[4]
[5]
Once we have found the smallest element, that element is swapped with the first element of the array...