Master theorem

The master theorem concerns recurrence relations of the form:

dfh

  • n is the size of the problem.
  • a is the number of subproblems in the recursion.
  • n/b is the size of each subproblem. (Here it is assumed that all subproblems are essentially the same size.)
  • f (n) is the cost of the work done outside the recursive calls.

Case 1

If    gdfg
Where   ghfgh
Then  yu56

Case 2

If   k ≥ 0 and  sdfsd
Where  gdfg
Then  hfgh

Case 3

If   ty  where  f
and   k for some constant u and sufficiently large n
Then  e

Leave a comment