結果 : greedy algorithm knapsack problem with example