Let f(n) and g(n) be asymptotically positive functions. Prove or disprove each of the following conjectures.
(a) True
Proof:
By definition as f(n)=O(g(n)), there exists constant c such that f(n) <=c*g(n).
So, g(n) >= (1/c)f(n)=c1*f(n).
Hence ,
(b) False:
Proof:
Let's prove this by counter example.
Let f(n)=n and g(n)=n2.
Clearly, f(n)=O(g(n)).
But, we can not find any constant c such that g(n)<=c*f(n).
Hence, g(n)=O(f(n)) is false.
(c) False:
Proof:
Let's prove this also by counter example.
Let f(n)=n and g(n)=n2.
Now, min (f(n)+g(n))=n.
f(n)+g(n)=n+n2>=c*n, for c=1.
Hence,
But, we can not find any constant c1 such that, f(n)+g(n)=n+n2<=c1*n.
Hence, f(n)+g(n)=O(min(f(n),g(n)) is not true.
As, by definition of for , we have to prove
Hence, is false.
Let f(n) and g(n) be asymptotically positive functions. Prove or disprove each of the following conjectures....
Let f1 and f2 be asymptotically positive non-decreasing functions. Prove or disprove each of the following conjectures. To disprove, give a counterexample. a.If f1(n) = Theta(g(n)) and f2(n) = Theta(g(n)) then f1(n) + f2(n) = Theta(g(n)) b.If f1(n) = O(g(n)) and f2(n) = O(g(n))then f1(n) = O(f2(n))
Part I. (30 pts) (10 pts) Let fin) and g(n) be asymptotically positive functions. Prove or disprove each of the following statements T a、 f(n) + g(n)=0(max(f(n), g(n))) 1. b. f(n) = 0(g(n)) implies g(n) = Ω(f(n)) T rc. f(n)- o F d. f(n) o(f(n)) 0(f (n)) f(n)=6((f(n))2)
4. Let fín) and g(n) be asymptotically positive functions. Prove each of the following statements A. fin)-O(g(n)) if and only if fin) *gn)g(n)) B. fn) - Og(n if and only if fin)2- O(g(n)?) 4. Let fín) and g(n) be asymptotically positive functions. Prove each of the following statements A. fin)-O(g(n)) if and only if fin) *gn)g(n)) B. fn) - Og(n if and only if fin)2- O(g(n)?)
Need help with 1,2,3 thank you. 1. Order of growth (20 points) Order the following functions according to their order of growth from the lowest to the highest. If you think that two functions are of the same order (Le f(n) E Θ(g(n))), put then in the same group. log(n!), n., log log n, logn, n log(n), n2 V, (1)!, 2", n!, 3", 21 2. Asymptotic Notation (20 points) For each pair of functions in the table below, deternme whether...
Let f (n) and g(n) be asymptotically nonnegative functions. Using the basic definition of _-notation, prove that max( f (n), g(n)) = Θ( f (n) + g(n)).
Let f : B → A and g : A → B be functions. (a) Prove or disprove the following statement: If g ◦ f is an injection, then f is also an injection. (b) Prove or disprove the following statement: If g ◦ f is a surjection, then f is also a surjection.
Suppose f(n) = O(s(n)), and g(n) = O(r(n)). All four functions are positive-valued and monotonically increasing. Prove (using the formal definitions of asymptotic notations) or disprove (by counterexample) each of the following claims: (a) f(n) − g(n) = O(s(n) − r(n)) (b) if s(n) = O(g(n)), then f(n) = O(r(n)) (c) if r(n) = O(s(n)), then g(n) = O(f(n)) (d) if s(n) + g(n) = O(f(n)), then f(n) = Θ(s(n))
Let f(n) = 5n^2. Prove that f(n) = O(n^3). Let f(n) = 7n^2. Prove that f(n) = Ω(n). Let f(n) = 3n. Prove that f(n) =ꙍ (√n). Let f(n) = 3n+2. Prove that f(n) = Θ (n). Let k > 0 and c > 0 be any positive constants. Prove that (n + k)c = O(nc). Prove that lg(n!) = O(n lg n). Let g(n) = log10(n). Prove that g(n) = Θ(lg n). (hint: ???? ? = ???? ?)???? ?...
4. (15 points) Prove or disprove each one of the following statements: ·0(f(n) + g(n)) = f(n) + 0(g(n))I f(n) and g(n) are strictly positive for all n ·0(f(n) × g(n)) positive for all n f(n) 0(g(n))I f(n) and g(n) are strictly
Prove or disprove the following statements, using the relationship among typical growth-rate functions seen in class. a)n^15log n + n^9 is O(n^9 log n) b) 15^7n^5 + 5n^4 + 8000000n^2 + n is Θ(n^3) c) n^n is Ω (n!) d) 0.01n^9 + 800000n^7 is O(n^9) e) n^14 + 0.0000001n^5 is Ω(n^13) f) n! is O(3n)