As you build these kinds of simulations, or anything like this, you need to think through whether things should be multiplicative or additive.
正如你建立各种仿真程序,或者类似的仿真程序时,你应该去想一想,他们应该是用加法还是用乘法。
A log algorithm typically is one where you cut the size of the problem down by some multiplicative factor.
对数级复杂度的算法就是指,通过一系列常量级步数的操作,可以将问题的规模。
The second one is, this multiplicative constant here is 3, in some sense also isn't all that crucial.
我们需要乘的常量是,在某种意义上来说这也不是很重要,对你的程序来说要运行300年。
And that's why, I ended up using a multiplicative factor, rather than an additive factor.
这也是为什么,我最后使用一个倍增因子,而不是用一个加法因子。
So we're going to typically also not worry about the multiplicative constants. This factor here.
要乘的常量这个因素太关注,我们真正需要关注的是。
应用推荐