Algorithm Complexity
- Stated in terms of Big O, Big Omega, or Big Theta
- Independent of hardware
- Independent of programming language
- Steps:
- n = some measure of size of input to the algorithm
- find an atomic notion of computational activity to count
- find f(n) = the number of atomic activities done by the algorithm for input
of size n
- complexity of algorithm <= O(f(n)) (or >=
Ω(f(n)) or = Θ(f(n)))
|