And when you have an optimal substructure and the local solutions overlap, that's when you can bring dynamic programming to bear.
当你得到一个最优子结构,但局部解决方案有重跌时,你就可以引入动态编程,来解决这个问题了。
when you feel upset or when you feel frustrated that something is not going the way that you wish it would.
当你觉得很失落,或者当你因为事情不像你期望的那样进展而感到沮丧时,你也可以使用这个句型。
So, you can imagine what happens as it gets deposited into your bones, which is not the ideal situation after a long day in the lab.
所以你可以想象,当它碰到你的骨头时候会如何,当你在实验室,呆了一整天后这样可不太好。
Have the computational hygiene, if you like, to only go through accessors, only go through methods that are actually provided to you as you do this.
请大家注意计算卫生,如果你喜欢这么说的话,只通过访问器访问数据,当你访问数据的时候,通过提供给你的方法来访问。
When you want a point particle, if you wake up and find a point particle on your bed, what's your reaction?
当你想要一个质点,想当你醒来时发现一个质点在你的床上,你是什么反应
Typically, when there's something which is unclear you'll fill in the gap and figure out what the word is.
通常当你听到某些不清楚的单词时,你会填入间隔,并确认那个词是什么
When we get to the spell checking, the dictionary assignment, when you're actually manipulating text files, maybe writing some output, these lower level details that actually empower you to solve problems properly.
当你检查拼写时,字典查询,当你熟练运用这些文本文件时,可能是写一些输出文本,这些小细节,恐怕可以帮助你合理解决问题。
What was important when reading, starting out with a new book, asking yourself, ? what question is the author trying to answer?
当你阅读时,什么是重要的,当你开始读一本新书,问问你自己,作者试图要解答的问题是什么?
And what I'm imagining is how you're going to respond to these words in this order.
我会想象,当你看到这一连串文字时,你会作何反应。
As each year goes by, you accumulate economic shocks, shocks to your human capital, shocks to what you own as you get older.
随着年龄增长,你不断遭受经济冲击,对人力资本的冲击,当你一天天长大,你一天天遭受冲击。
Anybody If you have withdrawals after eating a certain type of food for a long time.
有人回答吗,当你长期吃某种食品,某天你不吃了
So, the guys in the back turn and run, which is the only thing you can possibly do once you feel our phalanx is broken.
然后,后面的人转过身去,夺路而逃,当你感到方阵快要被打散时,你唯一可能做的就是逃跑
Speed, right. So another decision you face is do you just try and kick this ball as hard as you can or do you try and place it?
球速是正解,你还需要考虑,当你主罚点球时你是大力抽射,还是小力轻擦
You're going to have to know when you describe the system, if your system is homogeneous, like your coffee with milk in it, or heterogeneous like water with an ice cube in it So heterogeneous means that you've got different phases in your system.
你要知道,当你描述一个系统时,你的系统是均匀的呢,像掺了牛奶的咖啡,那样还是非均匀的,像放了冰块的水,非均匀系统就是说,在你的系统中有不同的相存在。
because when you're up on that point, you see anything that's in the water, anything close to the surface and,
因为当你站在那里的高处,你能看到贴近水面的一切,而且,
When you start describing the significance of a symbol like the tunnel, which recurs in the book, you immediately begin to limit it, and a symbol should go on deepening.
当你开始描述一个象征的意义,比如说在书中,反复出现的隧道,当你一开始予以限制,这个象征就会继续深化。
Your stomach sinks, you have that sinking feeling in the pit of your stomach, when you get a bad grade on a test.
当你考试考砸的时候,你的胃会垂下去,或者说,会有胃部下垂的感觉
And, you know, when you go up there, as you go up to Montmartre, it's incredible--because I was there once very, very late in the afternoon, and oddly enough I met this woman who went there every day, and I said, "why do you go there every day?"
你知道,当你去到那边,当你去到蒙马特高地,那简直不可思议,因为有次下午很晚了,我在那边,很神奇的,我遇到了一位妇人,她每天都到那里去,我就问她,"你为什么每天都来"
You will find this pattern very useful anytime you're not feeling happy about something and you want to express yourself.
你会发现,当你因为什么事感到低落,你想表达自己的感觉时,这个句型特别有用。
So when you operate on the wave function, what you end up with is getting the binding energy of the electron, and the wave function back out.
所以当你将它作用于波函数时,你得到的是电子的结合能,和后面的波函数。
You try to design actually I'm going to come back to that in a second. It's like you're trying to use a hash function that spread things out pretty evenly. But the places you store into in those lists may have to themselves have a small list in there, and when you go to check something, you may have to do a linear search through the elements in that list.
你尝试着去设计,实际上过会儿我会回头讲解这个问题,类似于你需要用一个哈希函数,非常平均的将物体分发出去,但是在列表中你数据,映射到的地方可能会有自己的一小段列表,当你回头查找数据的时候,你可能需要在那一小段列表中做线性查找。
So, what I'm saying is, when you leave the place you were born, you leave your ancestors as well.
我想说的是,当你离开故乡,你也就离开了你的祖先
Then, after you define what your system is, whatever is left over of the universe is the surroundings.
当你定义了你的系统后,宇宙的其余部分,就是环境。
And part of it is we want you to learn how to have a catalog, if you like, of different classes of algorithms, so that when you get a problem, you try and map it into an appropriate class, and use the leverage, if you like, of that class of algorithms.
另外我希望你们能学会,如何制作一个关于,算法不同课程的目录,这样当你碰到问题的时候,你可以去找到合适的课程,然后在那门课程中,寻找解决方法。
But when you start writing programs, especially when we get to web-based stuff where you want -- to check the user's input -- is it valid, is it an email address, -- and all these different scenarios -- it's actually often useful to be able to just enumerate them or rattle them off using this switching construct instead.
但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。
There could be familiar things that you are close to and you could bring in together new things as falling under the rubric of these familiar things.
利用你熟悉的事物,和你很亲近的事物,当你引出一个新事物时,你可以把它放在你熟悉的事物的范畴下。
So, when I threw that thing up and you caught it, what you are doing mentally was immediately figuring out where it started and at what speed.
所以当你接住我抛出的物体时,你大脑里的反应就是,立刻弄清它的初位置以及初速度
If you have your health, luck comes and goes and realize when you're doing really well that it's not just you. Then, when you're not, it's not just you either.
如果你很健康而且运气来来去去,当你做的很出色的时候你意识到不只是你很出色,当你不是很出色的时候,也不仅仅是你自己做的不好。
If you can kick the ball very hard, but not very accurately, then if you try and shoot to the left or right, you're slightly more likely to miss.
如果你只会大力抽射但是缺乏精准,当你射向左路或者右路时,你有可能会射偏
应用推荐