2,923 views

1 Answer

Best answer
3 votes
3 votes

Yes this is true . 

say O (F(n)) = O(n2) (assume )

 T1(n) = O (n2)            and  T2(n) = O (n2)

then  T1(n) +  T1(n) = 2 O (n2)  = O (n2)  (constant term dont affect the complexity )

eg :

F(n) = 2n+n+1 then  

O (F(n))= n2  

selected by

Related questions

525
views
1 answers
0 votes
6.2k
views
0 answers
0 votes
Sanjay Sharma asked Apr 25, 2018
6,224 views
Q Suppose T1(N) = O (f (N)) and T2(N) = O (f (N)).Which of the following statements are true in general? (a) T1(N) + T2(N) = O (f (n)) (b) T1(N) − T2(N) = o (f (n)) (c) T1(N) / T2(N) = O(1) (d) T1(N) = O (T2 (N))
504
views
1 answers
2 votes
854
views
2 answers
0 votes