結果 : write the algorithm for 0 1 knapsack problem with example