Master Theorem Flashcards
(7 cards)
1
Q
You use case 1 if:
A
if n^logb(a) > f(n)
2
Q
You use case 2 if:
A
if n^logb(a) = f(n)
3
Q
You use case 3 if:
A
If n^logb(a) < f(n)
4
Q
Case 1 of Master Theorem is:
A
If f(n) is O(n^logb(a-€), Then T(n) is theta(n^logb(a))
5
Q
Case 2 if Master Theorem is:
A
If f(n) is theta(n^logb(a) • log^k(n)), then T(n) is theta(n^logb(a) • log^k+1(n))
6
Q
Case 3 of Master Theorem is:
A
If f(n) is Omega(n^logb(a - €)), then T(n) is theta(f(n))
7
Q
What is epsilon (€) in master theorem (In cases 1 & 3)?
A
Epsilon is gained by subtracting n^logb(a) and the power of f(n) from whichever is larger. I.e, typically, in case 1, it’ll be n^(logb(a)) - f(n), where in case 3 its the reverse.