Which sorting algorithm has the best average time complexity?

  • Merge Sort
  • Bubble Sort
  • Quick Sort
  • Insertion Sort
Merge Sort has the best average time complexity among the provided options. It has a time complexity of O(n log n) in the average case, making it efficient for large datasets. Quick Sort also has O(n log n) average time complexity but is generally outperformed by Merge Sort in practice.
Add your answer
Loading...

Leave a comment

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