This is typical greedy algorithm. As somebody who knows a little about algorithm, this greedy algorithm sometimes is the optimal algorithm, but often times it is not.
Besides, money is not everything.
You have no idea about short term gain vs long term gain.
本帖于 2008-07-16 21:54:39 时间, 由普通用户 edumom 编辑