3 3 votes Please give an example case for which all the three conditions $f(n)\neq O(g(n))$, $f(n)\neq \Theta (g(n))$ and $f(n)\neq \Omega (g(n))$ holds true. Algorithms asymptotic-notations self-doubt algorithms + – Satbir 3.9k views answer comment Share Follow Print See all 30 Comments 30 30 Comments reply Show 27 previous comments Hirak commented Jun 2, 2019 reply Follow flag I think what he is trying to say is that time taken to calculate them will be O(1) for both f(n) and g(n), and i cant deny with him as well. But strictly going by definition and (even from the graphs) of asymptotic notation we can see that at certain point sin x upperbounds cosx and vice versa. 0 0 replyShare Satbir commented Jun 2, 2019 reply Follow flag @Hirak It would be much better if write your answer and discuss there in comments. 1 1 replyShare commenter commenter commented Sep 27, 2019 reply Follow flag How does sin and cos functions satisfy those 3 conditions? If I take a constant then one function will be completely above the other function so it doesn't satisfy the conditions. 0 0 replyShare Please log in or register to add a comment.
1 1 vote n^(1+sin n) and n^(1+cos n) these two functions are incomparable so satisfy all three properties given . Correct me if wrong Aprajita sachdev answered Jun 3, 2019 Aprajita sachdev comment Share Follow 0 reply Please log in or register to add a comment.