結果 : write the dynamic programming algorithm for the 0 1 knapsack problem