1.

Which of the following statement is not a stable sorting algorithm?(a) LSD radix sort(b) MSD radix sort(c) Counting sort(d) Pigeonhole sortThe question was asked at a job interview.This question is from Sorting topic in portion Sorting of Data Structures & Algorithms II

Answer»

Correct ANSWER is (b) MSD radix sort

Best EXPLANATION: MSD radix sort is not a stable sort. It is because the elements with identical values do not appear in the same order in the output ARRAY as they were in the input array.



Discussion

No Comment Found

Related InterviewSolutions