Master Theorem

From Notes
Jump to navigation Jump to search

The master theorem provides a general boilerplate solution for solving recurrence relations (like divide and conquer algorithms) that satisfy a particular format.

Definition

Let be an increasing function satisfying a recurrence relation:

Whenever

  • for some ,
  • is an integer > 1
  • and are real numbers ≥ 0

Then

Proof

Proposition. If and is a power of , then a function satisfying the recurrence relation is of the form


Proof. Let . Then