1.

Shell sort is more efficient than insertion sort if the length of input arrays is small.(a) True(b) FalseI had been asked this question in homework.The question is from Shell sort topic in portion Sorting of Data Structures & Algorithms II

Answer»

The correct answer is (b) False

The best I can explain: Insertion sort is more EFFICIENT than SHELL sort if the length of array is SMALL because insertion sort is QUITE SIMPLE to program and involve very few actions other than comparisons and replacements on each pass.



Discussion

No Comment Found

Related InterviewSolutions