Now, when we talked about optimization problems in dynamic programming, I said there were two things to look for.
现在,当我们讨论,动态编程中的最优化问题时,我想说有两件事需要注意。
So, I think it's this balance between working very hard and being involved in the greater community, I would say.
所以,一方面要努力学习,一方面要参与大型社会活动,我想,他们需要把握好平衡。
A test suite that will make us feel good about things. For now, I just want you to be aware that you're always doing this balancing act.
测试集呢?一个测试集会让我们的工作,变的舒服多了,现在,我只是想让,大家意识到你们经常需要做这种协调工作。
Because I don't just want it to be me, I want to have there be somebody that's me with my personality.
因为我想要的不只是我的身份,而是需要带有我的人格的人存在。
If we weren't so pressed for time, I kinda wanna see how long we could get away with this before it gets awkward, but that, in fact, is an infinite loop t hat's hopefully deliberate.
如果有时间,我想看看,我们需要花多长时间解决这一问题,事实上,它是我故意,使用的无穷循环。
And, I know I need to come up with four symmetric equi-length bonds, and let's just see, let's draw the structure here.
我想我们需要,4个对称的等长的键,让我们画出CH4的结构。
I have to try to understand what you're saying and I have to refer it to what I want to say, and the circuit of communication between us has to stay open as a result of this mutual and developing understanding of what we're talking about.
我需要试着了解你正在说什么,并且与我想说的话进行联系,我们之间的交流要进行下去,这是我们对于谈论内容的相互发展着的,了解的结果。
All right, so before I begin I just want to say I want to keep this pretty informal so feel free to jump in if you have comments, questions if you disagree with me.
在我开始之前,我想说,不需要那么正式,如果大家有什么见解或者问,如果大家有什么不同意见,希望大家有一些不同的见解。
I get there, by the end of it I'm like "that's what I really need right now."
我到了地方,冥想结束,又想说“这正是我现在需要的“
It takes a while so--but I think we've got it identified.
这需要多花一点时间来找,但我想我们已经辨别出来了。
Now why? When I put this class together, I didn't think to myself, "Ok, so what are the things that I need to introduce ?" in order to please the participants in the class, the students?"
为什么?,当我开这门课程时,我自己没想过,“好的,我需要介绍些什么东西,以便能取悦课程的参与者,这些学生呢“
I thought I still have to work for another 30, 40 years. I need to do something else.
我原本想,我还必须工作三四十年。但我需要做点别的事情。
And it's pretty expensive to do so because I think they know you need to do it.
这样做很贵,因为我想他们知道你需要这么做。
In the long run, we want The Wall Street Journal and so I guess that-- we just have to accept that.
但从长远来说,我们需要《华尔街日报》,所以我想,我们必须得接受
Now to make that happen, it's not adiabatic, right. If I wanted to do that, I'd need a heating element or something to cool, so I could make that temperature change happen, right.
要实现这点,它就不会是绝热的,对吧,如果我想做到这点,我需要一个加热元件或什么制冷的东西,这样我才能让温度变化。
The one we started with-- you need the soul to explain the animation of the body-- that argument, I think, doesn't work.
我们一开始提到的那个观点,你需要灵魂来解释肉体的生命力,我想那个论点并不成立
If I wanted to get full, real division, I should make one of them a float.
如果我想要得到真正的除法答案,我需要把他们之中的一个,变为浮点数类型。
Once you know what pieces to look for, what mental constructs to reach for, can you realize all right I want to make some dancing figures go back and forth, I need to loop this way and loop this way and check if I'm on the edge and so forth.
一旦确定需要查找的部分,想要达到那种层次,你是否意识到,我想做出一些可以来回走动跳舞的人,我需要按这种方式那种方式让它转圈,并检查我是否,到了屏幕的边缘等等。
Because I'm cutting down the problem in half at each time. You're right, but there's something we have to do to add to that, and that's the last thing I want to pick up on.
但是我们还需要强调一点,这是我最后想讲的一点,让我们来看看代码-实际上,让我们先来测试测试吧。
> Well, to get started I guess we're going to need a couple of pointers.
>,呃,我想我们需要,几个指针来开始。
I need a contract that says, here's what I want in terms of things that you're going to take as input, to begin your part of the drama, here's what you're going to produce at the output, and the details of what they do inside are up to them.
这些作家相互沟通进行工作呢?,我需要一封规格说明书,我需要一份合约,上面列出了我想要你做的事,这些是你要再开始时做的输入,这些是你要的输出,细节工作就取决于它们了。
That is, if I want to combine two things together in a particular way, I need to make sure that I give it the kind of operand it expects.
也就是,如果我想以一种特定的方式,把两个东西组合到一块,我需要确定,给了运算符它想要的输入。
I'm given an integer that's a perfect square, and I want to write a little piece of code that's going to find the square root of it. All right so I'm cheating a little, I know it's a perfect square, somebody's given it to me, we'll come back in a second to generalizing it, so what would the steps be that I'd use to walk through it?
完美平方数的整数,我想写一段代码来求这个数的平方根,好,我这儿有点儿作弊了,我知道这是一个完美的平方数了,他们给我的,我们后面会讲怎么产生这个数的,那么我想解决这个问题,需要什么步骤呢?
Partly to show you that it's kind of weird, but also to tell you that one of the things you want to do is exercise what I'm going to call some type discipline.
一定程度上来说这有点儿怪,但是还是想要告诉你们的是,你们需要做一些,我称之为类型规范的练习。
Although, I think, I was pausing for a moment to raise that objection, it's not an objection that I think we should take all that seriously.
我停下来提出那个反驳,但我想这不是一个需要,我们认真对待的反驳
I need access to more memory, and I need it fast.
我需要使用更多内存,想要它更快点。
And using the text plus these archive notes,I think you will be able to piece together what you need.
使用这个课本,再加上存档笔记,我想,你们已经能组合出你们需要的了。
So it makes sense to be able to say, look for many methods I do want to have a way of doing comparison, and I don't have to remember, at top level, what the name of the comparison method was.
所有我需要的对象进行操作,那么就可以这么说了,我想要在很多方法里面,去找做比较的方法,我并不需要记住,每一个比较的方法的名字。
And if I want to detach it, I just click and drag, and now I can go back and put different puzzle pieces there altogether.
另外,假如我想分离它,我只需要单击并拖动,然后就可以回到过去那个状态,再继续把不同的拼图放到一起。
应用推荐