Question

Write always true, never true, or sometimes true for each and give a proof (using the...

Write always true, never true, or sometimes true for each and give a proof (using the definitions of O(), Ω(), o()...). If it is sometimes true, give cases where it is, and cases where it isn't.

If f(n) = O(g(n)), then 2f(n) = O 2g(n)

If f(n) = O(g(n)), then g(n) − f(n) = Ω(g(n)).

If f(n) = o(g(n)), then g(n) − f(n) = Ω(g(n)).

Homework Answers

Answer #1

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

b)

It is not true for example

f(n)=2n and g(n)=n

2^(f(n))=2^(2n)

2^g(n)=2^n

But,

2^(2n) is not equal to O(2^n)

c)

Since

f(n)<=c*g(n) using big O definition

So,

g(n)-f(n)>=g(n)-c*g(n)=g(n)*(1-c)

So, we can write that

g(n)-f(n)>=c1*g(n)

where c1=1-c

So, we have found a constant.

So, it is always true

d)

Since

f(n)<c*g(n) using definition of little o

So,

g(n)-f(n)>g(n)-c*(g(n))

So,

g(n)-f(n)>g(n)*(1-c)

So, we can say that

g(n)-f(n)>=c2*g(n)

So, this is also true

Kindly revert for any queries

Thanks.

Know the answer?
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
Similar Questions
Determine if the following statements are true or false. In either case, provide a formal proof...
Determine if the following statements are true or false. In either case, provide a formal proof using the definitions of the big-O, big-Omega, and big-Theta notations. For instance, to formally prove that f (n) ∈ O(g(n)) or f (n) ∉ O(g(n)), we need to demonstrate the existence of a constant c and a sufficient large n0 such that f (n) ≤ c g(n) for all n ≥ n0, or showing that there are no such values. a) [1 mark] 10000n2...
Are any of the following implications always true? Prove or give a counter-example. a) f(n) =...
Are any of the following implications always true? Prove or give a counter-example. a) f(n) = Θ(g(n)) -> f(n) = cg(n) + o(g(n)), for some real constant c > 0. *(little o in here) b) f(n) = Θ(g(n)) -> f(n) = cg(n) + O(g(n)), for some real constant c > 0. *(big O in here)
For each of the following statements: if the statement is true, then give a proof; if...
For each of the following statements: if the statement is true, then give a proof; if the statement is false, then write out the negation and prove that. For all sets A;B and C, if B n A = C n A, then B = C.
1. For each statement that is true, give a proof and for each false statement, give...
1. For each statement that is true, give a proof and for each false statement, give a counterexample     (a) For all natural numbers n, n2 +n + 17 is prime.     (b) p Þ q and ~ p Þ ~ q are NOT logically equivalent.     (c) For every real number x ³ 1, x2£ x3.     (d) No rational number x satisfies x^4+ 1/x -(x+1)^(1/2)=0.     (e) There do not exist irrational numbers x and y such that...
Let h(n) = n3 − 8n2 + 75. Give a careful proof, using the definition on...
Let h(n) = n3 − 8n2 + 75. Give a careful proof, using the definition on page 48, that h(n) is in Ω(n2).
Assume that f(n) = O(g(n)). Can g(n) = O(f(n))? Are there cases where g(n) is not...
Assume that f(n) = O(g(n)). Can g(n) = O(f(n))? Are there cases where g(n) is not O(f(n))? Prove your answers (give examples for the possible cases as part of your proofs, and argue the result is true for your example).
1. (15 pts total) Prove or disprove each of the following claims, where f(n) and g(n)...
1. (15 pts total) Prove or disprove each of the following claims, where f(n) and g(n) are functions on positive values. (a) f(n) = O(g(n)) implies g(n) = Ω(f(n)) (b) f(n) = O(g(n)) implies 2^f(n) = O(2^g(n)) (c) f(n) = O((f(n))^2)
1.Let f and g be two functions such that f(n)/g(n) converges to a positive value less...
1.Let f and g be two functions such that f(n)/g(n) converges to a positive value less than 1 as n tends to infinity. Which of the following is necessarily true? Select one: a. g(n)=Ω(f(n)) b. f(n)=Ω(g(n)) c. f(n)=O(g(n)) d. g(n)=O(f(n)) e. All of the answers 2. If T(n)=n+23 log(2n) where the base of the log is 2, then which of the following is true: Select one: a. T(n)=θ(n^2) b. T(n)=θ(n) c. T(n)=θ(n^3) d. T(n)=θ(3^n) 3. Let f and g be...
Write a mathematical proof that shows that a square at position (i, j) is diagonal to...
Write a mathematical proof that shows that a square at position (i, j) is diagonal to a square at (x, y) if and only if i+j == x+y or i-j == x-y. You can use the following definition of a diagonal square. Two squares (i, j) and (x, y) are diagonal if one of the following cases is true: i-m = x and j-m = y i-m = x and j+m = y i+m = x and j-m = y...
For each of the following pairs of functions f and g (both of which map the...
For each of the following pairs of functions f and g (both of which map the naturals N to the reals R), show that f is neither O(g) nor Ω(g). Prove your answer is correct. 1. f(x) = cos(x) and g(x) = tan(x), where x is in degrees.