GATE 2021 set2 · CS · MCQ · 2 marks · Algorithms › Divide and Conquer
GATE 2021 set2 Computer Science and Information Technology question: For constants a 1 and b 1, consider the following recurrence defined on the non-negative…
For constants a≥1 and b>1, consider the following recurrence defined on the non-negative integers:
T(n)=a⋅T(bn)+f(n)
Which one of the following options is correct about the recurrence T(n)?
- (A)
If f(n) is nlog2(n), then T(n) is Θ(nlog2(n)).
- (B)
If f(n) is log2(n)n, then T(n) is Θ(log2(n)).
- (C)
If f(n) is O(nlogb(a)−ϵ) for some ϵ>0, then T(n) is Θ(nlogb(a)).
- (D)
If f(n) is Θ(nlogb(a)), then T(n) is Θ(nlogb(a)).
Show answer
Official answer: C
Practise this question with exam-style marking