Big-O, Big-Theta & Big-Omega Flashcards

1
Q

Describe the symmetry of Big-Theta

A

if f(n) is θ(g(n)) then g(n) is θ(f(n))

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

Define Big-Omega in words. i.e. if g(n) is Ω(f(n))

A

g(n) is not smaller than f(n) if there are c and n0 such that for all n > n0 we have g(n) >= c.f(n). f(n) is the asymptotic lowerbound for g(n)

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

If f(n) is O(h(n)) & g(n) is O(h(n)) then f(n) + g(n) is

A

f(n) + g(n) is O(h(n))

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

Define BigO in words. i.e. if g(n) is O(f(n))

A

g(n) is not bigger than f(n) if there are c and n0 such that for all n > n0 we have g(n) c.f(n). f(n) is the asymptotic lowerbound for g(n)

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

if f(n) is O(g(n)) then g(n) is ?(f(n))

A

if f(n) is O(g(n)) then g(n) is Ω(f(n))

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

if f(n) is O(g(n)) then f(n) + g(n) is ?

A

if f(n) is O(g(n)) then f(n) + g(n) is O(g(n))

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

How many matrix multiplications are required to compute the n-th power of a matrix?

A

roughly log2 n

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

Define BigO using the limit equation

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

Define Big-Theta in words. i.e. if g(n) is θ(f(n))

A

g(n) has the same rate as f(n) if there are c1, c2 and n0 such that for all n > n0 we have c1.f(n) = g(n) = c2.f(n)

g(n) has the same complexity as f(n)

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

Describe the Transitivity of Big-O, Ω & θ

A

if f(n) is O(g(n)) and g(n) is O(h(n)) then f(n) is O(h(n)).

Same goes for Ω & θ

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

if f(n) is θ(g(n)) then f(n) is ?

A

if f(n) is θ(g(n)) then f(n) is both O(g(n)) and Ω(g(n))

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

Define Big-Ω using the limit equation

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

Define Big-Theta using the limit equation

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