結果 : dynamic programming and the 0 1 knapsack algorithm in python