ISRO Scientist/Engineer CSE 2020Algorithms › Not yet assigned to a topic
ISRO Scientist/Engineer CSE 2020 PYQ: The master theorem
The master theorem
- Aassumes the subproblems are unequal sizes
- Bcan be used if the subproblems are of equal sizeCorrect answer
- Ccannot be used for divide and conquer algorithms
- Dcannot be used for asymptotic complexity analysis
Answer
(B) can be used if the subproblems are of equal size
Approach
Recall the precise form of recurrences to which the Master Theorem applies: T(n) = a·T(n/b) + f(n), where a ≥ 1, b > 1, and each of the a subproblems has size exactly n/b. This equal-size requirement is fundamental; the theorem does not handle unequal subproblem sizes.
Reviewed by ISRO IQ Editorial Team.