Thus far, for us it's been testing individual functions. Later in the term we'll talk about unit testing of classes.
至今为止,我们用到单元测试的地方,就是测试每个单独的方法,在后面我们会讲到类的单元测试。
I think there are a lot of steps that we can and should take towards mitigating it,
我认为我们有许多方法来减缓气候变暖,而且我们也必须这么做。
This is more well-established question of nurture, in terms of moving away from the way we normally teach to what is clearly more effective way.
这更是一种,培养方法问题,从我们平常的教学方法,转移到,明确的更有效的方法。
So we're constantly looking at, "Hey, if we were redoing this thing from the start, there's a whole bunch of things we would do differently.
所以我们不停地思考,如果从头来做这件事的话,很多事我们的方法会有所不同。
And the basic idea was that we had some sort of a line and we knew the answer was somewhere between this point and this point.
去学习的二分搜索是有联系的,这种方法的基础思想,是我们有一个线性的序集,我们也明白答案在其中的某一段区间。
Let's see if we could sing it together because we're going to do this in a different way in a second.
那我们试试把它唱出来吧,一会我们就要换一种方法了。
It's not about marriage, and marriage will still seem quite a ways off, I fear, when you read Lycidas, but we will be marking the transition to the poetry of marriage soon enough.
那不是讲婚姻的,我担心当你们读《利西亚斯》的时候,婚姻仍是一个走出的方法,但是我们,将很快标记诗篇中关于婚姻的转变。
On the other hand, we know it's... The math is going to be the same, so let's cheat.
计算方法是类似的,我们就偷懒不算了
If we're going to have a way to decide between these two theories, it seems as though we need some other kind of arguments.
如果我们非要找个方法在两个理论之间取舍,那看来我们需要别的论据。
Each one of those electrodes allows us to measure, we plot voltage verses time, ? this signal coming from the tip of that electrode. Ok?
我们通过每个这样的电极都可以设计一种测量方法,我们设计电压比时间,这一信号源于电极的一端,对吧?
So, the fact that this was a Greek script that was available in the Mycenaean Period tells us very confidently that the Mycenaeans were Greeks.
所以,这个在迈锡尼时期出现的,希腊语书写方法,让我们有足够理由说,迈锡尼人就是希腊人
We have to invent a process, a chemical extraction process that will make the production of magnesium cheaper so that we will have the opportunity to avail ourselves of energy-efficient materials.
我们必须发明出一种方法,一种化学提炼方法,能够使生产镁变得更便宜,那样我们才有机会,让我们自己用上高效能的材料。
Because that they think the means we should employ are unilateral and militaty.
他们认为,我们采用的方法应该是,单方面和武力的。
You can do that, but we like to get the answer the way this gentleman described it, because we like to get an answer more readily than by doing the mundane work.
你可以那样做,但是我们喜欢,用这位同学所说的方法来得到结果,因为我们喜欢更简洁地获得结果,而不是通过繁琐的计算
It's important to understand the ancestral diet to see why we've evolved, the biological reasons we are the humans we are today, but it also helps instruct us about what we might happen to do.
了解祖先的饮食结构非常重要,它帮助我们理解人类为何演化,找出造成我们现状的生物学成因,这也有助于我们找到应对方法
So, that means we have to devise ways of sharing with people that we've never met, that we don't care about--I mean, maybe we care about everybody, but we don't have any particular emotional ties to them-- and they're very different people.
那意味着我们必须设计一些方法,使我们与素未谋面的,并不亲近的人们一同分摊风险,也许我们非常博爱,但未必对所有人都会怀有特殊情感-,分摊者应该是与我们非常不同的人。
I mean unlike a lot of the courses here and at universities, we really do take a much more individualistic approach and that is to say at the end of the day do we consider both upward trending, both your initial experience and also how you approach the course's projects throughout the course of the semester.
我不希望像其他很多课程或在大学中,我们将会采取更个性的方法,也就是说在当天结束前,我们会同时考虑课程进度,考虑你开始的情况,以及如何进行整个学期的学习,也包括如何通过这门课,来帮助你们完成本学期的课程。
Also, what's the energy per photon of this red laser pointer, and then it's also worth trying a calculation dealing with intensity. So let's also try calculating the numbers of photons that would be emitted by this laser pointer, if, for example, we were to use it for 60 seconds and this were a one milliwatt laser.
同样,红色激光笔的,每个光子能量是多少,这也值得用处理强度的方法计算一下,让我们也计算一下,有多少光子会从这个激光笔射出,举个例子,如果我们使用它持续60秒,这里会有一毫瓦的激光。
Usually what I want to talk about is what's the smallest size class in which this function grows? With all of that, what that says b is that this we would write is order b.
通常我们想要的是,方法增长时最贴切的描述,也就是说,在这个问题上,算法关于。
OK. So to do this, we're going to have to do a couple of things. All right, the first one is, what do we mean by input size?
好,为了实现这种方法我们,有些事情要做,第一件事情就是,当我们说到输入的大小的时候代表了什么呢?
Do they still teach the scientific method in high school? Yes, alright good.
好不错,美国教育系统一样也没少,那么科学方法学教会我们该怎么做呢?
The way we solved that Cournot model was we did three kinds of things.
我们通过三个方法,解决那个古诺模型
And we'll need a tiebreaking assumption and we'll do the obvious tiebreak.
我们需要假设一个解决平局的方法,我们确实也需要解决平局问题
We prove things in mathematics that have never been proven before or we find new ways to prove these theorems or what have you and we can be creative.
我们用数学去证明从未被证明过的事物,我们探寻新的方法去证明那些定理,或其他诸如此类,总之,我们具有创造力
We write specifications of our functions.
此外我们还为方法写了说明。
So you can actually say, how do I know which methods are associated with the class? For that, we can call dir. And what it does, is it gives me back a listing of all the things, dir all the methods, that are associated with it.
我们开始建立类了,我们得到了这些方法,因此实际上你可以说,我怎么知道,哪些方法是关联与这些类的?,为了解决这个问题,我们可以调用,这个方法的作用。
It's in here to--intended to do two things: One to show you something about the method that we will be using in here and two, to show you something of the level of this course-- the level of the course.
这个测试的目的是,第一,向你展示一些我们的教学方法,第二,告诉你本课程所处的水平,本课程的水平
And it's a topic I want to pick up on today, we're going to do for the next few lectures, and it's a topic I want to spend some time on because this idea of capturing data and methods, the term we're going to use for it, but data and functions that belong to that data, things that can be used to manipulate them, is a really powerful one.
我们会在今天讲这个话题,在后面几节课还会讲这个,这是个我愿意花点时间,在上面的话题因为这是个,捕获数据和方法的思想,我们用这个术语来形容它,数据中包括了数据和函数等,能用来操作它们的东西,真的是很强大的工具,我们真正要讲的东西是,我们要学会如何把信息。
So small silly little exercise but I'm hoping that you've sort of seen how by being patient.
这就是我们关于小Silly方法,做的一点联系了,我还是希望大家,能够耐心点来发现问题。
应用推荐