Question
For parameters and , both of which are , , and . Then is
Official answer and solution
- Official answer
- A
- From
- Official GATE 2020 answer key
Solution
Use repeated substitution or change of variables via iterated logarithms to solve the recurrence.
We are given the recurrence with base condition , where .
Take the logarithm to base on both sides of the argument. Let . Then:
In each step of the recurrence, is replaced by :
Thus, the power decreases by 1 in each recursive step. The base case is reached when , which corresponds to , so .
The number of steps required to reach the base case is . Since each step contributes , we have:
A
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2020 Computer Science and Information Technology (CS)
- Question
- 12 of 65, printed as CS Q.2
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.