http://en.wikipedia.org/wiki/Knapsack_problem

Found by Googling "knapsack problem" and it was the top hit.