edited by
193 views
1 votes
1 votes

Let $T_1(n) = O (f(n))$ and  $T_2(n) = O (g(n))$, then ${T_1(n)}.{T_2(n)}$ will be

  1. $O(f(n).g(n))$                                               
  2. $O(f(n))+O(g(n))$
  3. $O(f(n))-O(g(n))$                                        
  4. None of the above
edited by

1 Answer

1 votes
1 votes

$T_1(n) = O(f(n))$ & $T_2(n) = O(g(n))$

By the definition of $O$- notation ,

$T_1(n)$ $\leq$ $c_1.(f(n))$ & $T_2(n)$ $\leq$ $c_2.(g(n))$

Now, 

Assuming, $c_1.c_2 = C$

∴ $T_1(n).T_2(n)$ $\leq$ $(c_1.f(n)).(c_2.g(n))$

Or, $T_1(n).T_2(n)$ $\leq$ $(c_1.c_2).(f(n).g(n))$

Or, $T_1(n).T_2(n)$ $\leq$ $(C).(f(n).g(n))$

Or, $T_1(n).T_2(n)=O(f(n).g(n))$

∴ ${T_1(n)}*{T_2(n)}$ = $O(f(n).g(n))$   option A)

edited by
Answer:

Related questions

0 votes
0 votes
1 answer
2
0 votes
0 votes
1 answer
3
gatecse asked Mar 2, 2018
347 views
The solution that satisfies all constraints of the given problem and either maximizes or minimizes a given objective function is called ________ solution.greedyfeasibleop...
0 votes
0 votes
2 answers
4
gatecse asked Mar 2, 2018
756 views
Bluetooth uses ____ method in physical layer to avoid interference from other devices or other networksFHSSFDSSTDSNone of the above