Analysis of Recursive Algorithms
Analysis of Recursive Algorithms
Algorithms
Partition Algorithm
T (n) = T (1) + c i = O( n 2 )
i =2
Master Theorem
The solution to the equation
T(n) = aT(n/b) + (nk), where a >= 1
and b >1 is
T(n)
O(nlogb a)
O(nklogn)
O(nk)
if a > bk
if a = bk
if a < bk
lg2 8