1 votes 1 votes if f(n) ≠ O(g(n)) then, g(n) ≠ O(f(n)) state true or false with explanation. Algorithms asymptotic-notation algorithms + – sourav. asked Jul 28, 2016 sourav. 1.2k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes This is false . f(n) ≠ O(g(n)) since this is given so f(n) and g(n) cannot equal asymptoticaly. so f(n) = n2 , g(n) = n so f(n) ≠ O(g(n)) satisfy now g(n) = O(f(n)) always i.e. n =O(n2) Prashant. answered Jul 28, 2016 • selected Jul 28, 2016 by sourav. Prashant. comment Share Follow See 1 comment See all 1 1 comment reply sourav. commented Jul 28, 2016 reply Follow Share correct...!! 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes False, take G(n) = 10 and F(n) = 100 Then, 100 != O(10) (TRUE) but, 10 = O(100) (Also true, which it is saying in the question as false.) Kapil answered Jul 28, 2016 Kapil comment Share Follow See all 2 Comments See all 2 2 Comments reply Sushant Gokhale commented Aug 28, 2016 reply Follow Share @Kapil. For the case which you have taken, F = $O(g)$ which isnt the case as given. The asymptotic notation is different than the actual magnitude. 0 votes 0 votes Mohit Kumar 6 commented Apr 18, 2020 reply Follow Share if we trignometry fuction then in this case it is true.f(n) ≠ O(g(n)) then, g(n) ≠ O(f(n)) both can we true. 0 votes 0 votes Please log in or register to add a comment.