Skip to content

ISRO Scientist/Engineer CSE 2020Algorithms › Not yet assigned to a topic

ISRO Scientist/Engineer CSE 2020 PYQ: The master theorem

The master theorem

  1. A
    assumes the subproblems are unequal sizes
  2. B
    can be used if the subproblems are of equal size
    Correct answer
  3. C
    cannot be used for divide and conquer algorithms
  4. D
    cannot 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.