Man, you're going to really make me work here, I have no idea if I can get it that far, ah your friend will help you out. Thank you.
我不知道我能不能扔那么远,你的朋友会帮你的,谢谢!,那位同学完全正确。
Ah, me and my group of friends are going to go skate that spot."
啊,我和我的朋友要过去在那里滑。
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?
排除元素,这是讲得通的,因为我总是找比中点大的元素,那让我们挑一个同,中点之间的元素吧,我再来试试,谁给我个数字吧,我知道你们想给我些其他东西?
But I can also ask for parts of this. So I can, for example, say give me the first element of s1 string 1, s 1. Ah, that's exactly what we would have thought if this was represented as an ordered sequence of things.
然后返回一个长字符串,我也可以,取字符串的一部分,例如,我可以要求返回给我字符串,的第一个元素,啊,这证明我们之前,认为的它是一个有序的字符序列的想法。
All right. If you flip to the second side of your handout, you'll see that I have a piece of code there, that does this-- let me, ah, I didn't want to do that, let me back up slightly- this is the algorithm called search.
你可以看到实现这个功能的代码,让我,额,我不想这么做,让我们回来一点,这就是命名为search的算法-,我们来看看这个算法吧。
And notice, by the way, if I do that, and I type sqrt and open the paren, ah-ha! It shows me what the creator, in this case actually I stole this from John so what Professor Guttag put up as his specification for this piece of code.
它需要什么养的输入和其它我想传达的信息,如果我这么做了,我将会到这里打上sqrt并且加上括号,啊哈!这里告诉我这段程序的创建者,事实上这是我是从约翰那里偷来的,所以也就是Guttag教授在它的。
应用推荐