Why asymptotic analysis? [00KN]
Why should we examine problems analytically at all? For example, why not just run programs and use a stopwatch to compare them?
- Actually running programs might take too long!
- The analysis lets us analyze problems for all input sizes at once, rather than having to gather data points.
- The analysis is independent of the algorithm implementation, the language in which the program is implemented, and the architecture in which the program is run. We insulate ourselves to all these variables.
- Theoretically efficient almost always implies practical efficiency.