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 6–10 of 24

Q6GATE 2021 (Session 1)2 marksMCQ−0.67 if wrong
Consider the following recurrence relation.
T(n)={T(n/2)+T(2n/5)+7nif  n>01if  n=0T\left ( n \right )=\left\{\begin{array} {lcl} T(n/2)+T(2n/5)+7n & \text{if} \; n > 0\\1 & \text{if}\; n=0 \end{array}\right.
Which one of the following options is correct?

Q7GATE 2021 (Session 2)2 marksMCQ−0.67 if wrong
For constants a≥1a\geq 1 and b>1b \gt 1, consider the following recurrence defined on the non-negative integers:

T(n)=a⋅T(nb)+f(n)T(n) = a \cdot T \left(\dfrac{n}{b} \right) + f(n)

Which one of the following options is correct about the recurrence T(n)T(n)?

Q8GATE 20201 markMCQ−0.33 if wrong
For parameters a and b, both of which are ω(1),T(n)=T(n1/a)+1\omega(1) , T(n)=T(n^{1/a})+1, and T(b)=1T(b)=1. Then T(n)T(n) is

Q9GATE 2017 (Session 2)2 marksMCQ−0.67 if wrong
Consider the recurrence function
T(n)={2T(n)+1,n>22,0<n≤2T(n)=\left\{\begin{matrix} 2T(\sqrt{n})+1, & n \gt 2\\ 2,& 0 \lt n\leq 2 \end{matrix}\right.
Then T(n) in terms of θ\theta notation is

Q10GATE 2014 (Session 2)1 markMCQ−0.33 if wrong
Which one of the following correctly determines the solution of the recurrence relation with T(1) = 1?
T(n)=2T(n2)+lognT(n)=2T(\frac{n}{2})+logn

Keep practising

Topics in Algorithms

All CS topics ›