Well I ought to be able to do that by simply generalizing the loop. And that's what the next piece of code on your a hand out shows you.
好的通过生成这个循环,我应该能够达到目的,这也是你们的讲义中下一段代码。
We knew this was trying to do squaring, so intellectually we know we can square -4, it ought to be 16, but what happens here?
我们知道程序是用来求平方数的,那么按理说我们可以来求-4的平方,也就是16,但是程序结果是怎么样的呢?
Cv The only difference is it'll be Cp instead of Cv, B but there it is for pathway B. There it is for C a pathway C. So the state functions that we're familiar with are doing what we expect they ought to be doing, right? If you go around in a cycle, starting and ending at the same place the state functions have to stay the same.
是Cp而不是,这是路径,这是路径,所以我们熟悉的态函数的行为,正与我们预期的相同,对吧?,如果你沿着循环走一圈,开始和结束于同一个位置。
Right? You can see that this ought to be linear, because what am I doing?
这个算法应该是线性复杂度的,因为这个算法是怎么执行的呢?
应用推荐