結果 : when solving the knapsack problem using dynamic programming which approach is commonly used