結果 : compare and contrast greedy algorithm and dynamic programming