The Master Theorem provides a straightforward way to determine the time complexity of recurrence relations common in divide-and-conquer algorithms. Specifically, it applies to recurrences of the form: This page provide solutions to problems solving using the master theorem, the details about master theorem is discussed in the Master theorem.

Example 1

Solve the recursion: Known information:

Compare growth rate, determine which case the expression falls into:

  • Non-recursive part:
  • Recursive part:

We can confirm , when , the example fits case 2. Therefore:

Example 2

Solve the recursion: Know information:

Compare the growth rate, determine which case the expression falls into:

  • Non-recursive part:
  • Recursive part:

We can confirm that , when , the example fits case 3. Therefore:


Back to parent page: Divide and Conquer

AlgorithmDivide_and_ConquerMaster_Theorem