Anonymous user
Sorting algorithms/Shell sort: Difference between revisions
→{{header|C}}
(→{{header|C}}: array is constant: initialize only once) |
|||
Line 68:
static int incSequence[] = {412771, 165103, 66041, 26417, 10567, 4231, 1693, 673, 269, 107, 43, 17, 7, 3, 1};
for (k = 0; k <
{
if (incSequence[k]*2 > length) continue;
|