If I'm iterating from I on the outside, I on the inside, I'm going to start changing the value and I might very well induce an infinite loop but J is okay.
如果我在外面从I开始迭代,或从里面开始迭代,我将开始改变它的值,我可能引起一个无限循环,但是用J是可以的。
It says, right. If j is-- well it says until j is at the less than the length of l-- it says, if min value is bigger than the thing I'm looking at I'm going to do something, all right?
只要j比长度l小,如果MinVal比我要找到元素大,我就要做些什么了,我们来遍历?
if I say a particle's location is i times t^2 plus j times 9t^3, for every value of time, you can put the numbers in and you can find the velocity by just taking derivatives.
一个质点的位置,i ? t^2 + j ? 9t^3,在每一个时间点,你可以把数值代入,并通过求导得到速度
Ah-ha. What does that say to do? It says, 3 gee, make min index point to there min value be 3. Change j. Is 6 bigger than 3?
啊哈,这该怎么处理呢?,让MinIndex指向那里,MinVal是,改下j值,6比3大么?
OK. What does that say? I'm going to change MinIndex min index to also point there n value is 8, j starts off here, and I say, OK, is the thing I'm looking at here smaller than that? Yes.
好的,这意味着什么?,我打算交换,让它也指向那里,MinVal是8,j从这里开始,我要找的值比这个小么?是的。
应用推荐