FA-72292 / Error-correcting codes / Member archive
Weight distribution combines rows with OR · case 02
Codeword weights are inflated when rows overlap.
Case contract
Weight distribution of the binary linear code spanned by the rows of generator matrix G (rows may be dependent). Enumerate all 2^k messages including the zero message, form codewords as XOR combinations of rows, and histogram their Hamming weights (index 0..n). dmin is the smallest nonzero weight present (0 if the code is only the zero word). Return [histogram, dmin].
Why this case matters
Code designers use weight enumerators to estimate undetected-error probability and minimum distance.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression [[[1, 1, 0], [1, 1, 0]]] | [[1, 0, 3, 0], 2] | [[2, 0, 2, 0], 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 ↗