ShellSort is the last sorting algorithm in my sorting series. Shellsort is a sorting method, which works in-place. ShellSort is the extension of or based on InsertionSort.
How ShellSort works
· 3 min read
ShellSort is the last sorting algorithm in my sorting series. Shellsort is a sorting method, which works in-place. ShellSort is the extension of or based on InsertionSort.
SelectionSort is a sorting method, which works in-place, here no new array is created for the sorting. SelectionSort works in bestcase, averagecase and worstcase, with an overhead of .
InsertionSort is a sorting method which is easy to implement. InsertionSort works on the principle that you go through the array to be sorted and compare each element with its predecessor. You start at the 2nd element in the array.