Knapsack problem (Without quantity limitations)
(Mylib/Typical/knapsack_unlimited.cpp)
Operations
-
knapsack_unlimited(int N, Weight cap, Weight w[N], Value v[N])
- 個数制限なしナップサック問題を解く。
- Time complexity $O(N * cap)$
Requirements
Notes
Problems
References
Verified with
Code
Back to top page