|
Download benchmarks/Algorithms/multiple_knapsack/problem.md from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/multiple_knapsack/problem.md
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Algorithms/multiple_knapsack/problem.md
-
curl -L -o problem.md https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/multiple_knapsack/problem.md
563 Bytes
Bounded Knapsack
Description
Given item weights, values, and available multiplicities, maximize total value without exceeding the knapsack capacity.
Input
The verification-case input consists of parallel weights, values, and counts arrays, item count n, capacity, and work buffers.
Output
The function produces the maximum achievable total value.
Constraints
- $0 \le n,capacity \le 1000$; weights are positive, values and counts are nonnegative.
Source
Classical algorithmic problem reconstructed from the verified C artifact.