Asymptotic Notation (Big O, Big Omega, Big Theta)
Asymptotic notation: comparing growth, not stopwatches
Asymptotic notation describes how a nonnegative running-time or resource function grows as input size becomes large. f(n) is O(g(n)) when some constant multiple of g eventually bounds f above. It is Ω(g(n)) when a positive constant multiple eventually bounds it below. It is Θ(g(n)) when both statements hold.
Constants and lower-order terms do not change a polynomial's dominant growth class. The word eventually is essential: an inequality need only hold beyond a chosen threshold n0.
Big O is an upper bound, not a claim that an algorithm always takes exactly that many operations, and it does not itself compare implementation-dependent running times on a particular machine.
To prove a claim, start with the definition, choose positive constants, and state a threshold. To disprove a proposed lower or upper bound, compare the ratio of the two functions or find values that violate every possible constant bound as the input grows.
Which statement correctly follows from g(n) = 11n log2n + 40 for n ≥ 2?
A proof shows that for all n ≥ 6, 2n2 ≤ r(n) ≤ 9n2. What conclusion is justified?