Knapsack Problem : Write in Canonical Form
Response to the following question:
Let
with a1≥a2≥....an≥0 and b≥0 . The idea is to write each such set in some simple canonical form. For example, for ,x € B3,
12x1+8x2+3x3≤14 is equivalent to 2x1+1x2+1x3≤2
(i) When n=2, how many distinct knapsack sets are there? Write them out in a canonical form with integral coefficients and 1 = a1≥a2 .
(ii) Repeat for n = 3 with a1≤2 .