On second thought I do like to brag 'Cause I'm mighty proud of That Ragged Old Flag."
VOA: special.2010.07.02
But it grows pretty rapidly, as n goes up, and I'm going to show you an example in a second.
解决问题需要的时间会急剧增长,一会儿我会让大家看个例子的,我想大家注意的还是。
and then an intensive course. Now I'm in my second year.
然后上了密集课程。现在我是大二了。
I'm Shirley Griffith. Listen again next week to the second part of the story of the Mercury program that took the first American astronauts into space.
VOA: special.2009.06.10
I'm going to repeat this a second time, because it's important. These local bindings do not affect any global bindings.
因为这非常重要,这些本地绑定,并不影响全局绑定。
As I said earlier, that's an action plan, I'm certainly not going to second guess there are many action plan.
就像我刚才所说,这是一个行动计划,我当然不会去质疑这项计划,虽然说我们已经有很多的行动,计划。
But what I'm assigning to you is the second edition, which came out in 2005, pretty much at the peak of the housing market.
但是我指定你们去读的,是2005年出的第二版,那时候房地产市场正位于高点
But this happens to be completely legitimate, so I'm going to assume it's true and I'll maybe take a second explaination why it's legitimate.
但这里所说的情况是完全合理的,所以我先假设这是对的,待会儿再进一步解释为什么合理
I'm sixty-four years old and I haven't had one second of genius in my entire life.
我已经六十四岁了,这辈子都没有哪怕一秒钟灵光乍现的时候
So if we differentiate this object, I'm gonna find a first order condition in a second.
想要求它的导数,先让我想想一阶条件
I'm leaning to the second one... You're leaning toward the second one.
我比较倾向第二个说法。,你倾向第二个说法。
But really, the computer's just so fast I'm drawing the same string with just a slightly different number again and again after going to sleep one second at a time.
但是真实地,这个计算机到现在为止,我一次又一次用稍微不同的数字,绘画了相同的字符串,在睡眠1秒钟之后。
The reason I'm going to show you this flow chart, I'm going to do one other example in a second, but I want to show you a comparison.
我稍后还会给大家讲另外一个例子,我给大家看这个流程图的原因,是我想给大家一个对比。
I'm thinking about a problem, I'm going to show you an example in a second, first thing I'm going to do is say, what is the thing that's going to change every time I run through the same set of code?
我要解决一个问题,我马上会让大家看一个例子,第一件我要做的事情就是,弄明白每次运行同样的指令集时,每次都会改变的东西是什么?
I'm going to add to it in a second, but I want to build up to this.
关键词“类“在这里,然后我要命名这个类。
And secondly, if I'm successful in my teaching I will accomplish this second aim here.
第二,如果我的教学目的达到了,我就会实现第二个目标
The second class is the most popular application of what I'm doing now.
第二类的问题是我现在所做的最常见的应用
OK. Now, having said that, and I've actually got a subtlety I'm going to come back to in a second, there ought to be a better way to do this. OK?
我们已经明白了一些,一会儿要讲的微妙之处,应该有更好的方法对不对?,应该有更好的思路的?
And I'm going to show you an example in a 1 second, just to drive this home, but notice the characteristics. In the first two cases, the problem reduced by 1 at each step.
在前面两个例子里,每一部问题的规模缩小了,不管是迭代的还是递归的,这表明这个问题的复杂性可能是线性的。
I want to abstract that. And the abstraction you see, right here. I'm going to highlight it for a second so you can see it. I want you to look at it on the handout as well.
我需要进行抽象,这个抽象就在这儿,我把它强调给你们看看,我希望你也能看看讲义里的这部分内容。
Need to get the base in. Second thing I want to do, I need to get the height, so I'm going to input a value for the height, also as a float, a floating point.
也就是输入底的值,第二件我想要做的,事情就是得到三角形的高,因此我会输入一个值作为三角形的高,同样也是一个浮点数。
It's a good sign that this is logarithmic, and I'm going to come back in a second to why logs are a great thing.
为什么对数级复杂度是个好事情,让我们再来看一个算法,噢,抱歉是让我们再来看两个算法。
Now let me do it a second time to show you that -- I'm saying this poorly.
还不至于如此呢,现在让我再做一次给你们看。
Thank you. Hold on to that thought for second, I'm going to come back to it.
我再来回到问题上,并不是假定我在搜索。
So I'm going to now do a second class of problems.
现在我要开始讨论另一类问题
Rather then drawing two different tables like this, what I'm going to do is I'm going to take the second table and super-impose it on top of the first table.
与其画两个不同的表格,不如把第二个表格的内容插入到,第一个表中
So I'm going to use this row, I think, everyone in this row stand up a second, and this row stand up, this is the row of potential voters.
就选这排吧,这排的同学站起来一下,这排站起来,这排是潜在选民
You try to design actually I'm going to come back to that in a second. It's like you're trying to use a hash function that spread things out pretty evenly. But the places you store into in those lists may have to themselves have a small list in there, and when you go to check something, you may have to do a linear search through the elements in that list.
你尝试着去设计,实际上过会儿我会回头讲解这个问题,类似于你需要用一个哈希函数,非常平均的将物体分发出去,但是在列表中你数据,映射到的地方可能会有自己的一小段列表,当你回头查找数据的时候,你可能需要在那一小段列表中做线性查找。
Meaning, I'm just going to write a little loop that does that. All right, so let's go back to our code. That's right, let me pull this over a little bit, so I can see it. And what I'd like you to look at, I'm going to highlight it just for a second here, is those two pieces of code.
意思就是我只需,写一个小循环就可以了,让我们回到代码,让我们向下拉一点,我才看得见,我希望你看看这里。
The oboe may have the seventh partial very strong and the third partial very strong whereas the trumpet-- I'm just making all of this up of course-- the trumpet may have the second partial and the fourth partial and the sixth partial.
双簧管的第七泛音,和第三泛音都很强,而小号,我只是为上课需要假设的,小号可能是第二泛音,第四和第六泛音比较强
应用推荐