Expressing pseudo-polynomial runtime solely in terms of the input size
-
01-11-2019 - |
题
In case we have an algorithm which is pseudo-polynomial and runs in $O(n^2C)$ for some $C$ that is encoded in binary. Is it correct to say that if $C=2^n$ then $O(n^2C)=O(n^22^n)$ and because $n=\log C$ we can write that $O((\log C)^22^n)=O(2^n)$ because $2^n$ grows more rapidly than $\log C$?
没有正确的解决方案
不隶属于 cs.stackexchange