You are on page 1of 4

MasLer MeLhod

1he reclse
SLaLemenL
ueslgn and Analysls
of AlgorlLhms l
1lm 8oughgarden
1he MasLer MeLhod
Cool leaLure : a black box" for solvlng
recurrences.
Assumpuon : all subproblems have
equal slze.
1lm 8oughgarden
8ecurrence lormaL
1. 8ase Case : 1(n) <= a consLanL for all sumclenLly small n
2. lor all larger n :
where
a = number of recurslve calls (>= 1)
b = lnpuL slze shrlnkage facLor ( > 1)
d = exponenL ln runnlng ume of comblne sLep" (>=0)
[a,b,d lndependenL of n ]
1lm 8oughgarden
1he MasLer MeLhod

You might also like