結果 : knapsack problem greedy method algorithm