A four-item capacity decisionComplete subset enumeration · 16 candidates
The problem
Maximize total item value without exceeding the weight capacity.
The checked result
Maximum value: 11.
Each subset is a distinct candidate. The checker independently computes feasibility and objective, accepts any optimal witness, and rejects attractive but overweight selections.
Why the checker accepts it
- Enumerate every binary item-selection vector.
- Discard selections exceeding capacity.
- Compute each remaining total value.
- Check that the submitted subset is feasible and attains the maximum.
Formal specification
{
"items": [
[
2,
3
],
[
3,
4
],
[
4,
7
],
[
5,
8
]
],
"capacity": 7,
"item_encoding": "[weight, value]; index identifies an indivisible item"
}Claim and evidence
{
"claim": {
"maximum_value": 11
},
"witness": {
"selected": [
1,
2
]
}
}Dataset construction
Deterministic finite fixture; full enumeration or witness replay as stated. Structured JSON; field meanings are stated in the specification. Acceptance covers 16 checker units for this record; the unit type is stated in its verification scope.
Complexity and limits
n items produce 2ⁿ subsets. Pseudopolynomial dynamic programming offers a different tradeoff for integral capacity.
Only this finite 0/1 instance is certified; no approximation ratio or measured solver speed is claimed.
A boundary to investigate
The highest value-to-weight ratio can fail for indivisible 0/1 items. Add assignment dual certificates, set cover, and branch-and-bound proof logs.