implement shell sort using sedgwick's intervals c++
I need to create 2 algorithms using Shell sort with Sedgwick distance sequence and Shell sort with original distance sequence. The algorithms must sort the data in ascending order. The sequence that will be further sorted must be generated from random numbers. I tried to create a Shell sort with the original sequence, but I'm stuck on the Sedgwick's distance sequence , maybe someone can help? I put a code in txt file