Big O Notation Flashcards

1
Q

Big O notation

A

Used to compare the time complexity of different algorithms

(Describes how fast the runtime increases as the number of items to be processed increases )

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

Tractable

A

Problems that can be solved in polynomial time or better

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

Intractable

A

Problem unable to solved in polynomial time or better ( unsolvable in a reasonable amount of time )

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

Heuristic

A

Shortcut that sacrifices accuracy and completeness but gives a solution in a reasonable time frame

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

Big O efficiency

A

N! Intractable
2^n Intractable
n^2 Bubble sort. Tractable
N Linear search tractable
Log n Binary search tractable
N log n. Merge sort tractable

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