#include
// Hill sort: unstable, is a reform of direct insertion
Void shellsort (int A [】, int N)
{
INT H, I, J, T;
For (h = n / 2; h> 0; h / = 2) // h is the step size, the following algorithm is replaced by the direct insertion algorithm in H.