Indeed, to get at that question, the first thing we're going to have to think about is what are we?
事实上,要解决这个问题,我们首先要考虑的是,我们是什么?
they need to be able to talk through that problem with their peers.
他们要学会怎样和同龄人沟通解决问题。
It's just not possible to solve some of these problems by hand and this isn't even a domain that's necessarily into the world of CS but speaks to you the applicability of it all.
手工处理这些问题似乎有些不大可能,但这还不是,计算机科学要解决的主要问题,我们的目的只是为了告诉你它的用途。
OK. I know. It looks boring. But it's a structure of the things I want to think about when I go through trying to take a problem and mapping it into a iterative program.
好,我知道这看起来有点无聊,但是这是我要去以迭代的方式,去解决一个问题采取的,措施的大致结构。
Now, I want to do one concrete problem where you will see how to use these derivatives.
现在我要解决一个具体的问题,从中你会明白如何运用这些导数
These are going to be fairly common-sense definitions, but they're important, and when you get to a problem set, really nailing down what the system is, not more, nor less, in terms of the amount of stuff, that's part of the system, it's going to be often very crucial.
这些是,很常识性的定义,但是很重要,当你要解决问题时,务必要搞清楚系统是什么,它包含多少物质,不能多也不能少,这往往,是非常重要的。
So, the problem we have to solve to help people like MikeIs to find ways to cause those parts of cortex to develop properly when they are children or have them re-learn as adults.
因此,我们要帮助像迈克这样的人解决的问题,就是找到他们在儿童时期使,这些皮层进行发展,或者成年以后再学习的方法。
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 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.
其实没什么的,一但我们证实了我们,试图想要解决的问题,如果把这个问题用术语或行话简化
These are the problems of insurance that we have to deal with.
这些都是我们要解决的问题
So, there is still problems to solve in doing this.
因此,要做到此事还需解决一些问题
and stuff is much more important than doing tons of problems particularly...
比只是解决问题要重要得多……
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?
我要解决一个问题,我马上会让大家看一个例子,第一件我要做的事情就是,弄明白每次运行同样的指令集时,每次都会改变的东西是什么?
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.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
That doesn't solve the problem we had before though Then I'm going to append it, and keep the last change for future use.
这样没有解决我们之前的问题,所以我要给它加上一个值,让上一次的变化能够用到未来的例子中。
So if I try to apply the same logic, well how can I divide and conquer this problem.
如果我想要用同样的逻辑,那么怎样划分,并解决这个问题呢?
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.
如果我想要解决这个问题,这就是我要解决它的方式了,第一件我要做的事情就是要,输入一个浮点数作为三角形的底。
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为偶数,那么我还是要用,来代表解决这个问题需要的步骤数。
We're going to do the same thing here, we're going to chart out a little bit of what should go into actually making this thing work.
我们要去画一个小小的流程图,来指导问题的解决,那么这里是一个很简单的。
So that's the topic that I'd like to address today.
这就是我今天要解决的问题。
Then, here is what we actually do.
然后,这就是我们真正要解决的问题
Well, realize one of the themes in this course and really one of the themes in programming and solving any problem with a machine is going to be really to just take small bites one at a time out of these problems until the end result ultimately is that you've actually bitten off a fairly large fairly interesting problem and in the aggregate, you've actually implemented something pretty sophisticated.
好吧,让我们先想一下这件事带给我们的主题,编程和解决问题的思想,一台机器最开始只会一步一个脚印,沿着要解决的问题向前迈进,直到最终的结果出来,最后你会发现,你已经解决了一个相当大,相当有趣的问题,而这个问题在最初看起来确是相当复杂的。
The second question I want to ask is what's the base case? When do I get down to a problem that's small enough that it's basically trivial to solve? Here it was lists of size one. I could have stopped at lists of size two right. That's an easy comparison.
第二个问题是什么是基础条件?,我要将问题分解到何时才使得问题,小到可以解决的基本问题?,这里是当列表的长度为1有时候,我也可以在长度为2的时候停止分解,那是一个非常简单的对比。
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.
我们马上会讲到为什么要把它们隔离开,脂质双层膜解决了这个问题,而这些自主装结构,就是由磷脂分子组成的
应用推荐