FA-98104 / Sequence batch packing / Member archive
Length bin packing uses next-fit instead of first-fit · case 04
Length bin packing uses next-fit instead of first-fit.
Case contract
Sort lengths descending with stable ties, then place each item into the first existing bin with enough remaining capacity; otherwise open a bin.
Why this case matters
This deterministic toy packing rule models a common boundary in preparing bounded training sequences.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| reuse earlier bin | [[6], [5, 2], [1]] | [[6, 1], [5, 2]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗