Let’s tackle each question step by step, using the definition of Θ-notation and the limit test where applicable.
Q1. Show that 2n2−3n=Θ(n2).
Step 1: Recall the definition of Θ
A function f(n) is Θ(g(n)) if there exist positive constants c1, , and such that:
c1⋅g(n)≤f(n)≤c
Here, f(n)=2n2−3n and .
Step 2: Check growth rates
The dominant term in f(n) is 2n2, which grows at the same rate as . The term becomes insignificant as . So intuitively, should be .
Step 3: Use the limit test
To confirm this rigorously, compute the limit:
n→∞limg(n)
Simplify the fraction:
n22
As n→∞, n3→0. Thus:
n→∞limg(n)f(n)
Since the limit is a finite, non-zero constant (21), we conclude that:
2n2−3n=
Q2. Is 3n3∈Θ(n4)?
Step 1: Recall the definition of Θ
For 3n3 to be Θ(n4), there must exist constants c1, , and such that:
c1⋅n4≤3n
Step 2: Compare growth rates
The dominant term in 3n3 is n3, while the dominant term in n4 is . Since grows much slower than as , cannot grow at the same rate as .
Step 3: Use the limit test
Compute the limit:
n→∞limn4
As n→∞, n3→0. Thus:
n→∞limn43n
Since the limit is 0, 3n3 grows strictly slower than n4. Therefore:
3n3∈/Θ(n4)
Instead, 3n3∈O(n4) (upper bound).
Q3. Is 22n∈Θ(2n)?
Step 1: Recall the definition of Θ
For 22n to be Θ(2n), there must exist constants c, , and such that:
c1⋅2n≤2
Step 2: Compare growth rates
22n can be rewritten as (2n)2, which grows exponentially faster than 2. Intuitively, cannot be because it grows much faster.
Step 3: Use the limit test
Compute the limit:
n→∞lim2n
As n→∞, 2n→∞. Thus:
n→∞lim2n2
Since the limit is ∞, 22n grows strictly faster than 2n. Therefore:
22n∈/Θ(2n)
Instead, 22n∈Ω(2n) (lower bound).
Final Answers:
-
2n2−3n=Θ(n.
: The dominant term grows at the same rate as .