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.
因此它不断装包和清包,尝试了所有满足约束条件的物品组合,最后选择最优者,这很像我们以前看过的一个算法,这不是贪婪算法。
She's packing up her things and putting them in a box and she's out the door.
她正把自己所有的东西收拾到一个纸箱里,慢慢走出了门。
应用推荐