Selection Sort
Basically in this technique we take minimum element from entire array & swap it with the 1st element. After this we take minimum from entire array excluding 1st element & swap that minimum element & element at 2nd position & continue so on.

ALGORITHM :
1234567FOR i = 1 TO N - 1 DO
min = i
FOR j = i + 1 TO N DO
IF A[j] < A[min] THEN
min = j
SWAP(A[min], A[i])
Source Code :
No comments:
If you have any doubt or suggestion let me know in comment section.