I hope you're doing good
I'm having a bit of trouble finding maximum value for a multiple constrained 0/1 knapsack problem.
I am given the data above and below
Name Weight Volume Value
F 2 1 3
G 1 3 2
H 2 2 4
I 3 2 5
W = 5
V = 4
I have been trying to draw tables for each item and trying to plot the volume and weight values using a recurrence relation.
I can easily apply a recurrence relation for 2 values (IE OPT(k,w)) but I'm looking for more advanced OPT(k,w,v) recurrence relation and there's limited information on the web for this.
Primarily I have 2 questions.
- which recurrence relation would I use in order to generate the tables of data for each item?
and
- which set of items would I need to pick in order to obtain the maximum value?