EX1.
How many comparisons and swaps of elements are made in each case?
void SelectionSort (int A[]) {
for (int i = 0 ; i<A.length; i++){
small = i ;
for (int j = i+1; j < n; j++)
if (A[j] < A[small])
small = j ;
int temp = A[small];
A[small] = A[i];
A[i] = temp;
}
}