And when you have an optimal substructure and the local solutions overlap, that's when you can bring dynamic programming to bear.
当你得到一个最优子结构,但局部解决方案有重跌时,你就可以引入动态编程,来解决这个问题了。
Let's pretend that at work, your boss gives you too much work and not enough time to finish it.
假设你上班的时候,老板给了你太多的工作,你没有足够的时间来完成它。
And I was trying to make a final call on the summer job and Bill called and said "Hey look Steve. Geez, how are you doing? Gosh, things get complicated here we need a business person. What about you?"
那时我正试图把暑假打工的事,一锤定音,比尔打电话给我,说,“嘿史蒂夫,最近怎么样?,天呐我们这儿越来越复杂了,需要个,搞商的人,你来怎么样?“
I don't need to tell you the volume here, because you've got enough information to calculate the volume.
这里我不需要告诉你体积,因为你已经获得了足够多的信息,来计算体积。
Now, in answer to your question, " I think this proves that or I won't say "Proves."
再来回答你的问题,我认为这证明了,不该用“证明“
Let's see what happened, so we have Beatrice and your name is Claire Elise.
我们来看看发生了什么,比阿特丽斯和你的名字是,克莱尔·伊莉斯
That is a maximum If you are sharing your time and energy during this period on Tuesday afternoons, or the arch-field don't work so think carefully about that.
让大家充分发挥自己的能力,如果每周二下午这段时间,你都有时间,精力也很充沛,就可以来上这门课,不过这样你就没时间参加实践活动了,所以请仔细考虑吧。
Congratulations. Hugs."
恭喜你做到了,来拥抱一下“
I'm really liberal, but this disturbs me because I am looking at you, I'm trying to see from your reaction how much of my lecture you are following, and then it's very distracting when people are talking.
很无所谓的,但是我很不喜欢有人说话,因为我正看着你,我要根据你的反应来判断,我的课你听懂了多少,但是如果有人说话的话,就会让大家分神
So it does that for us so that you can get away with just knowing the address of the first byte and it will make sure that you know when to stop by including the special value so, in fact, get the string if you type in a three-letter word, we allocate four bytes no matter what because we need an additional byte 0 for this special sentinel value back slash zero at the very end.
它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。
And one day so I was eating my ice-cream because the archives were closed, and this woman came up, and she was probably about fity, or something like that, and she ordered ice-cream, and so this guy says, "Well, Madame whatever, Madame Dupuis, you remember that day don't you, when the Germans came back?" And she said, "Oh I sure do, they hung my husband from that pole."
有一天我正吃冰激凌呢,因为档案馆关了,有个女人过来,她大概有五十岁,她要了个冰激凌,然后这哥们说,"我也忘了什么夫人了,杜普斯夫人,你还记得那天吧,德国人来的那天",然后她说,"我当然记得,他们把我丈夫吊在那根柱子上"
And then you feel like you can begin to open up because your friend has opened up.
看见朋友的坦诚,你觉得你也可以跟朋友敞开来聊了。
But in terms of SI units, which become much more useful if you're actually trying to use intensity in a problem and cancel out your units, we're just talking about joules per second is what intensity is.
但是用国际单位制,这个变得越来越有用了,如果你实际上在使用强度,来解决问题和约化单位,我们仅仅讨论每秒钟的焦耳,这就是强度。
This is boring. In fact, you can do some nice things to prove what is the class of functions you can compute with straight-line programs, and what you'd see if you did that is, it's not particularly interesting.
这很无聊,实际上,你可以通过做一些很有趣的事情,来证明你可以通过直线程序,来做很多功能,但是你也看到我们之前讲过的了,这不太有趣。
Croesus asked Solon to tell him who is the happiest, the most fortunate--both of those things contained in the words he uses--that he had ever seen.
克罗伊斯问梭伦,谁是你见过的,最幸福,最幸运的人,他用了一个词来表示这两重意思
That is, if we meet on the street, you come talk to me during office hours, you ask some question; Shelly's the name that I respond to.
也就是说,如果我们在街上碰见了,或是你来办公室找我谈话,问我问题;,我会回应薛立这个名字。
So you pick a better material like iron and steel, that makes a better bridge, we know that now because we have experience with bridges, but still your bridge might fail.
你选择了钢铁作为材料,来造了一座更好的桥,我们现在能够明晰这一点,是因为在造桥这件事上我们现在很有经验,但即使是我们现在造的桥也仍然会倒塌
And your dad is like, "Oh, give me a big hug, I can't wait to see you."
你的爸爸说,“哦,来赶紧给爸爸抱一下,我等不及要见你了。”
but you sort of pay extra to be here, where all the people is, and
但是你像是支付了额外的费用来这里,所有人也都是如此,
And the movie is so sad that you can't stop from crying really loudly
这部电影太令人感伤了,你控制不住地哭出声来。
Do you think your English has improved a lot since you came to London?
自从你来伦敦后,你觉得你的英语提高了吗?
that you just have to go to anytime you are here.
你只要来了这里,一定得去那里。
I can tell that something is wrong.
我能看得出来你有地方出问题了。
This is your opportunity, if you're sitting at home, you could take off to turn off the TV.
机会来了,如果你正在家里,就可以马上开始了,关上电视。
Suppose there is an epiphany at 11:54 and you get a perfect score on that question 25% and it is worth 25% of the paper.
假设在11:54的时候灵感来了4,你在那个问题上有一个完美的分数,占试卷的。
So in a moment you're going to go ahead and hit the spacebar and then as things fall from the screen when they line up with the left arrow, hit the left arrow with a different arrow, hit that arrow and see how good a score you can get.
一会儿你走到前面,敲一下空格键,当屏幕上面的东西从左边往下掉的时候,你就敲一下键盘上的左键,是哪个方向,敲对应的方向键就可以了,我们来看看你能得多少分。
Similarly, if you're dealing with immature humans and you want your child to get you a beer, you can't just sit, wait for the kid to give you a beer and uncap the bottle " and say, "Excellent. Good. Hugs."
类似的,如果你要训练的是未成年人,如果你想让你的孩子帮你拿一罐啤酒,你就不能只是坐着,等孩子把啤酒拿给你,然后你打开瓶盖,说,“太棒了,来抱一下“
Because this is something that could certainly have screwed you up if you didn't realize it did it, and you need to have that discipline to make sure it's doing the right thing.
因为这是一件如果你没意识到,要这么做的话,可能会令你抓狂的一件事,你需要一个规范,来确定Python做了正确的事情。
So if you want to spend some money, this is the right place to go.
所以,如果你愿意花一些钱,来这个地方就对了。
So for example, I can say, what are all the methods associated with the number,or the integer 1?
所有与数字,或者说整数,相关联的方法是哪些?,你可能已经认出一些来了?
应用推荐