Question:

The average case time complexity of quick sort is

Show Hint

Quick sort’s efficiency comes from partitioning the array into smaller sub-arrays, leading to a logarithmic depth.
Updated On: May 3, 2025
  • \( O(n \log n) \)
  • \( O(n^2) \)
  • \( O(n) \)
  • \( O(\log n) \)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Quick sort is an efficient sorting algorithm with an average case time complexity of \( O(n \log n) \). This is because, on average, the pivot divides the list in roughly half, resulting in logarithmic recursion depth.
Thus, the average case time complexity is \( O(n \log n) \).
Was this answer helpful?
0
0