Yeah. So the answer, in case you didn't hear it, was, again, if I'm a gambling person, I could start like a way down here.
答案是,如果我是一个赌徒,我可以再这边开始对不对?,如果我在赌博,我会说,嘿。
In terms of primitive data, what we saw were two kinds: Right?
在基础数据方面,我们上节课学了两种类型对不对?
Now,it's very tempting at this point to say,look,of course Nothing could be easier ? Just imagine being in heaven forever,right?
现在我很想说,当然了,这没什么难的,只要想象永远在天堂就行了对不对?
He says it's a good idea for people to save for their retirement during their earning years but it's wrong.
他说,让人们在能挣钱的年头为退休而攒钱,社保的初衷是好的,但这样做不对。
The technical expression of that in philosophy is common knowledge, which I can never spell, so I'm going to wing it.
在哲学上叫做共同知识,我不知道拼写对不对,我看一下
It seems to me that Princeton University had a reputation nationally for a country club environment whether that was ever legitimate, which I don't think so.
我觉得普林斯顿大学,在国内都被称为有着乡村俱乐部的氛围,先不管这么说对不对,我本人是持否定意见。
And the claim that psychoanalysis proves itself by being- by its tremendous success in curing mental illness is also almost certainly not true.
对于精神分析,通过在治疗心理疾病方面获得的巨大成功,证明了其理论的正确性,这个观点当然也是不对的。
People have long thought that these kinds of things happen only in Japan but that's not true at all; it's happening right now in the U.S.
人们一直认为,这种事情只会在日本发生,但这种想法一点儿也不对;,它现在正发生在美国。
No, the discussion sections are Tuesday afternoon from 1:00-2:00, and Tuesday night from 8:00-10:00, and the website has got all the details on when and where. Yes?
不对,讨论的时间是在每周二的下午,一点到两点,和周二晚上,八点到十点,网上有时间地点的详细信息,你说
It has the potential under peace time conditons to be what former Minister of the Interior, of the Economy, excuese me, said that a self-supporting dignifies poor country.
在和平的环境下,还是有潜力,成为前内务大臣,不对,是经济部长,所说的,自给自足能让一个穷国家有尊严。
I'm sorry, that's not right. I don't want to get this wrong, 25,051, and we learn that in a Cretan village, two nurses, one girl, and one boy are employed.
对不起,不对,我不是有意犯错,两万五千零五十一头,我们了解到在一个克里特的村子,两名护士,一个女孩和一个男孩被雇佣了
So the first thing we'll do is, we'll print the element, in this case it will be a list right? Because it's a list with two lists in it.
因此这儿我们要做的第一件事,就是要显示元素,在这儿元素就是数组了对不对?,因为这个数组包含了两个数组。
On the other hand, if the value I'm looking for here- sorry, the value I'm looking for is smaller than the value I see here, I just need to look here. All right?
如果我的目标数比这个值要小呢?,我就在这边找就对了,对不对?,做完了这一步,我可以在下一步做相同的操作,假设我选中了这一分支?
Then if I'm looking for the square root of something less than 1, I know it will be in my region, right?
如果我要求平方根的数小于,我就知道我们的答案应该,在0-1这个区间了,对不对?
At least, that's how it seems to me, though as I say, there are philosophers that say, "No, no. That's not right.
至少,在我看来行不通,尽管像我说的,有些哲学家说过,不 不 那不对
This is a little file I created, all right, and I'm going to start with a sequence of these things and walk them along, again I invite you to put comments on that handout so that you can follow what we're going to do. All right?
这是我创建的一个小文件,好,然后我回去以一系列这样的事情,开始然后进行下去,我还是想大家都在手册上做一些注释,这样我们就能对将要做的事情,做一个记录了,对不对?
If you, at the end of the semester, haven't agreed with me about this particular claim or that particular claim, so be it.
如果你在这个学期末,还是不对我这个特别的观点持赞同意见,那么顺其自然吧。
It can't be true because there's two ways in which the brain is better than a computer.
这个观点之所以不对,是因为大脑在两个方面上,要优于计算机
And that does two things: bug one, it helps catch bugs in your code, and secondly it often converts it into a more efficient sequence of instructions before you actually go off and run it. All right?
这有两点好处:,第一是可以帮助你发现程序中的,第二是把你的代码,在运行之前,转换为更有效率的指令的集合,对不对?
And we can just extrapolate in a straight line We before saw some examples where I had an algorithm to generate points, and we fit a curve to it, used the curve to predict future points and discovered it was nowhere close.
我们可以干脆用一条直线来描述它,我们之前看到在一些例子中,我用一个算法去生成一些点,然后用一条曲线对它进行拟合,然后用这条曲线来预测未来的点,最后却发现结果完全不对。
And when I do this test, what I want to do, is say I'm going to pick the middle spot, and depending on the test, if I know it's in the upper half, I'm going to set my start at the mid point and the end stays the same, if it's in the front half I'm going to keep the front the same and I'm going to change the endpoint.
如果我知道目标数可能,再比中值点大的区间里,我可能就会把开始点设为中值点,而尾点不变,如果在小的那个区间里,就保持开始点不变而把尾点设为中值点,你们可以看到这儿的代码,就是这么做的,对不对?它是怎么做的?
All right? I mean, I can make money at Harvard Square doing this stuff, right?
对不对?【鼓掌】我意思是,我可以在哈佛广场,靠做这个赚钱对不对?
Well, I could look at the value here, and compare it to the value I'm trying to find, and say the following; if the value I'm looking for is bigger than this value, where do I need to look? Just here.
然后把它和目标数做个比较,然后做出如下的判断:,如果目标值大于这个值;,那么我应该去哪找呢?对,应该在这里,对不对?不可能在那儿。
There's a lecture I've given several times at hospitals, to doctors, on doing diagnosis of complex multi illnesses. And I go through it and almost the same kind of stuff I'm going to talk to you about, about debugging.
一个实验室内的实验,为什么实验不对呢?,我也在医院给医生关于,诊断复杂的多种疾病做过很多讲座,我想了想,那和我给你们讲的,关于调试其实都是一回事。
It still seems wrong in a way that it doesn't seem wrong in the first case to turn, you say.
反正就是不对,而在第一种情况,这样做就是对的,是吧。
So the basic idea was fine, but I failed to satisfy the initial condition that the answer had to be between the lower bound and the upper bound. Right?
因此基础的思想是对的,但是程序没能满足,正确答案在给定的区间内这个条件,对不对?
Good programming style. All right? Things that we ought to do, as you put these pieces together in order to give you really good code.
优秀的编程风格,对不对?,为了得到真正优秀的代码,我们在把代码放到一起的时候。
We're checking the end test and incrementing, actually I was going to, I commented that out for a reason you'll see in a second, but I, normally I would keep this on, which would let me, at each step, see what it's doing. If I ran this, it would print out each step. Which is helping me make sure that it's incrementing the right way.
对不对?进行终结测试然后递增,实际上我要,因为某些你们,马上要明白的原因我把这里注释了,但是我通常会一直这么做,这样能让我看到每一步都做了什么,如果我运行这个程序,它会在每一步都,进行显示,这能帮助我让我确信程序是,在以正确的方式递增。
And I suggest two things, right?
我在这儿的代码干了两件事情对不对?
And remind you that inside of here, I'd better be changing the variable. All right, if that variable that's counting is not changing I'm going to be stuck in an infinite loop, so I ought to that, right, expect somewhere in there, a change of that variable. All right?
我最好改变了计数器的变量值,好,如果计数的变量没有变化的话,我就会被卡在一个无限循环里面,因此我应该【不可闻的声音】,对,在这里的某个地方,改变下计数器的变量,对不对?我要做的最后一件事情就是?
应用推荐