結果 : compare divide and conquer approach greedy algorithm and dynamic programming