結果 : knapsack algorithm definition