Nice math, but what about computers?
Consider a small method that sorts an array
Public void SelectionSort(int A[]) {
int small, temp;
for (int i =0 ; i < (A.length –1);i++) {
small = i;
for (int j =i+1; j < (A.length);j++) {
If (A[j] < A[small]) {
temp = A[small]; A[small] = A[j]; A[j] = temp;
}
}
}
}