Question: In knapsack problem by by dynamic programming, when the difference between item capacity j and the current capacity wi is ( j - wi >

In knapsack problem by by dynamic programming, when the difference between item capacity j and the current capacitywiis (j- wi >=0), then the optimal value is:
a.
max {V[i-1,j], vi + V[i-1,j- wi]}
b.
V[i-1,j]
c.
max {V[i,j], vi + V[i,j- wi]}
d.
V[i-1,j-1]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!