1.

Shell sort is an improvement on ____(a) insertion sort(b) selection sort(c) binary tree sort(d) quick sortThis question was posed to me in a job interview.Question is taken from Shell sort in section Sorting of Data Structures & Algorithms II

Answer»

Right choice is (a) insertion sort

The best explanation: Shell sort is an improvement on insertion sort that allows the EXCHANGE of ELEMENTS that are far apart. Shell sort algorithm SORTS separate sub-arrays of the original input array. These sub-arrays contains EVERY hth element of the original array.



Discussion

No Comment Found

Related InterviewSolutions