So we work very closely with students not so much about what they want to study, but more about what problem are you trying to solve."
VOA: special.2009.09.24
So I'm going to solve this by enumerate and check, which is an example of what's called a brute-force algorithm.
你懂的,所以我得靠列举和检验来解决这个问题,这就是我们说的穷举算法。
And sometimes what we do, what we want to do is have them solve problems before problems get to be too big.
所以我们做的这些,就是为了在问题发生之前就解决了。
Now, this is a pretty familiar widget of little gadget that you might see on most websites today, but my God, what an uninteresting problem to solve ourselves.
这是一个大家都很熟悉的小工具,现在在大多数的网站上都可以看到,天哪,如果我们自己解决这样的问题那将是多么无趣!
So you know from algebra I can't actually solve this. There may be multiple solutions to this. What would I have to do to change my code? And the answer is fortunately not a lot.
我解不出来方程,可能会有多组答案,我需要怎样修改我的代码呢?,很幸运的,答案是不用修改很多。
This outburst allows Milton to solve what may have seemed up to this point an insoluble conflict: the insoluble conflict between the two meanings of the word vocation that we've been exploring.
这种感情的迸发使得弥尔顿能够解决,一些难以解决的争端:,这种处在天命和才能两个释义之间的,进退两难的争端。
The strategy then often is to figure out how, what sort of program can solve these problems and then we go on to ask, "How could this program be instantiated in the physical brain?"
心理学家们通常要先弄清,什么样的程序可以解决这些问题,然后我们会接着问到,"这个程序在我们的生理大脑中,是如何进行编译的"
So what you're going to do on the homework assignment is solve out this market.
你们家庭作业要做的,就是解开这个市场
We can also talk about it in terms of if we want to solve, if we, for example, we want to find out what that initial energy was, we can just rearrange our equation, or we can look at this here where the initial energy is equal to kinetic energy plus the work function.
初始能量是多少,也可以,写成另一种形式,我们可以把方程变形,或者我们看这里,初始能量等于,动能加功函数。
What this basically means is, you're given some problem to solve, that you've never seen before.
我们还会再讲讲这些内容,最基本的意思就是你有一个问题要处理。
All right, this is what's called a recurrence relation, there are actually cool ways to solve them. We can kind of eyeball it.
好,这就是所谓的递归关系,也就是解决问题的相当好的办法,我们可以来看看。
So what can we do to solve this?
来解决这个问题,我们能怎么做?
OK. Binary search is perhaps the simplest of the divide and conquer algorithms, and what does that mean? It says, in order to solve a problem, cut it down to a smaller problem and try and solve that one.
好了,二分搜索也许是,最简单的分治算法,这意味着什么?,也就是说,为了解决一个问题,把它切割成小的问题,然后再来一个个解决。
And what it was designed to do, was to solve that specific problem.
这就是它被设计出来的目的,用于解决某种专门的问题。
That gets us to the smart thief. Why is this thief smart? Because she took 600. And she learned 600 that in fact there is a good way to solve this problem. And that's what we're going to talk about next. And that's something called dynamic programming.
现在我们要当聪明的贼,这个贼为什么聪明呢?,因为它选择了,它知道这事实上是解决这个问题的好方法,这就是我们接下来要讲的,也就是动态编程。
We don't always want to go and solve the Schrodinger equation, and in fact, once we start talking about molecules, I can imagine none of you, as much as you love math or physics, want to be trying to solve this Schrodinger equation in that case either. So, what Lewis structures allow us to do is over 90% of the time be correct in terms of figuring out what the electron configuration is.
我们并不想每次都去解薛定谔方程,而且实际上,一旦我们开始讨论分子,我可以想象,你们中没有一个人,不管你有多么热爱数学或物理,会想去解这种情况下的薛定谔方程,总之,路易斯结构能让我们,有超过,90%,的概率判断出正确的,电子排布。
So, let's say we start off at the distance being ten angstroms. We can plug that into this differential equation that we'll have and solve it and what we find out is that r actually goes to zero at a time that's equal to 10 to the negative 10 seconds.
也就大约是这么多,所以我们取初始值10埃,我们把它代入到,这个微分方程解它,可以发现,r在10的,负10次方秒内就衰减到零了。
So the best response for Player 1, as a function of what Player 2 chooses, q2, is just equal to the q1 hat in this expression and if I solve that out carefully, I will no doubt make a mistake, but let's try it.
这个就是参与人1的最佳对策,它是参与人2策略q2的一个函数,它和之前的q1帽那个表达式是相等的,虽然我是很仔细地计算的,还是有可能算错的,我来验证一下
For those perhaps familiar with some of the jargon do we introduce what we call link lists and hash tables and tries, increasingly sophisticated data structures, that allow us to solve problems that are much bigger and much more interesting than the very familiar one that we started with here.
那些对编程的术语较熟悉的同学,我们会教授,链接列表,哈希表,以及日益复杂的数据结构,以便帮助我们解决其他的,比现在所学的更大也更有趣的问题。
But I don't have to know, inside of Barnyard, what the values are used inside of solve.
但是我不用知道,在Barnyard内部。
应用推荐