I don't know if I'm repeating this but he was at his dentist I didn't tell you this.
我不清楚我是否在重复这个,但是他当时是在他牙医的诊所-我没有告诉你吧。
I mean, you'll get some people who look very preppy and really clean and tidy, and well-presented.
我的意思是,你能看到一些人看起来非常干净整洁,表现出色。
And it's worse still-- Of course,if you don't share the intuitions that I just-- I was being honest with you.
更糟的是-,如果你跟我有同样的直觉-,我说的都是实话。
So this isn't-- OK. And you're also close. It's going to be linear but how many times do I go through this?
每次能丢掉一半,所以这里不是-,好的,但你也很接近了,他可能是线性的,但我得遍历多少次呢?
So I'm standing in for you, right, if you are the subsequent reader? -Yes.
所以说我也扮演着你的角色,假设你是读者,-不错。
It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?
结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?
But if you're a freedman you're-- the other thing I should tell you is that in Roman law if you're manumitted as a slave, you're made free, if you're manumitted in the normal way they did it, that makes you a Roman citizen, if your owner was a Roman citizen.
但如果你是自由人-,有一点我得解释一下,罗马法律规定,如果奴隶被释放了,如果是正常方法被释放的,他就会成为罗马公民,前提是他的主人是罗马公民。
I'm a drop in the bucket and, you know, well -- You might lose the vote.
我那一票只是沧海一粟-,你可能是少数派。
I mean, you certainly could make a fortune buying them I mean, I'm certainly not telling you it's not going to work, but I think it's all risk-reward.
我的意思是,你很可能会通过它们赚很多钱,我是说,我肯定不会告诉你说,那一点也行不通,但我觉得高风险才有高回报。
What I want to talk to-- Okay, except for you.
我想说的是…,好的,你除外。
Then you guys know, you just told me, acceleration is -9.8, We call it "minus" because it's accelerating down and up was taken to be the positive direction.
然后你们都知道,你告诉我,加速度是-9.8,我们取负号是因为加速度方向朝下,而正方向为竖直向上
Don't you-- it's my fault, not yours.
不要,是我的错,不是你的
Neither it is a negative sum game-- it's not that my happiness takes away from other people's happiness which will be a negative sum game: if I have more, you'll necessarily have less.
也不是负和游戏-,我的快乐不是从别人那里夺来,那将是负和游戏:,我有更多,你一定更少。
And the interesting thing is, I think you can see-- you can get a feel for both possible answers here.
有趣的是,我想你会发现-,你觉得两种答案都有可能。
The position that says, you should always have the fact of your mortality forever before your mind's eye-- I think that's misguided.
那种认为,你应该一直永远想着,你必有一死的事实的观点-,我认为那是有误导的。
If I look for, say, minus 1, you might go, gee, wait a minute, if I was just doing linear search, I would've known right away that minus one wasn't in this list, because it's sorted and it's smaller than the first elements.
如果我要查找-1,你可能要怒了,呵呵,等一等,如果我用的是线性查找,我不会知道-1不在这个列表中,但是列表是排好序的,1又比第一个元素小。
I think one of the classic ones for strings is called the Rabin-Karp algorithm. And it's simply the same idea that you have a mapping from your import into a set of integers.
我认为字符串哈希,最经典的是Rabin-Karp算法,它只是简单的相同概念,你有一个映射关系将你的输入映射成一组数字。
And now you've driven me crazy and make me-- Linda deluded me into thinking that I'm Linda.
现在你还要把我逼疯-,让我认为自己是。
And your roommate says, "Inside the envelope are facts about this milkshake that if--I promise you it is indeed the case-- if you knew these facts, " you would not drink the milkshake anymore."
而你的室友说,“在信封里面是关于奶昔的事实,如果,我保证里面是事实-,你知道了这些事实,你就不会再喝奶昔了“
Part of the thrill has got to be-- or so it seems to me-- part of the thrill has got to be the very fact that they now have an increased risk of death.
有部分刺激应该是-,或者在我看来-,其中部分刺激来源于,你死亡的风险增加了。
.. So that makes me feel like I have to take the - You want to throw the book at him when he lacks remorse or a sense of having done anything wrong.
让我觉得我必须得-,你想严惩他是吗,因为他毫无悔意,或不认为自己做错事。
- And then I divide by an int -- that's okay because so long as you have a float involved at some point early on, you're okay.
然后我除以一个整型数-,那是可以的因为现在为止,我们在之前已经,引入了一个浮点数,你是对的。
And the idea is your superego-- remember, your superego is stupid.
大家记住,你的超我是盲目的。
I mean if you--I own quite a few companies.
我的意思是--如果你--我掌控着几个公司。
I'm taking advantage of the fact that start is going to be a point, and I'm just directly saying, John give me your x-value.
我利用了开始是一个点这个事实,然后我就直接说,返回给我你的x值,因此我不知道。
I print out -- and this is only wrapping - because of the big font -- I print out, "I demand that you give me a positive integer."
我打印出来--这个字符相互覆盖了,因为用的是大字体-,我打印:“我需要你给我一个正整数“
If I'm American and you're from another country, I will view myself--this is a very--kind of obvious finding-- my obligations to you will be seen as less than if you were another American.
如果我是美国人,你是外国人,显而易见,我会觉得-,我对你的道义会少于,你是一个美国人的情况。
I think what I want to do-- And sometimes that explanation is accurate, but the ones that are interesting here are the ones where you misattribute the cause of the arousal-- you make a mistake and think it's love when it might be due to something else.
我想做的是-,有时你的解释是正确的,但是有趣的解释是,是那些你犯了张冠李戴的错误-,你错误了认为是爱,而实际可能是其他的原因。
- This one was among our favorite-- "I was you at the CS50 Fair; I went to your station ; to see your program, you were my best friend; but when our hands touched as you handed me a Smiley face sticker, my heart skipped a beat.
这是我们最喜欢的-,“我和你一样在CS50大会上,我到你的网站看你的程序,你是我最好的朋友;,但是当我们牵手的时候,你传给我一张笑脸贴纸,我的心跳加速“
LS And what very often happens if you do an LS in your account, to list your files, there's a whole lot of stuff in here at the moment -- and I don't have it here - but what you'll often see -- I'll just fake this demo -- is a file called core.
经常发生的是,如果你用你的账号做一个,来列出你的文件,此刻这里有一大堆元素,-它不在这里,但你们将经常看到--我将篡改这个演示-,是一个叫做core的文件。
应用推荐