Consider the following recurrence:
Which one of the following is true?
View worked solution
Answer: B
To solve the recurrence relation , we can use the change of variables method.
Let , which implies .
Substituting this into the recurrence:
Now, let . The recurrence relation can be rewritten as:
We can solve this new recurrence using the Master Theorem for divide-and-conquer recurrences of the form :
- Here, , , and .
- Compare with .
- Since for any , we fall into Case 1 of the Master Theorem.
Therefore, the solution for is:
Substituting back :
Thus, the correct option is B.
Free practice · Your answers on this page are not saved.
