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: Aug 6, 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

Concept:
• Divide and Conquer algorithms are often described by recurrence relations that show how the problem is split and combined.
• Graph traversal algorithms are distinguished by the data structures used to track the "frontier" of exploration.

Step 1:
Match A (Binary search)
Binary search works by splitting a sorted array in half and discarding one half in each step. The time complexity is defined by the recurrence \(T(n) = T(n/2) + 1\), leading to \(O(\log n)\). This matches with IV.

Step 2:
Match B (Merge sort)
Merge sort splits the array into two halves, recursively sorts them, and then merges them in linear time. Its recurrence is \(T(n) = 2T(n/2) + n\), leading to \(O(n \log n)\). This matches with III.

Step 3:
Match C (Depth first search)
DFS explores as far as possible along each branch before backtracking. This "Last-In, First-Out" behavior is implemented using a Stack (either explicitly or via the recursion stack). This matches with II.

Step 4:
Match D (Breadth first search)
BFS explores all neighbors at the present depth level before moving on to nodes at the next depth level. This "First-In, First-Out" behavior is implemented using a Queue. This matches with I.
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