FA-72287 / Error-correcting codes / Member archive
Weight distribution skips the zero message · case 02
The histogram totals 2^k - 1 and weight 0 is missing.
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, 0, 1, 1, 0], [0, 1, 1, 1, 1]]] | [[0, 0, 0, 2, 1, 0], 3] | [[1, 0, 0, 2, 1, 0], 3] | 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 ↗