 |
 |
 |
 |
 |
 |
 |
 |
 |
To
solve T(n) = aT(n/b) + f(n)
|
|
|
|
compare
f(n) with nlogba
|
|
|
Solution
is T(n) = f(n)
|
|
|
|
if f(n) grows
more rapidly
|
|
|
Solution
is T(n) = nlogba
|
|
|
if nlogba
grows more rapidly
|
|
|
Solution
is T(n) = f(n) log n
|
|
|
|
if both grow at
same rate
|
|
|
Not
an exact statement of the
|
|
|
theorem
(see CLR)
|
|