Does there exist a function $f(n)$ such that as $n \rightarrow \infty$, we have $p(n) < f(n) < e(n)$? Where $p$ is any polynomial and $e$ is any exponential (e.g. $e(n) = e^{\alpha n}, \alpha > 0$)
Asked
Active
Viewed 6,694 times
11
-
An important class of such functions arises in algorithmic complexity, https://en.wikipedia.org/wiki/L-notation – Dec 08 '12 at 01:20
2 Answers
15
Sure. The clearest way to see this is to take logarithms: after taking logarithms, you're looking for a function $\log f(n)$ which grows strictly faster than $k \log n$ for any $k$ but strictly slower than $kn$ for any $k$. And there are plenty of functions with this property, e.g. $(\log n)^{\alpha}$ for $\alpha > 1$ or $n^{\alpha}$ for $0 < \alpha < 1$.

Qiaochu Yuan
- 419,620
11
How about $f(n)=e^{\sqrt{n}}$, slowing down the exponent in $e^n$? Or $f(n)=n^{\log{n}}$, speeding up the exponent in $n^k$?

2'5 9'2
- 54,717
-
1
-
1Qiaochu beat you both but deleted his comment. :) One more note is that lots of people define exponential to be of form $e^{n^\alpha}$, for $\alpha > 0$. So $e^{\sqrt{n}}$ wouldn't work and you'd want something like $e^{(\log n)^2}$. But you're correct for the definition I gave. – countunique Dec 08 '12 at 01:21
-
1If lots of people would define $e^{n^{\alpha}}$ to be an "exponential" function of $n$, then I would have to argue with lots of people on linguistics and semantics. – 2'5 9'2 Dec 08 '12 at 01:34