pessoal estou com uma duvida, como fazer shell sort inverso decrescente.
private static void shellsort(int v[], int n) {
int i, j, aux, h = 1;
do
h = 3 * h + 1;
while (h < n);
do {
h /= 3;
for (i = h; i < n; i++) {
aux = v[i];
j = i - h;
while (j >= 0 && aux < v[j]) {
v[j + h] = v[j];
j -= h;
}
v[j + h] = aux;
}
} while (h > 1);
}
aux < v[j]
paraaux > v[j]