Question
Consider the recurrence function
Then in terms of notation is
Official answer and solution
- Official answer
- B
- From
- Official GATE 2017 answer key
Solution
Apply the substitution method () to transform the square-root recurrence into a standard divide-and-conquer recurrence solvable by the Master Theorem.
Given the recurrence for .
Let , so and .
Define . Then:
Solve using the Master Theorem:
- Critical exponent:
- Since for , Case 1 of the Master Theorem applies:
Substitute back :
This matches option B.
Final answer
B
Common trap
Assuming by confusing this recurrence with .
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 2
- Question
- 30 of 65, printed as CS Q.30
- 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.