Selection Sort
In this Sorting technique the list is divided into two parts. first one is left end and second one is right end .
The selection Sort is very simple sorting algorithm.
Steps for Selection Sort in C
- Step 1-Select the smallest value in the list.
- Step 2-Swap smallest value with the first element of the list.
- Step 3-Again select the smallest value in the list (exclude first value).
- Step 4- Repeat above step for (n-1) elements untill the list is sorted.