Questions: Asymptotic Notation: Big-O, Big-Omega, Big-Theta

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An algorithm performs exactly 3n² + 50n + 200 operations for an input of size n. What is its Big-O complexity?

AO(3n² + 50n + 200) — the exact operation count must be preserved
BO(n²) — lower-order terms and constant factors are absorbed
CO(50n) — the linear term dominates for practical input sizes
DO(n² + n) — both the quadratic and linear terms must be included
Question 2 Multiple Choice

Algorithm A is O(n²) and Algorithm B is O(n log n). Which conclusion is best supported?

AAlgorithm B is always faster than A, regardless of input size
BAlgorithm A will always take longer on any input of size n
CFor sufficiently large inputs, B will scale better than A, but A may be faster for small inputs due to constant factors
DThe two algorithms have equivalent performance when constant factors are accounted for
Question 3 True / False

If f(n) is Θ(g(n)), then f(n) is both O(g(n)) and Ω(g(n)).

TTrue
FFalse
Question 4 True / False

O(2n) and O(n) are different complexity classes because the first algorithm usually runs exactly twice as fast as the second.

TTrue
FFalse
Question 5 Short Answer

Explain why Big-O notation drops constant factors (like the 3 in O(3n²)), and why this makes the notation useful for comparing algorithms.

Think about your answer, then reveal below.