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))
a) If f1(n) = Θ(g(n)) and f2(n) = Θ(g(n)) then f1(n) + f2(n) = Θ(g(n))
This is TRUE.
According to the definition of big-theta if f1(n) = Θ(g(n)) then c1*g(n)<=f(n)<=c2*g(n) .............(1)
for some constants c1 and c2.
Similarly,
if f2(n) = Θ(g(n)) then c1'*g(n)<=f2(n)<=c2'*g(n) .............(2)
for some constants c1' and c2'.
If we add (1) and (2) we get:-
(c1+c1')g(n)<=f1(n) + f2(n)<=(c2+c2')g(n)...............(3)
Let c1+c1' = c1" and c2+c2' = c2"
Therefore, we can rewrite (3) as:-
c1"g(n)<=f1(n) + f2(n)<=c2"g(n)
Hence f1(n) + f2(n) = Θ(g(n))
b) .If f1(n) = O(g(n)) and f2(n) = O(g(n))then f1(n) = O(f2(n))
This is FALSE.
As a counterexample consider f1(n) = n2 g(n) = n3 and f2(n) = n.
Here, f1(n) = O(g(n)) and f2(n) = O(g(n)) but f1(n) is not O(f2(n)) rather f2(n) = O(f1(n)).
Let f1 and f2 be asymptotically positive non-decreasing functions. Prove or disprove each of the following...
Let f(n) and g(n) be asymptotically positive functions. Prove or disprove each of the following conjectures. f(n) = O(g(n)) implies g(n) = Ω(f(n)) . f(n) = O(g(n)) implies g(n) = O(f(n)). f(n) + g(n) = Θ(min(f(n),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)?) 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)?)
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)
1 Prove the following using the definitions of the notations, or disprove with a specific counterexample: Theta(g(n)) = O(g(n)) Ohm(g(n)) Theta(alpha g(n) = Theta(g(n)), alpha > 0 If f(n) O(g(n)), then g(n) Ohm(f(n)). For any two non-negative functions f(n) and g(n), either f(n) Ohm(g(n)), or f(n) < O(g(n))
1. Let a, b,cE Z be positive integers. Prove or disprove each of the following (a) If b | c, then gcd(a, b) gcd(a, c). (b) If b c, then ged(a., b) < gcd(a, c)
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)).
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 : 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))
6. Let A, B, and C be subsets of some universal set U. Prove or disprove each of the following: * (a) (A n B)-C = (A-C) n (B-C) (b) (AUB)-(A nB)=(A-B) U (B-A) 6. Let A, B, and C be subsets of some universal set U. Prove or disprove each of the following: * (a) (A n B)-C = (A-C) n (B-C) (b) (AUB)-(A nB)=(A-B) U (B-A)