#include
// Select Sort: Unstable
Void SelectionSort (int A [], int N)
{
INT I, J, K, T;
For (i = 0; i { K = I; For (j = i 1; j { IF (a [k]> a [j]) K = J; IF (k! = i) { T = a [i]; a [i] = a [k]; a [k] = t; } } } } // Direct insertion sort: stability Void insertsort (int A [], int N) { INT I, J, T;