java - Shell Sort Increments -


so have project due have construct our own shell sort using given increments below. after research reading on different increments use, have 2 questions hope more seasoned programmers answer.

instructions our lab implement sort these increments:

1, 4, 13, 40, 121, 364, 1093, 3280, 9841, 29524 (knuth’s sequence) 1, 5, 17, 53, 149, 373, 1123, 3371, 10111, 30341 1, 10, 30, 60, 120, 360, 1080, 3240, 9720, 29160 1 or more sets of increments of choice.  

my question is, have seen in experience 2 below knuth's sequence ever used before? in research came across did not see these increments , wanted see if these used. not looking on these, better understanding. secondly, wanted see if have suggestions use on "your choice" interesting choice explain professor.

thanks insight.


Comments