Computer Science EngineeringHard

Radix sort of n numbers with d digits in base b using a stable counting sort per digit takes

  1. A. O(n log n)
  2. B. O(d n^2)
  3. C. O(n + b)
  4. D. Theta(d (n + b))

Correct answer: D. Theta(d (n + b))

Each of the d passes costs Theta(n + b).

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic