結果 : write algorithm for greedy knapsack problem