Master Theorem Flashcards

1
Q

You use case 1 if:

A

if n^logb(a) > f(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You use case 2 if:

A

if n^logb(a) = f(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You use case 3 if:

A

If n^logb(a) < f(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Case 3 of Master Theorem is:

A

If f(n) is Omega(n^logb(a - €)), then T(n) is theta(f(n))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly