Big O Flashcards

1
Q

Red

A

O(log n)

Excellent performance (green -> yellow -> orange -> red)

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

Blue

A

O(n!)

Horrible performance (green -> yellow -> orange -> red)

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

Purple

A

O(n log n)

Poor performance (green -> yellow -> orange -> red)

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

Orange

A

O(2^n)

Horrible performance (green -> yellow -> orange -> red)

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

Teal

A

O(n^2)

Horrible performance (green -> yellow -> orange -> red)

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

Green

A

O(n)

Fair performance (green -> yellow -> orange -> red)

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

Big O Ordering

A

O(1) (dark green) -> O(log n) (light green) -> O(n) (yellow) -> O(n log n) (orange) -> O(n^2) (red) -> O(2^n) (red) -> O(n!)

dark green -> light green -> yellow -> orange -> red

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