Sorting Lab

Algorithm visualizer

Selection Sort

Selects the smallest remaining value and places it at the front.

Complexity

Run

Step through the array

The sorted prefix grows one selected minimum at a time.

setup
9
4
7
2
8
1
6
3
5

Step 1 / 67: Scan the unsorted suffix and select the smallest value for the next position.

0%