Answer on Question #62636 – Math – Algorithms | Quantitative Methods
Question
Let f(n) and g(n) be functions with domain {1,2,3,…}.
Prove the following:
If f(n)=Ω(g(n)), then g(n)=O(f(n)).
Solution
If f(n)=Ω(g(n)), then, by definition of Ω, there exist positive constants c and n0 such that
c∣g(n)∣≤∣f(n)∣ for all n≥n0.
Hence,
∣g(n)∣≤c∣f(n)∣.
Set
c1=k.
If c>0, then k>0.
Besides,
∣g(n)∣≤k∣f(n)∣.
Therefore, there exist positive constants k and n0 such that ∣g(n)∣≤k∣f(n)∣ for all n≥n0.
By definition of O,
g(n)=O(f(n)).
www.AssignmentExpert.com
Comments