week 3 Flashcards
Limitations of experiments with algorithms (running times)
.costly to implement algorithms
. dealing with many algorithms time consuming to find best one
. to compare algorithms needs same hardware and software environment
linear growth rate ( runtime of algorithm increases linearly with an increase in input size)
linear growth rate is independent of hardware as it describes the complexity of the algorithm itself not hardware its executed on
Hardware can affect running time by a …
CONSTANT FACTOR
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₀
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₀
Big O notation (
�
And we know Big-O is for upper bound, means the maximum time an algorithm may take.
Omega is lower bound, quite understood, the minimum time an algorithm may take.