All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · June 2024 (Cancelled)

Match List - I with List - II. f(n) = a f(n / b) + g(n) is a divide-and- conquer recurrence relation for the Listed-I algorithms, match their recurrence in Listed-II.

Figure

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. A-IV, B-III, C-II, D-I

Explanation

Binary search: f(n) = f(n/2) + 2. Max-min: f(n) = 2f(n/2) + 2. Merge sort: f(n) = 2f(n/2) + n. Fast (Strassen) matrix multiplication: f(n) = 7f(n/2) + 15n²/4.

More Data Structures and Algorithms questions