PA of Algorithms Q102

0. If we use Radix Sort to sort n integers in the range (nk/12, nk], for some k > 0 which is independent of n, the time taken would be

  • Option : C
  • Explanation :
    Time complexity of radix sort is = O(nd)
    Where n = keys, d = maximum digit in keys.
    = d = log (nk)
    O(nd) = O(n * k logn)
    = k × O (nlogn)
    = O(nlogn)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *