step 1: Start
step 2: set i = 0
step 3: if i < n-1 continue to step 4 else go to step 11
step 4: set ind = i
step 5: Set j = i+1
step 6: if j < n continue to step 7 else go to step 9
step 7: If arr[j] < arr[ind] set ind = j
step 8: increment j and go to step 5
step 9: swap arr[i] and arr[ind]
step 10: increment i and go to step 3
step 11: Stop