Wize Discrete Mathematics and Proof Textbook > Algorithms and Complexity

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.

For positive integer n, which classification is most precise for f(n) = 7n3 + 5n?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Which statement correctly follows from g(n) = 11n log2n + 40 for n ≥ 2?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A proof shows that for all n ≥ 6, 2n2 ≤ r(n) ≤ 9n2. What conclusion is justified?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors