1.

Which of the following is the distribution sort?(a) Heap sort(b) Smooth sort(c) Quick sort(d) LSD radix sortThis question was addressed to me by my college director while I was bunking the class.I want to ask this question from Sorting in portion Sorting of Data Structures & Algorithms II

Answer»

Correct CHOICE is (d) LSD radix sort

The best explanation: In Distribution sort the inputted values are distributed to multiple INTERMEDIATE STRUCTURES which are then combined and placed on the OUTPUT. And LSD radix sort distributes values into buckets based on the digits within values, so it is a distribution sort.



Discussion

No Comment Found

Related InterviewSolutions