Model answer
For n≥1, 3n² ≤ 3n²+7n+4 ≤ 14n². Choosing c₁=3, c₂=14, and n₀=1 gives matching lower and upper quadratic bounds, hence 3n²+7n+4 is Θ(n²).
Use the key terms, then explain the reasoning.
Asymptotic notation describes the eventual growth of a function while ignoring constants and lower-order terms.
Big-O, Big-Ω, and Big-Θ compare functions after some sufficiently large input size. Formal definitions use constants to bound one function above, below, or on both sides by another function.
The notation hides constant factors and lower-order terms because growth dominates at scale. It does not mean constants never matter; it means asymptotic class and practical constants answer different questions.
These loops perform constant, logarithmic, and quadratic work respectively.
Open a prompt when you are ready to check your answer.