Selection Sort
beginnerFinds the minimum unsorted element and places it at the correct position; always O(n²) comparisons.
64
25
12
22
11
45
[0]
[1]
[2]
[3]
[4]
[5]
Comparing
Scanning
Current min
Sorted
Starting with array: [64, 25, 12, 22, 11, 45]
1 / 38