結果 : explain knapsack algorithm with example