結果 : state any two difference between greedy algorithm and dynamic programming