Data Structures and Algorithms20815 marksNumerical: shell sortComparison Sorting Algorithms
Sort the number {82, 73, 12, 39, 26, 88, 2, 9, 60, 41} using shell sort.
Sort the number {82, 73, 12, 39, 26, 88, 2, 9, 60, 41} using shell sort. [5]
Index 0 1 2 3 4 5 6 7 8 9 ------------------------------------- Value 82 73 12 39 26 88 2 9 60 41 - $n = 10$ - Increment sequence chosen: $k = 5, 2, 1$ (standard $n/2$ halving) Sub-files (elements 5 positions apart): Sub-file Indices Values Sorted ----------------------------------- 1 0, 5 {82, 8...