0 votes 0 votes 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)) Sanjay Sharma asked Apr 25, 2018 Sanjay Sharma 6.1k views answer comment Share Follow See all 11 Comments See all 11 11 Comments reply Show 8 previous comments Kushagra Chatterjee commented Apr 25, 2018 reply Follow Share Look what have you done is T2 <= c1 (f(n)) .....................................(1) T1 <= c2 (f(n))......................................(2) => (T1/T2) <= c2/c1 ...................................(3) => T1 <= (c2/c1) T2 Let us assume what you have done is right then it should also hold true for integers So, assume f(n) = 9 T2 = 3 and T1 =4 c1 and c2 = 1 Then the inequality (1) becomes 3 <= 9 which is true. the inequality (2) becomes 4 <= 9 which is true. => 4/3 <= 1 (the inequality number 3 according to you) IT IS WRONG So the operations you have done on inequality is wrong. 0 votes 0 votes abhishekmehta4u commented Apr 25, 2018 reply Follow Share In asymptotic notation constant are not effect it may be grater then constant. We have to solve asymptotically not mathematically. Here T1 = n and T2 = n+2 . Asymptotically T1=o(T2) But mathematicaly T1 <T2 0 votes 0 votes Kushagra Chatterjee commented Apr 25, 2018 reply Follow Share So, I think you are telling that the inequality calculations you have done are correct asymtotically but not mathematically. So, lets prove it that your calculation is also wrong asymtotically. So, what you have done is T2 <= c1 (f(n)) .....................................(1) T1 <= c2 (f(n))......................................(2) => (T1/T2) <= c2/c1 ...................................(3) => T1 <= (c2/c1) T2 This time assume T2 = n , T1 = n2 , f(n) = n3 Now the inequality 1 T2 <= c1 (f(n)) Now, according to my assumption n <= c1 (n3) I think this is right because n is asymtotically less than n3 Tell me if I am wrong. Now, come to the inequality 2 T1 <= c2 (f(n)) Now, according to my assumption n2 <= c2 n3 I think this is right because n2 is asymtotically less than n3 Tell me if I am wrong. Now, come to the inequality number (3) (T1/T2) <= c2/c1 Now according to my assumption. (n2/n) <= c2/c1 => n2 <= (c2/c1) n I think this is wrong because n2 is not asymtotically less than n Tell me if I am wrong. 0 votes 0 votes Please log in or register to add a comment.