Indeed, to get at that question, the first thing we're going to have to think about is what are we?
事实上,要解决这个问题,我们首先要考虑的是,我们是什么?
We're going to come back to this row and we're going to figure out not just this equilibrium, but all equilibria.
我们要回到这一排,我们将解决不仅这个均衡,而是所有的均衡
Again, same kind of reasoning says, given some value x, I happened to pick a small one here, what's an easy way to do this? Well, let's just start at one. That's my variable I'm going to change and check.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
And so if you choose to elect the hacker edition of this week's problem set the challenge will be to figure out not only how to implement the game but how to implement a solver for the game.
因此,如果你选择这周的应用题目为升级版,那么你将面临的挑战,不仅是如何实现这个游戏,而且,要实现此游戏的解决方法。
So no harm is done, once we've clarified the question that we're trying to ask, if we summarize that question in a bit of a jargon or slogan.
其实没什么的,一但我们证实了我们,试图想要解决的问题,如果把这个问题用术语或行话简化
We'll see why they have to separate that in a minute, but they do that these lipid bi-layers solve that problem for them and they're self-assembled structures from these molecules called phospholipids.
我们马上会讲到为什么要把它们隔离开,脂质双层膜解决了这个问题,而这些自主装结构,就是由磷脂分子组成的
How do we solve this problem?
我们要怎么解决这个问题呢
So if I try to apply the same logic, well how can I divide and conquer this problem.
如果我想要用同样的逻辑,那么怎样划分,并解决这个问题呢?
This is going to turn out to do the trick as you'll find out in your homework assignment.
你们要在家庭作业中,解决这个问题
You want to take a new problem and say, what does this most look like?
当你要解决一个新问题时,你应该想想这个问题看起来和什么最类似?
So if I were to solve this problem, here's the way I would do it. I would say, first thing I want to do, is I want to input a value for the base as a float.
如果我想要解决这个问题,这就是我要解决它的方式了,第一件我要做的事情就是要,输入一个浮点数作为三角形的底。
The algorithm on mine professed to be implementing now is this thing.
这个算法现在要,解决的就是这个问题。
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.
现在我们要当聪明的贼,这个贼为什么聪明呢?,因为它选择了,它知道这事实上是解决这个问题的好方法,这就是我们接下来要讲的,也就是动态编程。
t In the b even case, again I'm going to let t of b be the number of steps I want to go through.
如果b为偶数,那么我还是要用,来代表解决这个问题需要的步骤数。
应用推荐