Big O Flashcards

1
Q

Asymptotic time complexity

A

The limiting behavior of the execution time of an algorithm when the size of the problem goes to infinity. This is usually denoted in big-O notation

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

Big-O

A

Asymptotic runtime, expressed as function of the size of inputs, consider best, worst and average cases

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

O(n!) Complexity

A

Horrible

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

O(2^n) Complexity

A

Horrible

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

O(n^2) Complexity

A

Horrible

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

O(n log n) Complexity

A

Bad

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

O(n)

A

Fair

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

O(log n) Complexity

A

Good

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

O(1) Complexity

A

Good

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