結果 : explain the algorithm to solve the knapsack problem using the dynamic programming method