All Exams Test series for 1 year @ ₹349 only
Question

Match List - I with List - II.

List - I (Recurrence Relations)List - II (Complexity)
(A) T(n) = 2T(n/2) + n(I) T(n) = θ(n logn) {exact solution}
(B) T(n) = T(n/2) + 1(II) O(n2)
(C) T(n) = 2T(n/2) + 1(III) T(n) = θ(n) {exact solution}
(D) T(n) = T(n − 1) + 1(IV) O(n)

Choose the correct answer from the options given below :

This question was previously asked in
UGC NET 2024 Computer Science and Applications Question Paper (23-Aug-2024) (Shift 1)
The correct answer is

(A)-(I), (B)-(IV), (C)-(III), (D)-(II)

Divide-and-conquer recurrences of the form \(T(n) = aT(n/b) + f(n)\) are solved with the Master theorem by comparing f(n) with \(n^{\log_b a}\); subtract-by-one recurrences are solved by unrolling. Entries (I) and (III) claim exact (tight) bounds, while (II) and (IV) are only upper bounds.

Step 1 — (A) \(T(n) = 2T(n/2) + n\): a = 2, b = 2, \(n^{\log_2 2} = n = f(n)\), case 2, so \(T(n) = \Theta(n \log n)\). This is exactly (I).

Step 2 — (B) \(T(n) = T(n/2) + 1\): a = 1, b = 2, \(n^{0} = 1 = f(n)\), case 2, so \(T(n) = \Theta(\log n)\) (binary search). It is not θ(n), but it is within the upper bound O(n), entry (IV).

Step 3 — (C) \(T(n) = 2T(n/2) + 1\): \(n^{\log_2 2} = n\) dominates f(n) = 1, case 1, so \(T(n) = \Theta(n)\) exactly, entry (III).

Step 4 — (D) \(T(n) = T(n-1) + 1\) unrolls to \(T(n) = T(0) + n = \Theta(n)\), which lies within the remaining bound O(n2), entry (II).

The matching (A)-(I), (B)-(IV), (C)-(III), (D)-(II) makes every pair true. Pairing (B) with (III) would claim T(n/2) + 1 is exactly θ(n), which is false, and pairing (A) with (III) or (IV) understates n log n.

(A)-(I), (B)-(IV), (C)-(III), (D)-(II) option is correct.

Was this answer helpful?

Similar Questions

  1. The solution of the recurrence relation

    \(T(n) \le \begin{cases} \theta(1) & \text{if } n \le 80 \\ T\left(\frac{n}{s}\right) + T\left(\frac{7n}{10} + 6\right) + O(n) & \text{if } n \gt 80 \end{cases}\)

    is :

  2. The solution of the recurrence relation of \(T(n) = 3T\left(\text{floor}\left(\frac{n}{4}\right)\right) + n\) is

  3. Which of the following is the solution of the following recurrence relation

    T(n) = T(2n/3) + 1?

  4. The asymptotic upper bound solution of the recurrence relation given by

    \(T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{lg\ n}\) is :

  5. A recursive function h, is defined as follows :

    h(m) = k, if m = 0

    = 1, if m = 1

    = 2 h(m – 1) + 4h(m – 2), if m ≥ 2

    If the value of h(4) is 88 then the value of k is :

  6. Arrange the following recurrence relations in increasing order of their time capacity.

    (A) T(n) = T(n/2) + 1

    (B) T(n) = 2T(n/2) + n

    (C) T(n) = 3T(n/3) + n

    (D) T(n) = 2T(n/2) + √n

    (E) T(n) = T(n − 1) + 1

    Choose the correct answer from the options given below :


Important Questions from Recurrences

  1. The solution of the recurrence relation

    \(T(n) \le \begin{cases} \theta(1) & \text{if } n \le 80 \\ T\left(\frac{n}{s}\right) + T\left(\frac{7n}{10} + 6\right) + O(n) & \text{if } n \gt 80 \end{cases}\)

    is :

  2. The solution of the recurrence relation of \(T(n) = 3T\left(\text{floor}\left(\frac{n}{4}\right)\right) + n\) is

  3. Which of the following is the solution of the following recurrence relation

    T(n) = T(2n/3) + 1?

  4. The asymptotic upper bound solution of the recurrence relation given by

    \(T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{lg\ n}\) is :

  5. A recursive function h, is defined as follows :

    h(m) = k, if m = 0

    = 1, if m = 1

    = 2 h(m – 1) + 4h(m – 2), if m ≥ 2

    If the value of h(4) is 88 then the value of k is :

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
219 Attempts
4.4(46)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App