Sorting
April 18, 2024
Question 9639 – Sorting
April 18, 2024
Sorting
April 18, 2024
Question 9639 – Sorting
April 18, 2024

GATE 2001

Question 14

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

A
O(n)
B
O(n log n)
C
O(n2)
D
O(n!)
Question 14 Explanation: 
In worst case Randomized quicksort execution time complexity is same as quicksort.
Correct Answer: C
Question 14 Explanation: 
In worst case Randomized quicksort execution time complexity is same as quicksort.

Leave a Reply

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