Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Algorithm O指数和幂的符号证明_Algorithm_Big O_Time Complexity_Complexity Theory_Exponential - Fatal编程技术网

Algorithm O指数和幂的符号证明

Algorithm O指数和幂的符号证明,algorithm,big-o,time-complexity,complexity-theory,exponential,Algorithm,Big O,Time Complexity,Complexity Theory,Exponential,我试图证明4^n不是O(2^n)的顺序 这是有效的方法吗? 4^n>=c*2^n =>4^n/2^n>=c =>2^n>=c 我在这里迷路了…好吧,你的方法也很具体。你应该朝同一个方向前进。目前,我也没有更好的选择 4^n = ((2^2)^n) = (2^2n) = (2^n) * (2^n) > 2^n for all values of n>0. As,(2^n)*(2^n)>O(2^n) 这是因为(2^n)*(2^n)>c*2^n。因此,不存在 大于2^n的任何常量值 因此

我试图证明4^n不是O(2^n)的顺序

这是有效的方法吗?
4^n>=c*2^n =>4^n/2^n>=c =>2^n>=c


我在这里迷路了…

好吧,你的方法也很具体。你应该朝同一个方向前进。目前,我也没有更好的选择

4^n = ((2^2)^n) = (2^2n) = (2^n) * (2^n) > 2^n for all values of n>0.
As,(2^n)*(2^n)>O(2^n)

这是因为(2^n)*(2^n)>c*2^n。因此,不存在 大于2^n的任何常量值

因此,
4^n!=对于n>0的所有值,O(2^n)为4^n>2^n