Algorithm 证明logn是O(2^sqrt(logn))
我从logn开始限制为Algorithm 证明logn是O(2^sqrt(logn)),algorithm,big-o,asymptotic-complexity,logarithm,Algorithm,Big O,Asymptotic Complexity,Logarithm,我从logn开始限制为logn/2^sqrt(logn)的n->infinf,以便实现这一点 申请L'Hospital获得: 1 - n ----------------------------------------- = 2^sqrt(log n) * log 2 * 0.5 * (1
logn/2^sqrt(logn)
的n->inf
inf,以便实现这一点
申请L'Hospital获得:
1
-
n
----------------------------------------- =
2^sqrt(log n) * log 2 * 0.5 * (1 / sqrt(log n)) * (1 / n)
1
= -------------------------------- =
2^(sqrt(log n)) * log 2 * 0.5 * (1 / sqrt(log n))
= let u = sqrt(log n) =
= u / [2^u * log 2 * 0.5]
当u接近无穷大时,u/2^u
的极限是0
,这证明了我们所追求的
.lg(x)将2提高到两边的幂得到的结果是:logn<2^sqrt(logn)对于大n.使用变量替换,这将很简单
m=lg(n)
,我们需要显示m=O(2^sqrt(m))
N=sqrt(m)
,现在它归结为显示N^2=O(2^N)
多项式
在增长率方面受指数函数的限制