Question:

Match List - I with List - II. 

List - IList - II
A.Binary searchI.Queue
B.Merge sortII.Stack
C.Depth First Search (DFS)III.\(T(n) = 2T(n/2) + n\)
D.Breadth First Search (BFS)IV.\(T(n) = T(n/2) + 1\)

Choose the correct answer from the options given below:

Show Hint

Recurrence Tip: If it works on both halves, it's $2T(n/2)$ (Merge Sort). If it works on one half, it's $T(n/2)$ (Binary Search).
Updated On: Jun 8, 2026
  • A-III, B-IV, C-I, D-II
  • A-I, B-II, C-III, D-IV
  • A-IV, B-III, C-II, D-I
  • A-II, B-IV, C-III, D-I
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

We match algorithms with their characteristic recurrence relations or the data structures they utilize. 1. Binary Search (A-IV): Binary search divides the search space in half at each step and processes only one half. Its recurrence is $T(n) = T(n/2) + 1$, leading to $O(\log n)$. 2. Merge Sort (B-III): Merge sort divides the array into two halves, recursively sorts both, and then merges them. Its recurrence is $T(n) = 2T(n/2) + n$, leading to $O(n \log n)$. 3. Depth First Search (C-II): DFS explores as far as possible along each branch before backtracking. It uses a Stack (either explicitly or via the recursion stack). 4. Breadth First Search (D-I): BFS explores all neighbors at the current depth before moving to the next level. It uses a Queue to keep track of discovered but unvisited nodes.
Was this answer helpful?
0
0

Top CUET PG Data Science A.I Cyber Security and Computer Sci. Questions

View More Questions

Top CUET PG Algorithm Questions

View More Questions