Multiple choice

Randomized quick sort is an extension of quick sort where the pivot is chosen randomly. What is the worst case complexity of sorting n numbers using randomized quick sort?

  1. 0(n)

  2. 0(nlog n)

  3. 0(n2)

  4. 0(n!)

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In randomized quick sort pivot is chosen randomly, the case complexity of sorting n. In that case the worst case 0(n2) of quick sort become 0(nlog n) of randomize quick sort.