MCS-211 · Block 1 Unit 2

Some Pre-requisites and Asymptotic Bounds

Section 7 of 8

Block 1 · Unit 2Some Pre-requisites and Asymptotic Bounds13 min · Section 7 of 8

2.7Big-Omega and Big-Theta

Covers IGNOU MCS-211 §2.7.2, 2.7.3

Big-O only says “at most”. To say “at least”, or “exactly this fast up to constants”, we need Big-Omega and Big-Theta. This page defines both, proves the connection between the three notations, and works through the remaining Check Your Progress 2 questions.

Big-Omega: lower bounds

So ff grows at least as fast as gg, up to a constant factor, for large nn.

Big-Theta: tight bounds

Graph of a Big-Theta bound

NotationRead asInequality for n≥n0n \ge n_0Analogy with numbers
f=O(g)f = O(g)at mostf(n)≤c g(n)f(n) \le c\, g(n)a≤ba \le b
f=Ω(g)f = \Omega(g)at leastf(n)≥c g(n)f(n) \ge c\, g(n)a≥ba \ge b
f=Θ(g)f = \Theta(g)exactly (up to constants)c1g(n)≤f(n)≤c2g(n)c_1 g(n) \le f(n) \le c_2 g(n)a=ba = b

The study material states this without proof. The proof is short:

  • (⇒\Rightarrow) If c1g≤f≤c2gc_1 g \le f \le c_2 g for n≥n0n \ge n_0, the right half is the O-definition (with c=c2c = c_2) and the left half is the Ω-definition (with c=c1c = c_1).
  • (⇐\Leftarrow) If f≤c2gf \le c_2 g for n≥n1n \ge n_1 and f≥c1gf \ge c_1 g for n≥n2n \ge n_2, both hold for n≥n0=max⁡(n1,n2)n \ge n_0 = \max(n_1, n_2), which is the Θ-definition.

Check Your Progress 2: the Ω and Θ parts

(g) max⁡{f(n),g(n)}=Θ(f(n)+g(n))\max\{f(n), g(n)\} = \Theta(f(n) + g(n)) — true (for non-negative f,gf, g). The larger of two non-negative numbers is at most their sum and at least half their sum: 12(f(n)+g(n))≤max⁡{f(n),g(n)}≤f(n)+g(n).\tfrac12\big(f(n) + g(n)\big) \le \max\{f(n), g(n)\} \le f(n) + g(n). So c1=12c_1 = \tfrac12, c2=1c_2 = 1, n0=1n_0 = 1. Example: max⁡{n,n2}=n2\max\{n, n^2\} = n^2 and n+n2=Θ(n2)n + n^2 = \Theta(n^2).

(i) f(n)+g(n)=Θ(min⁡{f(n),g(n)})f(n) + g(n) = \Theta(\min\{f(n), g(n)\}) — false. Counterexample: f(n)=nf(n) = n, g(n)=n2g(n) = n^2. Then f+g=n+n2=Θ(n2)f + g = n + n^2 = \Theta(n^2), while min⁡{n,n2}=n\min\{n, n^2\} = n, and n2≠O(n)n^2 \ne O(n).

(j) 33n3+4n2=Ω(n2)33n^3 + 4n^2 = \Omega(n^2) — true. For all n≥1n \ge 1: 33n3+4n2≥4n2≥n233n^3 + 4n^2 \ge 4n^2 \ge n^2. So c=1c = 1, n0=1n_0 = 1.

Key takeaways

  • f=Ω(g)f = \Omega(g): f(n)≥c g(n)f(n) \ge c\,g(n) for all n≥n0n \ge n_0, with c>0c > 0.
  • f=Θ(g)f = \Theta(g): c1g(n)≤f(n)≤c2g(n)c_1 g(n) \le f(n) \le c_2 g(n) for all n≥n0n \ge n_0.
  • Θ=O+Ω\Theta = O + \Omega (with n0n_0 = the larger of the two thresholds).
  • max⁡{f,g}=Θ(f+g)\max\{f, g\} = \Theta(f + g); 33n3+4n2=Ω(n2)33n^3 + 4n^2 = \Omega(n^2) is true.

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

Which statement is true?

Show answer

Answer: B. n3=Ω(n2)n^3 = \Omega(n^2)

n³ ≥ 1·n² for n ≥ 1. The others reverse the direction: n² does not grow at least as fast as n³.

Question 2 · multiple choice

Which constants prove 3n2+7n−5=Θ(n2)3n^2 + 7n - 5 = \Theta(n^2) for n≥1n \ge 1?

Show answer

Answer: D. c1=3c_1 = 3, c2=10c_2 = 10

3n² ≤ 3n² + 7n − 5 ≤ 10n² for n ≥ 1. c₁ = 0 is not allowed, and with c₂ = 3 the upper bound fails because 7n − 5 > 0.

Question 3 · multiple choice

If f(n)=O(n2)f(n) = O(n^2) and f(n)=Ω(n2)f(n) = \Omega(n^2), then:

Show answer

Answer: B. f(n)=Θ(n2)f(n) = \Theta(n^2)

By the theorem, O and Ω together give Θ. It does not mean f equals n²; for example 5n² + 3 also satisfies both.

Question 4 · multiple choice

max⁡{n2,n3}\max\{n^2, n^3\} is:

Show answer

Answer: C. Θ(n2+n3)=Θ(n3)\Theta(n^2 + n^3) = \Theta(n^3)

max{f, g} = Θ(f + g), and n² + n³ = Θ(n³). n⁵ would be the product, not the sum.

Question 5 · multiple choice

Why must the constant cc in the Ω definition be positive?

Show answer

Answer: D. With c=0c = 0, every non-negative function would be Ω\Omega of every function.

f(n) ≥ 0·g(n) is always true for non-negative f, so the notation would say nothing.

Question 6 · short answer

Prove that 12n2−3n=Θ(n2)\tfrac{1}{2}n^2 - 3n = \Theta(n^2) by finding c1c_1, c2c_2 and n0n_0.

Show worked answer

Upper bound: ½n² − 3n ≤ ½n² for all n ≥ 1, so c₂ = ½. Lower bound: we want ½n² − 3n ≥ c₁n². Dividing by n²: ½ − 3/n ≥ c₁. For n ≥ 12, 3/n ≤ ¼, so ½ − 3/n ≥ ¼; take c₁ = ¼. Hence ¼n² ≤ ½n² − 3n ≤ ½n² for all n ≥ 12, i.e. c₁ = ¼, c₂ = ½, n₀ = 12.

↑ ↓ move↵ openTab switch type