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