hard20 pts · first answer countsdynamic-programmingknapsack
Knapsack with a capacity of a billion
There are 100 items, the capacity is 10^9 and each value is at most 1,000. The usual O(n × W) DP is too big. What works instead?
Discussion 0
Join free to post in the discussion.
Related questions
- Signs that a problem suits DPBackend Developer
- What memoisation meansBackend Developer
- What tabulation meansBackend Developer
- Cost of plain recursive FibonacciBackend Developer
- Fibonacci after adding a cacheBackend Developer
- Recursion with no base caseBackend Developer
- Ways to climb five stairsBackend Developer
- Hidden memory cost of recursionBackend Developer