Question:

Best case complexity of insertion sorting is _______ .

Show Hint

Insertion Sort is efficient for small or nearly sorted datasets, where the best case complexity is \(O(n)\).
Updated On: Jun 16, 2025
  • O(n)
  • O(n\log n)
  • O(n\(^2\))
  • O(\(\log n\))
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

The best case complexity of Insertion Sort occurs when the input is already sorted. In this case, the algorithm only needs to make one pass through the data, resulting in a time complexity of \(O(n)\). In the worst case (when the data is sorted in reverse order), the time complexity is \(O(n^2)\).
Was this answer helpful?
0
0