Question

In: Computer Science

Algorithm problem 7 [Problem3-4] Let ƒ(n) and g(n) be asymptotically positive functions. Prove or disprove each...

Algorithm problem

7 [Problem3-4] Let ƒ(n) and g(n) be asymptotically positive functions. Prove or disprove each of the following conjectures.

e ƒ(n)∈O((ƒ(n))^2).

f ƒ(n)∈O(g(n)) implies g(n)∈Ω(ƒ(n)).

g ƒ(n)∈Θ(ƒ(n/2)).

h ƒ(n)+ o(ƒ(n))∈Θ(ƒ(n)).

Solutions

Expert Solution

Definitions:-

Definition of big-O :-

If f(n) and g(n) are two functions such that f(n) <= c.g(n) , where c>0 for all n>=n0, n0>=1 then we say that f(n) = O(g(n)).

Definition of big-Omega :-

If f(n) and g(n) are two functions such that f(n) >= c.g(n) , where c>0 for all n>=n0, n0>=1 then we say that f(n) = (g(n)).

Definition of big-Theta :-

If f(n) and g(n) are two functions such that f(n) = O(g(n)) and f(n) = (g(n)) , then we say that f(n) = (g(n)).

Definition of small o :-

If f(n) and g(n) are two functions such that f(n) < c.g(n) , where c>0 for all n>=n0, n0>=1 then we say that f(n) = o(g(n)).

e). f(n) O((f(n))2)

This is clearly False

For example suppose f(n) = 1/n then (f(n))2 = 1/n2

clearly f(n) >= c.(f(n))2 => (1/n) >=c.(1/n2)

however reverse will never be true because if 1/n2 has to be atleast equal to 1/n then c has to be n but c is a constant not a function.

Therefore , above is FALSE

f). ƒ(n)∈O(g(n)) implies g(n)∈Ω(ƒ(n)).

ƒ(n)∈O(g(n)) => f(n) <=c.g(n) ( from definition of big-oh)

above can be written as c.g(n) >= f(n) => g(n) >= (1/c)f(n)

Let (1/c) = c1 then g(n) >=c1.f(n)

above clearly satisfies definition of big-Omega

g(n)∈Ω(ƒ(n)). is TRUE

Therefore , above is TRUE

g). ƒ(n)∈Θ(ƒ(n/2)).

This is clearly a False

Suppose f(n) = 22n then f(n/2) = 2n

clearly 22n >= 1.2n therefore 22n = Ω(2n)

but reverse will be never true because if 2n has to be atleast equal to 22n then c has to be 2n but c is a constant not a function.

so, 22n != O(2n) is also TRUE

since 22n = Ω(2n) is true but 22n = O(2n) is not true

Therefore , above is FALSE

h). ƒ(n)+ o(ƒ(n))∈Θ(ƒ(n)).

o(f(n)) means a function which is functionally smaller than f(n).let that function be h(n).

f(n) + h(n) > 1.f(n) (because left side is clearly greater than right side)

so , f(n) + h(n) = Ω(f(n)) is True.....say statement 1

we know from theorem that f(n) + h(n) = O(max(f(n) , h(n))

and it is given that max(f(n),h(n)) = f(n)

so , f(n) + h(n) = O(f(n)) is also true.....say statement 2

from statement 1 and statement 2 , we can conclude that ƒ(n)+ o(ƒ(n))∈Θ(ƒ(n)). is also true.

Therefore, above is TRUE.


Related Solutions

Let f1(n) and f2(n) be asymptotically nonnegative functions. Using the formal definition of Θ-notation, prove that...
Let f1(n) and f2(n) be asymptotically nonnegative functions. Using the formal definition of Θ-notation, prove that max(f1(n), f2(n)) = Θ(f1(n)+f2(n)).
Prove or disprove that 3|(n 3 − n) for every positive integer n.
Prove or disprove that 3|(n 3 − n) for every positive integer n.
Prove or disprove: (a) If G is a graph of order n and size m with...
Prove or disprove: (a) If G is a graph of order n and size m with three cycles, then m ≥ n + 2. (b) There exist exactly two regular trees.
Let G be an abelian group and n a fixed positive integer. Prove that the following...
Let G be an abelian group and n a fixed positive integer. Prove that the following sets are subgroups of G. (a) P(G, n) = {gn | g ∈ G}. (b) T(G, n) = {g ∈ G | gn = 1}. (c) Compute P(G, 2) and T(G, 2) if G = C8 × C2. (d) Prove that T(G, 2) is not a subgroup of G = Dn for n ≥ 3 (i.e the statement above is false when G is...
Prove or disprove each of the followings. If f(n) = ω(g(n)), then log2(f(n)) = ω(log2g(n)), where...
Prove or disprove each of the followings. If f(n) = ω(g(n)), then log2(f(n)) = ω(log2g(n)), where f(n) and g(n) are positive functions. ω(n) + ω(n2) = theta(n). f(n)g(n) = ω(f(n)), where f(n) and g(n) are positive functions. If f(n) = theta(g(n)), then f(n) = theta(20 g(n)), where f(n) and g(n) are positive functions. If there are only finite number of points for which f(n) > g(n), then f(n) = O(g(n)), where f(n) and g(n) are positive functions.
Let n be a positive integer. Prove that if n is composite, then n has a...
Let n be a positive integer. Prove that if n is composite, then n has a prime factor less than or equal to sqrt(n) . (Hint: first show that n has a factor less than or equal to sqrt(n) )
prove or disprove .if n is a non negative integer, then 5 divides 2 ⋅ 4^n...
prove or disprove .if n is a non negative integer, then 5 divides 2 ⋅ 4^n + 3⋅9^n.
Let f : N → N and g : N → N be the functions defined...
Let f : N → N and g : N → N be the functions defined as ∀k ∈ N f(k) = 2k and g(k) = (k/2 if k is even, (k + 1) /2 if k is odd). (1) Are the functions f and g injective? surjective? bijective? Justify your answers. (2) Give the expressions of the functions g ◦ f and f ◦ g? (3) Are the functions g ◦ f and f ◦ g injective? surjective? bijective?...
Let n be a positive integer. Prove that two numbers n2+3n+6 and n2+2n+7 cannot be prime...
Let n be a positive integer. Prove that two numbers n2+3n+6 and n2+2n+7 cannot be prime at the same time.
Let G be a group. For each x ∈ G and a,b ∈ Z+ a) prove...
Let G be a group. For each x ∈ G and a,b ∈ Z+ a) prove that xa+b = xaxb b) prove that (xa)-1 = x-a c) establish part a) for arbitrary integers a and b in Z (positive, negative or zero)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT