Simplfying Algebraic Runtime.
- pick a cost model(a operation that represent the entire piece of code)
- focus on the worst cases.
- ignore small inputs 2N +1 ——> 2N
- ignore constant scaling factors : 2N -> N
Once we’ve chosen a cost model:
we can use intuition to find the order of growth of the number of operations.
Big Theta is equivalent to order of growth.