1.

What is the average time complexity of MSD radix sort (w= bits required to store each key)?(a) O(n + w)(b) O(n.w)(c) O(n^2)(d) O(n log n)The question was asked in semester exam.My query is from Sorting topic in chapter Sorting of Data Structures & Algorithms II

Answer»

Correct choice is (B) O(n.w)

The best explanation: TIME COMPLEXITY of radix sort is O(n.w). It performs better than quick sort when we have LOG n BITS for every digit.



Discussion

No Comment Found

Related InterviewSolutions