After several tries on the loop of soapy water, I gently breathed on it.
在尝试了几次肥皂水环后,我轻轻地对着它吹气。
I patiently explained to him, "Son, you can't blow so hard; you must ever so gently breathe on the loop to make bubbles."
我耐心地向他解释:“孩子,你不能吹得这么猛;你必须轻轻地在环上吹气,这样才能吹出泡泡。”
Computation time in this method is likely to be spent on the loop.
这个方法循环可能会消耗大量的计算时间。
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.
好的通过生成这个循环,我应该能够达到目的,这也是你们的讲义中下一段代码。
So this is a nice little search-- sorry, a nice little sort algorithm . And in fact, it's relying on something that we're going to come back to, called the loop invariant.
恩,这是一个很棒的小搜索,抱歉,和很棒的小排序算法,事实上,它依赖于一些我们要回顾的东西,被称作循环不变量。
This is a highly simplified version, but sort of closes the loop on what we've been talking about.
以上是对整个过程的高度概括,但它涵盖了我们讲过的内容
应用推荐