What is the formal definition of Big-Oh notation?
What is the formal definition of Big-Oh notation?
T(n) = O(f(n)) if and only if there exist constants c, n₀ > 0 such that T(n) ≤ c × f(n) for all n ≥ n₀.
n₀ is the crossing point.
c, n₀ must be independent of n.