难道我们一直很贪婪,无知,漠不关心?
他很贪婪,对于一天只得到一枚金蛋并不感到满足。
He was greedy and was not satisfied with one golden egg a day.
尽管你有时很贪婪,思虑不周全,但是这些都给我带来了幸福感。
Although you may be greedy sometimes and less thoughtful, but these all brought happiness into my life.
with the continuous knapsack problem as we've formulated it, greedy is good.
因为正如我们已经归越过的,对于一般连续性背包问题贪婪算法很实用。
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.
因此它不断装包和清包,尝试了所有满足约束条件的物品组合,最后选择最优者,这很像我们以前看过的一个算法,这不是贪婪算法。
应用推荐