Selection Sort
Selection Sort
SORT
MO3AZ
Selection Sort
MO3AZ
SAIF
Selection Sort
Example :
Pseudocode :
3 1 4 2
function selectionSort( arr , n )
Min = 3 3>1 => Min
for i from 0 to n - 1 =1
Min = 1 1>4 => Min
minIndex = i =1
Min = 1 1>2 => Min
for j from i+1 to n = 11 3 4 2
1 2 3 4
MO3AZ
SAIF
QUESTION TIME !
MO3AZ