Question:

Which of the following sorting algorithms has the best average-case time complexity?

Show Hint

Choose Quick Sort for large datasets due to its efficient average performance.
Updated On: Jun 6, 2025
  • Bubble Sort
  • Selection Sort
  • Quick Sort
  • Insertion Sort
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understand time complexity
Time complexity measures algorithm efficiency for average cases.
Step 2: Evaluate options
Bubble Sort: $O(n^2)$ average case.
Selection Sort: $O(n^2)$ average case.
Quick Sort: $O(n \log n)$ average case.
Insertion Sort: $O(n^2)$ average case.
Step 3: Select best algorithm
Quick Sort has the best average-case time complexity: $O(n \log n)$.
Was this answer helpful?
0
0

AP PGECET Notification