結果 : knapsack problem greedy method example