(1) f(n) = o(g(n)) → log(f(n)) = o(log(g(n)))
given that
f(n) is o(g(n)) is true then log(f(n)) = o(log(g(n))) also true... this statement is true..
explanation..
lets take f(n) = o(g(n))
f(n) is o(g(n)), means for every constant k>0, the function g(n) is greater than the f(n)
now apply both sides log, means we are decreasing growth rate of f(n) and g(n), both by log, equally..
since we are decreasing their growth rate equally, for every contant k>0 , log(g(n)) is greater than log(f(n))
means log(f(n)) = o(log(g(n)))..hence proved..
(2) f(n) = O(g(n)) → log(f(n)) = O(log(g(n)))
f(n) is O(g(n)) is true then log(f(n)) = O(log(g(n))) also true... this statement is true..
explanation:
lets take f(n) = O(g(n))
f(n) is O(g(n)), means their is a constant k>0,where the function g(n) is greater than or equal to the f(n),tightly bounded by g(n)
now apply both sides log, means we are decreasing growth rate of f(n) and g(n), both by log, equally..
since we are decreasing their growth rate equally, for the same contant k>0 , log(g(n)) is greater than or equal to log(f(n))
means log(f(n)) = O(log(g(n)))..hence proved..
(3) f(n) = o(g(n)) → 2^f(n) = o(2^g(n))
(4) f(n) = O(g(n)) → 2^f(n) = O(2^g(n))
similary 3,4 are also true.. like 1 and 2
difference is
in 3,4 we increasing growth rate f(n) and g(n), exponentially, equally on both...sides
hence they are also true..
Prove or find a counterexample for the following. Assume that f (n) and g (n) are...
Help please! Using matlab
Prove or give a counterexample: if f: X rightarrow Y and g: Y rightarrow X are functions such that g o f = I_X and f o g = I_Y, then f and g are both one-to-one and onto and g = f^-1.
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))
1. For each of the following pairs of functions, prove that f(n)-O(g(n)), and / or that g(n) O(f(n)), or explain why one or the other is not true. (a) 2"+1 vs 2 (b) 22n vs 2" VS (c) 4" vs 22n (d) 2" vs 4" (e) loga n vs log, n - where a and b are constants greater than 1. Show that you understand why this restriction on a and b was given. f) log(0(1) n) vs log n....
1. a) Let f(n) = 6n2 - 100n + 44 and g(n) =
0.5n3 . Prove that f(n) = O(g(n)) using the definition
of Big-O notation. (You need to find constants c and n0).
b) Let f(n) = 3n2 + n and g(n) = 2n2 . Use
the definition of big-O notation to prove that
f(n) = O(g(n)) (you need to find constants c and n0) and
g(n) = O(f(n)) (you need to find constants c and n0).
Conclude that...
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))
Compare the following pairs of functions f, g. In each case, say whether f- o(g) f-w(g), or f = Θ(g), and prove your claim. 157. f(n) -100n+logn, gn) (logn)2. 158,介f(n) = logn, g(n) = log log(n2). 159. . f(n)-n2/log n, g(n) = n(log n)2. 160·介介f(n)-(log n)106.9(n)-n10-6 . 161. (n)logn, g(n) (log nlog n 162. f(n) n2, gn) 3.
Compare the following pairs of functions f, g. In each case, say whether f- o(g) f-w(g), or f = Θ(g), and prove...
For each pair of functions determine if f(n) ? ?(g(n)) or f(n) ? ?(g(n)) or f(n) ? O(g(n)) and provide a proof as specified. For each of the following, give a proof using the definitions. 1. f(n) = log(n), g(n) = log(n + 1) 2. f(n) = n3 + nlog(n) ? n, g(n) = n4 + n 3. f(n) = log(n!), g(n) = nlog(n) 4. f(n) = log3(n), g(n) = log2(n) 5. f(n) = log(n), g(n) = log(log(n))
Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)), it is not necessarily true that f(n) = O (h (n)). You may assume that low degree (i.e., low-exponent) polynomials do not dominate higher degree polynomials, while higher degree polynomials dominate lower ones. For example, n^3 notequalto O (n^2), but n^2 = O (n^3). Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)), it is not necessarily...
PLEASE use smallest
counterexample!
n(n+1) 1. Prove by smallest counterexample: 1 + 2 + . . . + n
For each pair of functions f(n) and g(n), indicate whether f(n) = O(g(n)), f(n) = Ω(g(n)), and/or f(n) = Θ(g(n)), and provide a brief explanation of your reasoning. (Your explanation can be the same for all three; for example, “the two functions differ by only a multiplicative constant” could justify why f(n) = n, g(n) = 2n are related by big-O, big-Omega, and big-Theta.) i. f(n) = n^2 log n, g(n) = 100n^2 ii. f(n) = 100, g(n) = log(log(log...