Question:medium

Which sorting algorithm has the best average-case time complexity?

Show Hint

Quick Sort is one of the most efficient sorting algorithms with an average-case time complexity of \( O(n \log n) \).
Updated On: Jan 16, 2026
  • Bubble Sort
  • Selection Sort
  • Quick Sort
  • Insertion Sort
Show Solution

The Correct Option is C

Solution and Explanation

Quick Sort exhibits the optimal average-case time complexity at \( O(n \log n) \). This efficient divide-and-conquer method recursively sorts sub-arrays after partitioning the main array. On average, its performance surpasses that of other sorting algorithms.
- Bubble Sort (A) has an average-case time complexity of \( O(n^2) \), rendering it significantly slower than Quick Sort in most scenarios.
- Selection Sort (B) also presents an average-case time complexity of \( O(n^2) \).
- Insertion Sort (D), while having an average-case time complexity of \( O(n^2) \), can outperform other \( O(n^2) \) algorithms when dealing with small or nearly sorted arrays.
Therefore, (C), Quick Sort with \( O(n \log n) \), is the correct choice.
Was this answer helpful?
0