• I've written a little for loop, which is going to iterate over all of the elements in the list.

    让我们先看看这儿的代码,我已经写了一个循环语句,用来迭代处理数组中所有的元素。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • The key thing to notice is, I now have the ability to create iterations, which extends well I can do.

    要注意的关键点是,我们现在已经学会如何去创建迭代了,这大大扩展了我们能做的事情的范围。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Condition," this thing in the middle between the semicolons, is going to be checked every iteration of the loop.

    条件,“这个在两个分号的中间,它将迭代地检查这个循环的条件。

    哈佛公开课 - 计算机科学课程节选

  • We used iterative deletion in a relatively abstract setting, or not abstract, rather a play setting last time in which were choosing numbers.

    我们在相对抽象的背景下探讨迭代剔除,其实也没那么抽象,比如上一讲,我们做的选数字的游戏

    耶鲁公开课 - 博弈论课程节选

  • Successive approximation, Newton-Raphson was one nice example, but there's a whole class of things that get closer and closer, reducing your errors as you go along.

    逐渐逼近,牛顿迭代是一个很好的例子,随着你不断的时行下去,你会不断的离结果越来越近,逐渐地减少误差。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And I'm going to show you an example in a 1 second, just to drive this home, but notice the characteristics. In the first two cases, the problem reduced by 1 at each step.

    在前面两个例子里,每一部问题的规模缩小了,不管是迭代的还是递归的,这表明这个问题的复杂性可能是线性的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I first tested it on the square root of 4 and in one iteration it found 2.

    我首先测了下求4的平方根4,它只迭代了一次并返回了2。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • If I want a copy of the string, I've got to whip out my week 1 skills of just iterating with a four loop from left to right and make copies of those characters.

    我需要那个字符串的一个拷贝,我使用,第一周的技巧,从左到右做四次迭代,然后复制这4个字符。

    哈佛公开课 - 计算机科学课程节选

  • So if we do the procedure of iteratively deleting dominated strategies, going back again, looking what's dominated, all that's left is 5 and 6.

    如果我们按照这个程序,迭代剔除劣势,不断回头看看那些策略是劣势的,最终将只剩下立场5和6

    耶鲁公开课 - 博弈论课程节选

  • This should be something familiar from when we were deleting dominated strategies.

    这和我们之前学过的,迭代剔除劣势策略类似

    耶鲁公开课 - 博弈论课程节选

  • What you can do is you can iterate keys, which gives you the keys in the dictionary, and then you can choose them, but there's no guarantee in the order in which you get keys.

    你能做的就是迭代得到键,这样就可以得到字典中,所有的键并进行选择,但是键的顺序,是没有保证的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Again, what I want you to see is, notice the characteristic of that.

    这里面的特征,也就是迭代产生了两个小一号的问题。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • N But it's definitely not one and in fact it wasn't N in the case of Selection Sort because remember the algorithm we implemented on stage last week had me going back and forth across the stage selecting on iteration, the smallest person I can find, the smallest number and then putting them into place.

    但在选择排序中,肯定不会是1,也不是,注意,上周我们在这儿,实现的算法中,反复地,迭代进行选择,选出最小的数,然后将其放在合适的位置。

    哈佛公开课 - 计算机科学课程节选

  • Because the right way to do it is iteratively.

    因为正确的作法是迭代

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • > So now that might not have felt like the fastest algorithm but think about what you could have done with that algorithm in each iteration, much like the phonebook up front here, you literally split that problem in two because on each iteration roughly half of you were sitting down and then another half and then another half.

    虽然这并不是最快的算法,但如果把这种算法每次迭代,就像刚才查电话簿一样,你便将这个问题一分为二了,因为每一次迭代后只有一半坐下来,以此类推。

    哈佛公开课 - 计算机科学课程节选

  • We're going to see variations of this, we're going to see a variation of it called recursion, a little later on, but for now we're just going to talk about how do we do iterations.

    我们稍后会去,看它的变量,它的所谓的递归数的变量,但是现在我得先讲讲,怎么来实现迭代

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • If I want to try and decide how to tackle a problem in an iterative matter, here the steps I'm going to go through. First thing I'm going to do, is I'm going to choose a variable that's going to count.

    但是这就是我对它的观点,如果我试着去以迭代的方式,解决一个问题的话,下面是我应该采取的步骤,第一件要做的事情。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Again as I said this is my version of it, but you can see, every one of the examples we've used so far has that pattern to it.

    形成了迭代的思想,我还是想用我的话,来表达表达,但是你们可以看到,我们讲过的每个例子都用到了这个模式。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So have I convinced you that there's something you can do with iterative deletion?

    大家都理解,有关迭代剔除的内容了吧

    耶鲁公开课 - 博弈论课程节选

  • We also saw in that numbers game last time that in some games, but by no means all games, in some games this process actually converges to a single choice.

    我们同样可以发现,在某些博弈中,不是所有的博弈,迭代剔除劣势策略,最终会导致唯一的选择

    耶鲁公开课 - 博弈论课程节选

  • 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是可以的。

    哈佛公开课 - 计算机科学课程节选

  • And in this case, we go from 8 to 4 to 2 to 1 three times and then on each iteration of this algorithm, each pass across the board I'm touching N numbers, so that means I'm doing N things, log N times.

    在这个例子中,我们从8得到4,到2,再到1,是3次,在这个算法的每次迭代中,每一趟我都会操作N个数,也就是所我每次要做N步操作,一共要做,log,N,次。

    哈佛公开课 - 计算机科学课程节选

  • OK. I know. It looks boring. But it's a structure of the things I want to think about when I go through trying to take a problem and mapping it into a iterative program.

    好,我知道这看起来有点无聊,但是这是我要去以迭代的方式,去解决一个问题采取的,措施的大致结构。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And the right way to do it is not starting at the top, it's starting at the bottom.

    而且正确的迭代不是,从头开始而是从尾开始。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So I'm going to build something that's going to do iterative exponentiation.

    首先我会写一个,迭代乘法的过程。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • In the case of a recursive exponentiator, I'm going to do the following trick.

    在这个迭代求乘方的例子里面,我会用这么个小把戏。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • All right. So it's fun, and I got a little bit of applause out of it, which is always nice for me, but I also showed you how to think about it recursively.

    好,挺有趣的,我也得到了一点掌声,这让我挺高兴的,但是我想让大家明白,怎么用迭代的思想来解决这个问题。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So if the only tool I taught you in this class was dominated strategies and the iterative deletion of dominated strategies we'd be stuck.

    所以之前讲的,不要采用劣势策略,和迭代剔除劣势策略在这里就不奏效了

    耶鲁公开课 - 博弈论课程节选

  • They're running through a loop. It's a common way of thinking about problems.

    有继承意义的迭代程序了,它们是以循环的模式来运行的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I think that's probably enough for iterative deletion.

    我认为迭代剔除已经讲的差不多了

    耶鲁公开课 - 博弈论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定