Big O notation Flashcards

1
Q

Big O notation

A

Function used to determine potential time an operation will take

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

O(1)

A

constant

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

O(log n)

A

logarithmic

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

O(n)

A

linear

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

O(n log n)

A

log linear

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

O(n^2)

A

polynomial

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

O(2^n)

A

exponential

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

O(!)

A

factorial (very slow)

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