0
4.0kviews
Write a algorithm for for 0/1 knapsack problem using dynamic programming approach.
1 Answer
| written 3.9 years ago by |
Before discussing about the algorithm, let's understand the problem first.
So, Now the question is What is 0/1 Knapsack Problem ?
Knapsack is like a container or a bag. Suppose we have given some items which have some weights with profits. We have to put some items in the knapsack …