This is well known 0/1 knapsack problem. A O(n*w) algorithm is getting timed out as n and w is of order 10^5. Is there any more efficient approach to this kind of problems?
created
last reply
- 1
reply
- 323
views
- 1
user
This is well known 0/1 knapsack problem. A O(n*w) algorithm is getting timed out as n and w is of order 10^5. Is there any more efficient approach to this kind of problems?