For constants and , consider the following recurrence defined on the non-negative integers:
Which one of the following options is correct about the recurrence ?
View worked solution
Answer: C
The given recurrence relation is:
where and . This is the standard form analyzed by the Master Theorem. Let us evaluate each option based on the cases of the Master Theorem:
1. Analysis of Option C (Correct)
According to Case 1 of the Master Theorem:
If for some constant , then the work done at the leaves dominates the recurrence. Thus, the time complexity is:
This matches Option C exactly.
2. Analysis of Other Options
- Option A: If , the complexity depends on the relationship between and . For example, if and , then . Since , Case 1 applies and , not . Thus, Option A is incorrect in general.
- Option B: Since and , the overall complexity must be at least . If , then cannot be because grows strictly faster than . Thus, Option B is incorrect.
- Option D: According to Case 2 of the Master Theorem, if , then the work is evenly distributed across all levels of the recursion tree. The complexity is:
Therefore, Option D is incorrect.
Free practice · Your answers on this page are not saved.
