The median of n elements can be found in O(n) time. Which one of the following
is correct about the complexity of quick sort, in which median is selected as pivot?
- A\(\theta\)(n)
- B\(\theta\)(nlogn)
- C\(\theta (n^{2})\)
- D\(\theta (n^{3})\)
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems