People use bin packing algorithms to figure out, for example, how to load up container ships.
人么通常用装箱算法来计算这个问题,比如说怎样装载货船。
She's packing up her things and putting them in a box and she's out the door.
她正把自己所有的东西收拾到一个纸箱里,慢慢走出了门。
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.
因此它不断装包和清包,尝试了所有满足约束条件的物品组合,最后选择最优者,这很像我们以前看过的一个算法,这不是贪婪算法。
Ancient salt is best packing.
古盐是最好的包装。
应用推荐