Question:medium

Arrange the following time complexities in increasing order.
(A). Bubble sort (worst case)
(B). Deleting head node in singly linked list
(C). Binary search
(D). Worst case of merge sort

Show Hint

In general, the time complexity of sorting algorithms like merge sort and bubble sort is $O(n \log n)$ and $O(n^2)$ respectively.
Updated On: Mar 7, 2026
  • (A), (B), (C), (D)
  • (B), (C), (D), (A)
  • (B), (C), (A), (D)
  • (C), (B), (D), (A)
Show Solution

The Correct Option is D

Solution and Explanation

Step 1: Determine Time Complexities.
- Bubble Sort (Worst Case) (A): Time complexity is $O(n^2)$.
- Singly Linked List Head Deletion (B): Time complexity is $O(1)$.
- Binary Search (C): Time complexity is $O(\log n)$.
- Merge Sort (Worst Case) (D): Time complexity is $O(n \log n)$.

Step 2: Order by Time Complexity (Ascending).
The correct order from lowest to highest is: - (B) Deleting head node: $O(1)$ - (C) Binary search: $O(\log n)$ - (D) Merge sort: $O(n \log n)$ - (A) Bubble sort (worst case): $O(n^2)$

Step 3: Final Order.
The correct sequence is (B), (C), (D), (A).

Was this answer helpful?
0


Questions Asked in CUET (PG) exam