1.

Sleep sort can be preferred over which of the following sorting algorithms for large number of input elements?(a) Quick sort(b) Bubble sort(c) Selection sort(d) No sorting algorithm is preferredThis question was addressed to me in a national level competition.My question comes from Sorting topic in chapter Sorting of Data Structures & Algorithms II

Answer»

The correct OPTION is (d) No SORTING algorithm is preferred

The best I can explain: Sleep SORT is not preferred over any of the given sorting algorithms as sleep sort does not guarantee a correct OUTPUT every time. So sleep sort is not a RELIABLE sorting technique.



Discussion

No Comment Found

Related InterviewSolutions