From 9e8caf1e06ba7510160305da11a30d91dcfc23e5 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 6 Sep 2024 21:10:21 +0200 Subject: reformat source code --- src/shellsort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shellsort.c') diff --git a/src/shellsort.c b/src/shellsort.c index 29e6bf8..d35e5b0 100644 --- a/src/shellsort.c +++ b/src/shellsort.c @@ -9,10 +9,10 @@ typedef int T; void shellsort(T a[], size_t n) { - //static const size_t gaps[] = { 701, 301, 132, 57, 23, 10, 4, 1 }; + // static const size_t gaps[] = { 701, 301, 132, 57, 23, 10, 4, 1 }; // Wikipedia: - //static const size_t gaps[] = { 2147483647, 1131376761, 410151271, 157840433, 58548857, 21521774, 8810089, 3501671, 1355339, 543749, 213331, 84801, 27901, 11969, 4711, 1968, 815, 271, 111, 41, 13, 4, 1 }; + // static const size_t gaps[] = { 2147483647, 1131376761, 410151271, 157840433, 58548857, 21521774, 8810089, 3501671, 1355339, 543749, 213331, 84801, 27901, 11969, 4711, 1968, 815, 271, 111, 41, 13, 4, 1 }; // https://www.cs.princeton.edu/~rs/shell/paperF.pdf static const size_t gaps[] = { 1391376, 463792, 198768, 86961, 33936, 13776, 4592, 1968, 861, 336, 112, 48, 21, 7, 3, 1 }; -- cgit v1.3