1.

Which of the following is an adaptive sorting algorithm?(a) heap sort(b) strand sort(c) selection sort(d) merge sortThe question was posed to me at a job interview.The above asked question is from Sorting topic in chapter Sorting of Data Structures & Algorithms II

Answer»

Correct ANSWER is (b) STRAND sort

For explanation: Strand sort is an adaptive sorting algorithm. This is because it gives a better performance when the input LIST is almost SORTED.



Discussion

No Comment Found

Related InterviewSolutions