Interactive · 4 questions

Big O, Ω\Omega, and Θ\Theta are ways to measure how a function grows asymptotically as nn gets large. Let's start with big O, since the other two are very easy to learn after mastering big O.

Definition. A function f(n)f(n) is O(g(n))O(g(n)) if there exists a constant c>0c>0 such that f(n)<c⋅g(n)f(n)<c\cdot g(n) holds for all sufficiently large nn.

Essentially, this means that f(n)=O(g(n))f(n)=O(g(n)) if ff is asymptotically bounded above by gg (up to a constant factor).

Determine whether the function f(n)=n2+4f(n)=n^2+4 is O(n3)O(n^3).

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems