Match the MF Flashcards

(6 cards)

1
Q

O(1) - Constant

A

Not repeated, unchanged input

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

O(log N) - Logarithmic

A

Repeated halving/dividing

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

O(N) - Linear

A

Simple for loop over input

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

O(N^2) - Quadratic

A

Nested loops (2 layers)

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

O(N^3) - Cubic

A

Triple nested loops

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

O(2^N - Exponential

A

Input is exponent

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