In knapsack problem, we have some items with some values and weights. We also have a knapsack with a specific capacity, and we intend to fill the knapsack with these items. The main objective of this problem is to maximize the value of items in the knapsack.
Knapsack can contain maximum 11 kg items
item1: value(1) weight(1 kg)
item2: value(6) weight(2 kg)
item3: value(18) weight(5 kg)
item4: value(22) weight(6 kg)
item5: value(28) weight(7 kg)
Are the items also sorted by their weights when we sort them by their values ?
In other words, are the weights parallel with the values ?
For example, can the item2 have a value 20 but its weight is equal to 2 kg ?