1

Im pretty sure it doesn't, but how can I be sure?

Was thinking by using

$$f(x) = \sin(x) + 2$$ and $$g(x) = \cos(x) + 2$$

Thanks!`

alkabary
  • 6,214
  • check this out http://cs.stackexchange.com/questions/10548/construct-two-functions-f-and-g-satisfying-f-ne-og-g-ne-of – alkabary May 31 '15 at 02:41

2 Answers2

1

If you mean $\sin(x)+2$ and $\cos(x)+2$, then those functions are big-O of each other.

A true counterexample would be, $f(n)=1+n^2\sin(n)^2$ and $g(n)=n$.

0

No.

Let $f(n) = 1$ if $n$ is even and $n$ if $n$ is odd and let $g(n) = 1$ if $n$ is odd and $n$ if $n$ is even.

Then $f(n)/g(n) = n$ if $n$ is odd and $f(n)/g(n) = 1/n$ if $n$ is even.

marty cohen
  • 107,799