Program/Algorithm Efficiency
How to determine efficiency?
Measure program execution costs (experimental)
- run program on various inputs, measure time ...
- but depends on compiler, machine, etc, etc.
- alternatively, detailed analysis of function call profile
Analyse algorithm execution costs (theoretical)
- identify core operation in algorithm
- express cost in terms of #operations = g(N)
(N = size of "input" e.g. #items in data structure, length of input file, ...)
|