797 views

1 Answer

Best answer
1 1 vote

T1(n)=O(f(n))   => T1(n) < c1 * f(n)  where c1 is +ve constant (from Big O Def)

T2(n)=O(f(n))  => T2(n) < c2 * f(n)  where c2 is +ve constant (from Big O Def)

a] True

Since T1(n) + T2(n) < (c1+c2) * f(n), So we can say T1(n) + T2(n) = O(f(n))

b] False

Let T1(n) = n2 and T2(n) = n  and f(n) = n3

Clearly T1(n) >T2(n),So T1(n) = O(T2(n)) is not possible.

c] False

Let T1(n) = n and T2(n) = n2  and f(n) = n3

Clearly T1(n) < T2(n),So T1(n) = ώ(T2(n))  is not possible.

d] False

Take the same assumptions as above then

You can say, T1(n) < C1 * T2(n) for C1 = 1  but

T1(n) > C2 *T2(n) is not possible for any positive constant

Then T1(n)= Θ(T2(n)) is not possible.

Answer:
Position:
Show:

Related questions

0 0 votes
0 0 answers
525
525 views
1 1 vote
1 1 answer
853
853 views
rude asked Jun 1, 2016
853 views
I was surfing internet and I got this beautiful Problem, I thought i should post here.
0 0 votes
3 answers 3 answers
1.9k
1.9k views
piyushkr asked Dec 31, 2015
1,869 views
(logn)1/2=O(loglogn)
1 1 vote
2 2 answers
866
866 views
Banti Arya asked Dec 5, 2015
866 views
i geeting ans 1 and 2 are true but ans given only 2 is true explain itWhich of the following are TRUE?i) $n!=\theta((n+1)!)$ii) $\log _{4}^{n}=\theta\left(\log _{2}^{n}\r...