Randomized quicksort is an extension of quicksort where the pivot is chosen randomly. What is the worst case complexity of sorting n number using randomized quicksort?
Randomized quicksort is an extension of quicksort where the pivot is chosen randomly. What is the worst case complexity of sorting n number using randomized quicksort? Correct Answer <p>O(n log n)</p>
The worst case complexity of a quick sort is O(n2) but in the case of randomized quick sort, it behaves like best case i.e. O(n logn).
মোঃ আরিফুল ইসলাম
Feb 20, 2025