1.

Which of the following is not necessarily a stable sorting algorithm?(a) bucket sort(b) counting sort(c) merge sort(d) pigeonhole sortI got this question by my college director while I was bunking the class.This intriguing question originated from Sorting topic in section Sorting of Data Structures & Algorithms II

Answer»

The correct answer is (a) BUCKET sort

The explanation is: Bucket sort is not necessarily a stable sorting ALGORITHM. This is because its stability depends on the stability of the algorithm that we have USED to sort the individual BUCKETS.



Discussion

No Comment Found

Related InterviewSolutions