week 3 Flashcards

1
Q

Limitations of experiments with algorithms (running times)

A

.costly to implement algorithms
. dealing with many algorithms time consuming to find best one
. to compare algorithms needs same hardware and software environment

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

linear growth rate ( runtime of algorithm increases linearly with an increase in input size)

A

linear growth rate is independent of hardware as it describes the complexity of the algorithm itself not hardware its executed on

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

Hardware can affect running time by a …

A

CONSTANT FACTOR

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

WE CAN SAY A function f(n) Is O(g(n)) if there are positive constants c and n₀ where f(n) <= c . g(n) for n >= n₀

A

WE CAN SAY A function f(n) Is O(g(n)) if there are positive constants c and n₀ where f(n) <= c . g(n) for n >= n₀

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

Big O notation (

A

And we know Big-O is for upper bound, means the maximum time an algorithm may take.

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

Omega is lower bound, quite understood, the minimum time an algorithm may take.

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