• I'm going to set up an index, which is going to tell me where to look, starting at the first part of the list, right?

    索引告诉我从哪里开始检索数组,对不对?,然后我会去记录下我做了多少次比较,这样我就能看到这个算法的工作量了?

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

  • So I'm not going to take the item with an index of 2.

    所以我不会选择,索引值为2的物品。

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

  • So, as I said, there are many graphs around many charts of the high and low glycemic index foods and some things would surprise you.

    如我所说,会有许多高血糖指数的食物,和低血糖指数的食物的图表,有些东西会让你惊讶

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

  • In essence, this collapse in stock prices -the one-day collapse in stock prices -I think in the U.S. The price was, depending on which index you were looking at, were down 21-22% in a single day.

    实际上,这次股价暴跌,股价一天内的跌幅,当然在美国国内,要看你参考的是哪种股指,但基本上一天之内暴跌21-22%

    耶鲁公开课 - 金融市场课程节选

  • Now I seem to be violating my own mantra here by just calling this variable A, but this is reasonable, I much as with four loops when you just call an incrementing variable I, because you just need an index, well, same here.

    现在我好像违背了我自己的意愿,我把这个变量叫做A,但这是合理的,就像我们的for循环中,我们把一个增变量叫做,因为我们只要一个索引,这里也一样。

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

  • It says while the index is smaller than the size - of the list, I'm not at the end of the list and I don't have an answer yet, check.

    当然是如果我还没检索到目标数的话,因此我会去看看是不是,这里真的看不情。

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

  • i-1 But with index i minus 1.

    但是同时返回的是索引号。

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

  • Again I should have said first, index 0, the first one. I can similarly go in and say I'd like all the things between index 2 and index 4. And again, remember what a b c that does. Index 2 says start a 0. 1, 2. So a, b, c.

    我还是要说一遍,索引为0的元素,是第一个元素,我可以要求返回索引,2和4之前的所有元素,请记住2,是从0开始的,那么0,1,2对应的是。

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

  • And I can obviously do the other direction which is I can say skip to index 2 and all the remaining pieces. This lets me slice out, if you like, the front part or back part or a middle part of the tuple as I go along.

    很明显我可以从索引2开始切片,所有剩下的元素,这可以让我2,如果你喜欢我这么说的话,取得元素的前面的或者后面的,或者中间的部分。

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

  • 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从这里开始,我要找的值比这个小么?是的。

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

  • Home prices are falling at the highest rate we've ever seen. I have my own index s Case-Shiller indexes the Standard & Poor's Case-Shiller indexes and we announced our indexes yesterday.

    房价正在以我们从未见过的速度下跌,我有自己的一个指数,名字叫The,Standard&Poor’,而且昨天我们公布了我们的指数。

    耶鲁公开课 - 金融市场课程节选

  • football It's kind of bizarre, but the French call soccer football. And then I can index in it.

    但是法国人不说soccer说,因此我可以把它加入索引。

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

  • I get to the end of the loop, and I actually do a little bit of wasted motion there. And the little bit of wasted motion is, I take the value at i, store it away temporarily, take the value where min index is pointing to, put it back in there, and then swap it around.

    我走到了循环的末尾,事实上我做了多余的动作了,有点多余的是我把i的值,临时保存起来了,看看MinIndex指向的值,放回到哪里,然后再交换。

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

  • To get any location in memory, to get to any value of the list, I simply have to say which element do I want to get, I know that these things are stored in a particular size multiply that index by 4, add it to start, and then it's in a constant amount of time I can go to that location and get out the cell.

    取得列表中的任何一个值,简单说来,想要取得列表中的任何元素,我知道这些元素存在特定的大小中,把下标乘以4,加到start上,然后定位到内存单元,并取出值就是固定的时间了,好的,如果元素以固定大小存储。

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

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

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

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