$\mathcal{O}(n^n) > \mathcal{O}(n!) > \mathcal{O}(c^n) > \mathcal{O}(n^c) > \cdots $?

95 Views Asked by At

Is the following relationship correct $$\mathcal{O}(n^n) > \mathcal{O}(n!) > \mathcal{O}(c^n) > \mathcal{O}(n^c) > \mathcal{O}(n \cdot Log(n)) > \mathcal{O}( Log(n)) $$

Where $\mathcal{O}$ is big O notation and $c$ is some positive constant.

4

There are 4 best solutions below

1
On BEST ANSWER

$n^c$ is only bigger than $n\log n$ when $c>1$.

0
On

$O(n\log n) > O(\log n)$. Otherwise, you're fine as far as I can tell.

0
On

The last two elements should be swapped, as $n \log n$ grows faster than $\log n$. The other elements are ordered correctly.

0
On

Note that it is true (and interesting/useful) that

$\mathcal{O}(n^c) > \mathcal{O}( Log(n))$ for $c>0$, so perhaps the sequence was meant to be:

$\mathcal{O}(n^n) > \mathcal{O}(n!) > \mathcal{O}(b^n) > \mathcal{O}(n^c \cdot Log(n)) > \mathcal{O}(n^c) > \mathcal{O}( Log(n))$, for all $c>0$ and $b>1$.