Do we offer what we dub packer editions of problem sets which extensively cover the same material but with a more technical sophistication, with more detail, and these are simply options that students in this course can elect as per the syllabus.
我们提供涵盖同样内容,但具有更多技术性细节的,我们称之为习题包,其中有更详细的信息,这些只是按照教学大纲的要求让同学们可以自主选择。
So he's packing and unpacking, packing and unpacking, trying all possible combinations of objects that will obey the constraint. And then choosing the winner. Well, this is like an algorithm we've seen before. It's not greedy.
因此它不断装包和清包,尝试了所有满足约束条件的物品组合,最后选择最优者,这很像我们以前看过的一个算法,这不是贪婪算法。
I wanted to show you that, so, first thing I'm going to do is say, all right, I know I'm going to need square root in here, so I'm going to, in fact, import math.
我们可以开始完成这个方法了,我想让你们看到完成这个方法的过程,第一件事情就是,我们在这儿需要一个求平方根的方法,实际上我将引入math包。
应用推荐