Selection sort
Selection sort
Selection Sort
Selection sort consists of iterations. In the -th iteration, it finds the smallest element among the unsorted suffix and swaps it into position . After iterations, the first elements are in their final sorted positions.