So where does this constraint, you may think it's a fairly minimal constraint, but where does it come from?
你可能觉得这些制约相当微小,但它从何而来呢?
Once you can see it and once you can step back from it, then you can also decide, "This pass is my filter. This pass is my constraint.
一旦你看到了它,一旦你能退一步思考它,你就能决定,这么走可以去伪存真,这么走会遇到困难。
The budget constraint is a straight line through this point with a slope of .
这个预算限制在这幅图上是一条,是一条经过该点并以为斜率的直线
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.
因此它不断装包和清包,尝试了所有满足约束条件的物品组合,最后选择最优者,这很像我们以前看过的一个算法,这不是贪婪算法。
The budget constraint is going to have a different slope to it and preferences will be different over this horizon between consumption then and consumption now.
预算约束线的斜率会有所不同,人们对即时消费和延期消费的偏好,也会有所不同
And it has this beautiful constraint of 160 characters.
而且一条短信最多只能有160个字。
I've simply added this one extra constraint, nice thing about thinking about it this way is it's easy to think about it, and what do you think I'll have to do if I want to go change the code?
我已经加上这个额外的约束条件,思考这种方法有件好事,那就是以这种方式来思考很简答,你认为我要是想?
应用推荐