Question: please answer it within 2 hours Shell sort has been proposed in 1959. The algorithm, sometimes known as the diminishing increment sort, is a repeated
please answer it within 2 hours

Shell sort has been proposed in 1959. The algorithm, sometimes known as the diminishing increment sort, is a repeated application of the insertion sort. The algorithm first sorts the elements far apart from each other and successively reduces the interval between the elements to be sorted. In shell sort, N elements at a specific interval are sorted based on the sequence of = 1 which is gradually decreased. The performance of the shell sort depends on the type of sequence used for a given input array. Figure 1 is the Shell sort code analyze the code based on the data given in the following questions. N NN 21022 void shellsort (int array(), int n) for (int interval=n/2; interval>0; interval=interval/2) for (int i=interval; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
