简体   繁体   English

$O(2^{o(n)}) = O(2^n)$? 2美元的力量有一点点

[英]Is $O(2^{o(n)}) = O(2^n)$? The power of $2$ has a little-o

During an NP hard problem's complexity analysis, I am stuck at this term.在 NP 难题的复杂性分析中,我被困在这个术语上。

$O(2^{o(n)})$ $O(2^{o(n)})$

In particular:尤其是:

O(2^{no(n)})+O(2^{o(n)}) O(2^{无(n)})+O(2^{o(n)})

I ended up at an answer $O(2^n)$ equating $O(2^{o(n)}) = O(2^n)$ by considering the worst case for the $o(n)$ as $n$.我最终得到了一个答案 $O(2^n)$ 等于 $O(2^{o(n)}) = O(2^n)$ 通过考虑 $o(n)$ 作为 $ n$。

Any push forward with a short proof would be very helpful.任何带有简短证明的推进都会非常有帮助。

The worst case of o(n) is not n . o(n)的最坏情况不是n The little-o is interpreted as asymptotically less than n .Hence, if f(n) is in o(n) , then lim(f(n)/n)) when n goes towards infinity is equal to 0 .Example of o(n) functions are sqrt(n) and log(n) . little-o 被解释为渐近小于n 。因此,如果f(n)o(n)中,则lim(f(n)/n))n趋近无穷时等于0o(n)的示例o(n)函数是sqrt(n)log(n)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM