結果 : greedy algorithm is efficient whereas dynamic programming is more efficient