All right, having said that, let's do some examples. I'm going to show you a sequence of algorithms, they're mostly simple algorithms, that's OK.
好,让我们开始看例子吧,我将会给大家讲,一系列的算法,这些都是挺简单的算法。
So if you want a real milk to drink, go to the cow and tell, "Give me fresh milk."
所以,如果你想喝真正的牛奶了,就去跟牛说,“给我点儿新鲜牛奶吧。”
OK. All right, let me show you one other tool that I want to use. Which is, I've written that piece of code, I ought to check it. Well, I could just run it, but another useful thing to do is, I'm, especially as I want to debug these things, is to simulate that code.
好,那么,让我给大家讲下,我想用的另外一个工具吧,也就是,我已经写好了这一块代码,我应该去检查检查,那么我可以去运行它,但是特别是当我想要调试代码的时候。
Remember when I showed you that picture of cells attached to plastic a few minutes ago; I said those were fibroblasts that were growing on a culture dish.
还记得我几分钟前我给你们看的,细胞黏附在塑料片上的图片吧,我说过那是,生长在培养皿中的成纤维细胞
So literary can sometimes be very abstract like mathematics, and therefore, if someone says make me a movie, showing me what the square of minus two means that is going to be a challenge.
文学有时候也可以很抽象,像数学,因此如果有人说,给我做一部电影吧,给我展示一下负二的平方,那将是一个挑战。
I am going to ask you to give me each day-- or rather I'm going to give you, whoever signs the deal with me, 1000 dollars every single day for the next 30 days.
我要求你们每天给我…,还是我给你们吧,我给每个和我作交易的人,每天一千美元,连给30天。
Yes, in back Yes Student: Dancing bears Professor Paul Bloom: Dancing bears Okay I got to write your name down-- ... report you to health - No Dancing bears, very good ? Anybody else?
好,后面那一位,跳舞的熊,跳舞的熊,好吧,我要记下你的名字-,把你汇报给精神健康,开玩笑,跳舞的熊,非常好,还有吗?
And this movie, i don't know if I would recommend it that much, it's... Perhaps I'm being too pC, but I'm not convinced that for the modern woman, hanging around waiting for your prince to come is really a good strategy.
这部电影我真不知道怎么推荐给大家,也许我已经老了吧,但我课不觉得现代的女性四处游荡,等待你的白马王子出现是个好策略
In this case, it's cutting up from the bottom end, which makes sense because the thing I'm looking for is always bigger than the midpoint and then, I don't know, let's pick something in between. Somebody want-- ah, I keep doing that-- somebody like to give me a number?
排除元素,这是讲得通的,因为我总是找比中点大的元素,那让我们挑一个同,中点之间的元素吧,我再来试试,谁给我个数字吧,我知道你们想给我些其他东西?
I guess it's not macho enough, John, to just, you know, you know, go off and do things by hand, you ought to just run them, but it's a valuable tool to get into, so let me do that here.
我认为这不太男人了,John,你知道的,他们仅仅是认为比起用手做来,更应该直接去运行程序,但是这确实是调试代码的非常有价值的工具,让我在这里给大家演示下吧。
Locally x got bound to 3, 3 I added 1 to it, whoop-dee-doo, 4 I get back a 4. But what's the value of x?
这是我想要的对吧?,在局部程序中x被赋值为,我给它加了1,我得到了?
应用推荐