Big O Flashcards

1
Q

What is an algorithm?

A

A list of step-by-step instruction on how the computer should go about solving the problem

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

How is an algorithm considered efficient?

A

If it scales well relative to input

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

What is linear complexity?

A

Algorithms that are linearly dependent on amount of input

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

What is constant time?

A

No matter the input, the same

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

What is a quadratic?

A

Means time/operations dramatically increase, or square, with the amount of inputs

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