Recurrence Relation: GATE CS Previous Year Questions

Recurrence Relation · Algorithms

24 questions · asked in 15 of 27 years (2000–2026)

MCQ 22 · MSQ 1 · NAT 11-mark 15 · 2-mark 9

2000Questions per year2026

Questions 1–5 of 24

Q1GATE 2026 (Session 1)1 markMCQ−0.33 if wrong
Consider the following recurrence relations:
For all n>1n>1,

T1(n)=4T1(n2)+T2(n)T2(n)=5T2(n4)+Θ(log⁡2n)\begin{array}{l} T_{1}(n)=4 T_{1}\left(\frac{n}{2}\right)+T_{2}(n) \\ T_{2}(n)=5 T_{2}\left(\frac{n}{4}\right)+\Theta\left(\log _{2} n\right) \end{array}

Assume that for all n≤1,T1(n)=1n \leq 1, T_{1}(n)=1 and T2(n)=1T_{2}(n)=1.
Which one of the following options is correct?

Q2GATE 2026 (Session 2)1 markMSQ
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity Θ(n)\Theta(n)?

One or more options are correct.

Q3GATE 2025 (Session 1)1 markMCQ−0.33 if wrong
Consider the following recurrence relation:

T(n)=2T(n−1)+n2nforn>0,T(0)=1T(n) = 2T(n-1) + n2^n \quad \text{for} \quad n > 0, \quad T(0) = 1

Which ONE of the following options is CORRECT?

Q4GATE 2024 (Session 1)2 marksMCQ−0.67 if wrong
Consider the following recurrence relation:
T(n)={nT(n)+n for n≥1,1 for n=1.T(n)=\left\{\begin{array}{c} \sqrt{n} T(\sqrt{n})+n \text { for } n \geq 1, \\ 1 \quad \text { for } n=1 . \end{array}\right.
Which one of the following options is CORRECT?

Q5GATE 2024 (Session 2)1 markMCQ−0.33 if wrong
Let T(n)T(n) be the recurrence relation defined as follows:
T(0)=1,T(1)=2, and T(n)=5T(n−1)−6T(n−2) for n≥2\begin{aligned} & T(0)=1, \\ & T(1)=2, \text { and } \\ & T(n)=5 T(n-1)-6 T(n-2) \text { for } n \geq 2 \end{aligned}
Which one of the following statements is TRUE?

Keep practising

Topics in Algorithms

All CS topics ›