parameterized knapsack