Question

7. Prove the following assertions by using the definitions of the notations in- volved, or disprove them by giving a specific

0 1
Add a comment Improve this question Transcribed image text
Answer #1

a.

If f(n) is O(g(n)) then
   there exist a constant c > 0, and a constant n0 such that for all n ≥ n0: f(n) ≤ c*g(n)

hence,
   there exist a constant c > 0, and a constant n0 such that for all n ≥ n0: g(n) ≥ (1/c)*f(n)
     note that since c > 0, then the constant (1/c) > 0

hence,
   there exist a constant k > 0, namely k = (1/c), and a constant n0 such that for all n ≥ n0: g(n) ≥ k*f(n)

which is the definition of g(n) = Ω (f(n)).

------------------------------------------------------------------------------------------------------------------------------------------------------------

b:

First of all we recall the definition of the big-Θ-notation:

Definition : f(n) ∈ O(g(n)) if ∀n ≥ n0, ∃0 < c1 ≤ c2 such that c1g(n) ≤ f(n) ≤ c2g(n)

If we state now the definition for both cases:

c1g(n) ≤ f(n) ≤ c2g(n) for Θ(g(n)) -------------------- (1)

c1αg(n) ≤ f(n) ≤ c2αg(n) for Θ(αg(n)) -------------------- (2)

As α > 0, redefining c1 and c2 as c˜1/2 = αc1/2 the we can rewrite (2) as:

1g(n) ≤ f(n) ≤ c˜2g(n)

which complies with the inequality (1)

-------------------------------------------------------------------------------------------------------------------------------------------------------------

c:

We are required to prove that Θ(g(n)) = O(g(n)) ∩ Ω(g(n)). The proof is in two parts.

Part-1: First we prove that Θ(g(n)) ⊆ O(g(n)) ∩ Ω(g(n)):

  • We start by considering an arbitrary function f(n) that is in Θ(g(n))

f(n) ∈ Θ(g(n))   -------------------- (1)

  • From the definition of Θ we know that this means:

∃c1, c2, n0 : ∀n > n0 : c1 g(n) ≤ f(n) ≤ c2 g(n)    -------------------- (2)

  • If we elide the first inequality, and substitute c for c2, this gives us

∃c, n0 : ∀n > n0 : f(n) ≤ c g(n)    -------------------- (3)

which, from the definition of O, tells us

f(n) ∈ O(g(n))      -------------------- (4)

  • Similarly, if we elide the second inequality, and substitute c for c1, this gives us

∃c, n0 : ∀n > n0 : c g(n) ≤ f(n) -------------------- (5)

which, from the definition of Ω, tells us

f(n) ∈ Ω(g(n)) -------------------- (6)

  • From the definition of ∩ for sets, we know that line 4 and line 6 together imply that

f(n) ∈ O(g(n)) ∩ Ω(g(n)) -------------------- (7)

  • Recall the assumption (line 1) that f(n) was an arbitrary function in Θ(g(n)). So we have, using line 1, the rule of universal generalization, and line 7

∀f : f(n) ∈ Θ(g(n)) =⇒ f(n) ∈ O(g(n)) ∩ Ω(g(n)) -------------------- (8)

This implies that Θ(g(n)) ⊆ O(g(n)) ∩ Ω(g(n)) -------------------- (9)

Part-2: Now you would need to do the same for the second (superset) part of the proof i.e., Θ(g(n)) ⊇ O(g(n)) ∩ Ω(g(n))

   f(n) ∈ O(g(n))    [assumption] -------------------- (10)

f(n) ∈ Ω(g(n))    [assumption] -------------------- (11)

∃c1, n1 : ∀n > n1 : f(n) ≥ c1 g(n) [def. of Ω] -------------------- (12)

∃c2, n0 : ∀n > n0 : f(n) ≤ c2 g(n)   [def. of O] -------------------- (13)

∃c1, c2, n0 : ∀n > max(n0, n1) : c1 g(n) ≤ f(n) ≤ c2 g(n) [combining (12) and (13) above] -------------------- (14)

f(n) ∈ Θ(g(n)) [def. of Θ and (10)] -------------------- (15)

Θ(g(n)) ⊇ O(g(n)) ∩ Ω(g(n)) [∀f : f ∈ O ∧ f ∈ Ω ⇒ f ∈ Θ] -------------------- (16)

Combining these subset (9) and superset (16) results, we get Θ(g(n)) = O(g(n)) ∩ Ω(g(n))

[ because A ⊆ B ∧ A ⊇ B ⇒ A = B ]

Add a comment
Know the answer?
Add Answer to:
7. Prove the following assertions by using the definitions of the notations in- volved, or dispro...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT