And we're having a difference of opinion as to whether we should use a tuple or a list here, right?
可以“是结果,明白了吗?我们队在这里是应该用数组,还是链表还有一些不同意见对吧?
If you're not on the list, go to the East Side and go to a bar there.
如果你榜上无名,就请去东城区的酒吧。
By calling it canon,we're saying there's an actual list that a religious body adheres to, with books that are either in or books that are not in.
正典里有一系列书目,它们为宗教团体所支持,有些书被列入,有些书则被排斥。
But what you should be able to do is take a look at a list of answers for what we're saying z effective might be, and determining which ones are possible versus which ones are not possible.
但是你们应该能够做到的,是看一下这个可能的,有效电荷量的答案列表,并且确定哪些是可能的,哪些是不可能的。
So, whether or not the email is addressed specifically to you in like the two field or if maybe you were BCC'd or it's a big email list of which you're just part, that could signify that this is in fact useful for you.
所以,不管这个邮件是不是,单独发给你的,或者这个邮件有一个大的邮件列表,而你正在其中,其实这也暗示了,这个邮件对你是有用的。
As I keep moving down, that part gets smaller, it's not always the initial length of the list, and you're right. But if you do the sums, or if you want to think of it this way, if you think about this more generally, it's always on average at least the length of the list.
等等,随着移动,剩下的部分越来越小,并不是初始那么长了,如果你算一算,或者你这么想,你考虑更一般的情况,平均下来至少是列表的长度。
Now we're not, of course, surprised by Paul's list of the virtues.
现在我们当然没有为保罗列出的美德名单而惊讶。
If you look at the list of the richest people, they're all connected to finance, right?
如果你看一下财富排行榜的话,他们都与金融有或多或少的联系,对吧
We're going to go down the whole list.
我们会顺全部的名单。
There's a partial list that's shown here, starting the top of the list with smallpox, and that's what we're going to spend most of the time talking about today.
这是列表的一部分,表上第一个是天花疫苗,今天我们要用大部分时间讨论它
The teaching fellows have already sent you contact information and a list of the sort of tasks that they're going to be coordinating, but these are all graduate students in psychology and they'll be assisted by several people working with me at the Rudd Center, and all together we have a really terrific team.
几位助教已经把他们的联系方式,和任务清单发给了你们,到时候将由他们协调研究安排,他们都是心理学的研究生,我在路德中心的,几位同事也会协助他们,我们是个非常棒的团队
The question we're asking is, "Is there a good reason to add to our list of things there are?
我们的问题是,有没有一个很好的理由,让我们往已写有东西的清单上再添上几笔
Chris, you're on this list somewhere.
克里斯,你好像在这个名录里
It's very chic. It's very beautiful, and it's very... if you are on a list, you're in.
很时髦,很美,很……如果你榜上有名,就请进,
I would expect, whether you're a Red Sox fan or not, you to be able to look at a list of different pitchers and their average velocity for their fastball, and tell me who has the longest or the shortest wavelength.
无论你是否是一个红袜队球迷,我预想你会看到一系列,不同的投手和他们,投出快球的平均速度,告诉我谁有最长的,或者最短的波长。
Then the next thing in the loop, we're going to enter a nested loop and say for every college in the list e, we're going to print the name of the college.
循环中的第二件事,是进入一个嵌套循环,这个嵌套循环将数组中的,大学名字显示出来。
And that's like kind of hoping that the element you're searching for is the first in the list and the last in the list. Maybe.
也就是希望要找的元素,在数组的头部或者尾部,情况可能是这样的。
You find some way of systematically going through the list. Yet, I often see people, when they're debugging, proceeding at what, to me, looks almost like a random fashion of looking for the bug.
是不是目标元素,我们有一种系统化的,遍历数组的方法,然后我经常看到,有些人调试的时候。
One of them was Bear Stearns so I don't know whether they're still on the list maybe they are maybe they're not; we might be down to nineteen.
其中一家是贝尔斯登,所以我不知道,它是否还在那名单上,也许在,也许不在了;,所以我们也许可以说名单上有十九家。
We're going to call binary search, it's going to take the list to search and the element, but it's also going to say, here's the first part of the list, and there's the last part of the list, Well, it checks to see, is it bigger than two?
我们将要调用这个二分查找,它将会在列表里面搜索元素,假定这里是,列表的第一个元素,那里是列表的最后一个元素,代码内部到底做了什么?
But they're accountable and we can list all possible values when they're discrete and form a probability weighted average of the outcomes.
但随机变量是离散的话,我们可以把所有的可能值列出来,然后算出加权平均值
Again. Basic premise of binary search, or at least we set it up was, imagine I have a sorted list of elements. We get, in a second, to how we're going to get them sorted, and I want to know, is a particular element in that list..
好,二分查找的基本前提,或者是我们建立二分查找的基础,我们已经有了一个排好序的元素列表,我们就需要知道如何来快速的排序,如何从列表中找到特定的元素。
That's where you're just asked over a period of time, how often you eat this list of foods and you're given a very long list of foods.
正如同你们刚才问的,你多久吃一次这些食物,你有一个很长的食物列表
I'm going to print here the list if we go into it, and print of the when we're done and then just return that.
注意接下我来我要做的事,运行到这里时会打印列表,并且当处理完成后会打印返回的列表。
If we could do sort, then we saw, if we amortized the cost, that searching is a lot more efficient if we're searching a sorted list.
如果我们可以做排序,然后我们可以看到,如果我们分摊开支,在有序列表中搜索将会变得更高效。
STUDENT: So you're adding a list to a list?
学生:那么您是把一个数组?
Basic idea, before I even look at the code, is pretty simple. If I've got a list that is sorted, in let's call it, just in increasing order, and I haven't said what's in the list, could be numbers, could be other things, for now, we're going to just assume they're integers.
我们可以说基本的思想是很简单的,如果我有一个排好序的数组,让我们认为这个数组是递增的吧,我并没说数组里元素是什么,可能是数字,也可能是其他的东西,现在我们假设是integer类型的数字吧,最简单的方式就是这么做了:
应用推荐