Which of the below given sorting techniques has highest best-case runtime…

2023

Which of the below given sorting techniques has highest best-case runtime complexity −

  1. A.

    quick sort

  2. B.

    selection sort

  3. C.

    insertion sort

  4. D.

    bubble sort

Attempted by 247 students.

Show answer & explanation

Correct answer: B

Answer : B

Explanation

Among the given sorting techniques, selection sort has a best-case time complexity of O(n²), which is the highest. Quick sort, insertion sort, and bubble sort all have better best-case complexities (O(n log n), O(n), and O(n) respectively).

Explore the full course: Coding For Placement