Question
For constants and , consider the following recurrence defined on the non-negative integers:
Which one of the following options is correct about the recurrence ?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2021 answer key
Solution
Match the recurrence with the standard cases of the Master Theorem.
The recurrence is given by for constants and .
In the Master Theorem, the critical exponent is , and the watershed function is .
Case 1 of the Master Theorem states:
If for some constant , then the work at the leaves dominates the total cost, and:
This precisely matches option C.
Why other options are incorrect:
- In option D, when , Case 2 applies, giving , not .
- Options A and B make unjustified assertions that depend on the specific values of and .
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 49 of 65, printed as CS Q.39
- 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.