Orders of Complexity Flashcards

1
Q

log n

log<em>c</em> n

A

log n = O(logc n)

logc n = Ω(log n)

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

logc n

n<em>c</em>

A

logc n = O(n<em>c</em>)

n<em>c</em> = Ω(logc n)

(note that for n<em>c</em>, c > 0)

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

log n

n1/2

A

log n = O(n1/2)

n1/2 = Ω(log n)

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

n<em>c</em>

n log n

A

if c = 1:
n<em>c</em> O(n log n)
n log n Ω(n<em>c</em>)

if c > 1
n log n O(n<em>c</em>)
n<em>c</em> Ω(n log n)

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

n2

n log n

A

n log n O(n2)

n2 Ω(n log n)

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

c<em>n</em>

n<em>c</em>

A

n<em>c</em> O(c<em>n</em>)

c<em>n</em> Ω(n<em>c</em>)

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

n log n

log<em>c</em> n

A

logc n O(n log n)

n log n Ω(logc n)

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

n1/2

n2

A

n1/2 O(n2)

n2 Ω(n1/2)

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