In the context of Algorithm's time complexity, I'm trying to proof the following
$n^\frac{n}{2} \in \mathcal{O}(n!)$
I'm aware of the following inequalities:
$\left(\frac{n}{2}\right)^\frac{n}{2} \leq n! \leq n^n, \quad n\geq1$
but I don't manage to use them to proof the original statement.
Appreciated
We want
$n^\frac{n}{2} \in O(n!) $.
We know that $n! \gt (\frac{n}{e})^n $ so if $n^\frac{n}{2} \le (\frac{n}{e})^n $ for all large enough $n$ we are done.
But this is equivalent to $n^\frac{1}{2} \le \frac{n}{e} $ or $n^{1/2} \ge e $ or $n \ge e^2 $ which is certainly true for $n \ge 9$ since $e < 3$.
This can be used to show that $n^{cn} = O(n!)$ for any $0 < c < 1$.
Note.
$n! \gt (\frac{n}{e})^n $ follows by induction from $(1+\frac1{n})^n < e$ which can be proved in an elementary way by showing that $(1+\frac1{n})^n$ is an increasing sequence which has $e$ as its limit.