So I have this is an assignment for algorithms. I've googled a lot, read the chapter in the book about big Oh notation, and I understand the concept. I do not however understand how to prove it. I know I need to work with a constant and put that out of the equation. And I know that the answer I've found for $f(n) = O(g(n))$ implies $g(n) = O(f(n))$ is
NO. $f(x)=x$,$g(x)=x^2$ is a counterexample.
But I do not understand this answer. If $g(x)$ could be $x^2$ then $f(n)$ would not be equal the $O(g(n))$.
Can someone explain in a simple way why this is the case though? :(
So f(x) = O(g(x)) means that g(x) grows faster than f(x) but shouldnt it be opposite? If f(x) = O(g(x)) then f(x) is faster growing than g(x) since O(g(x)) is worst case scenario?
– NicklasN Feb 05 '16 at 08:52