Category: Selection Sort

25
Jun
2017

Selection Sort

PSeudoCode: selectionSort(A,n) { for(i=0 to n-1) { min=i; for(j=i+1 to n){ if(arr[j]<arr[min]){ min=j; } } if(min!=i) {…

25
Jun
2017

Selection Sort

PSeudoCode: selectionSort(A,n) { for(i=0 to n-1) { min=i; for(j=i+1 to n){ if(arr[j]<arr[min]){ min=j; } } if(min!=i) {…

25
Jun
2017

Selection Sort

PSeudoCode: selectionSort(A,n) { for(i=0 to n-1) { min=i; for(j=i+1 to n){ if(arr[j]<arr[min]){ min=j; } } if(min!=i) {…