Source: wikibot/constant-weight-code

= Constant-weight code
{wiki=Constant-weight_code}

A constant-weight code is a type of error-correcting code in which each codeword (a sequence of bits that constitutes the encoded message) has the same number of non-zero bits (usually 1s) regardless of its position in the sequence. In other words, every codeword in a constant-weight code contains a fixed number of 1s, which is referred to as the "weight" of the code.