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 21–24 of 24

Q21GATE 20041 markMCQ−0.33 if wrong
The recurrence equation

T(1) = 1
T(n) = 2T(n - 1) + n, n ≥\geq 2

evaluates to

Q22GATE 20031 markMCQ−0.33 if wrong
Consider the following recurrence relation
T(1)=1
T(n+1)=T(n)+⌊n+1⌋\left \lfloor \sqrt{n+1} \right \rfloor for all n ≥\geq 1
The value of T(m2m^{2} ) for m ≥\geq 1 is

Q23GATE 20021 markMCQ−0.33 if wrong
The running time of the following algorithm

Procedure A(n)
If n ≤\leq 2 return (1) else return (A(n\sqrt{n}));

is best discribed by

Q24GATE 20021 markMCQ−0.33 if wrong
The solution to the recurrence equation T(2k)=3T(2k−1)+1,T(1)=1T(2^{k})=3T(2^{k-1})+1,T(1)=1 is

Keep practising

Topics in Algorithms

All CS topics ›