1.

Which among the following is the best cut-off range to perform insertion sort within a quick sort?(a) N=0-5(b) N=5-20(c) N=20-30(d) N>30The question was asked in my homework.Origin of the question is Quicksort topic in division Sorting of Data Structures & Algorithms II

Answer»

The CORRECT choice is (B) N=5-20

To explain: A good cut-off range is ANYWHERE between N=5 and N=20 to avoid NASTY DEGENERATE cases.



Discussion

No Comment Found

Related InterviewSolutions