Binary Bounded-Weight Constrained Codes
- Binary bounded-weight constrained codes are sets of binary vectors defined by strict Hamming weight limits (upper, lower, or exact), often coupled with minimum-distance criteria to ensure reliability.
- Explicit low-complexity constructions, such as cyclic gap encoders and on-the-fly enumerative methods, enable efficient mapping in regimes like ultra-low weight and two-dimensional storage.
- Advanced analytical tools including Fourier/Krawtchouk transforms, linear programming, and semidefinite programming provide precise upper bounds and optimize achievable code sizes under varied weight and distance constraints.
Binary bounded-weight constrained codes are binary code families in which admissible words satisfy prescribed Hamming-weight restrictions, often together with a minimum-distance requirement. The basic constraint may be one-sided, such as , two-sided, such as , or exact, as in constant-weight codes with ; further variants impose the restriction locally on subblocks, sliding windows, rows and columns of arrays, or symbol-frequency surrogates. In the recent literature, the subject has bifurcated into two closely related agendas: explicit low-complexity constructions for operational regimes such as ultra-low weight, windowed energy delivery, and two-dimensional storage; and analytic methods, notably Fourier/Krawtchouk transforms, linear programming, and semidefinite programming, for estimating or bounding the maximal code size under weight and distance constraints (Sasidharan et al., 2024, Rameshwar et al., 2023, Bachoc et al., 2010).
1. Constraint models and taxonomy
At the global level, a binary bounded-weight constraint specifies an admissible subset of by restricting Hamming weight. The most common forms in the cited literature are upper-bounded weight , lower-bounded or heavy-weight constraints , and exact-weight constraints . Constant-weight codes are therefore a structured subclass of bounded-weight codes, and much of the classical notation is inherited from that setting, including for the largest size of a binary constant-weight code of length , minimum distance at least , and weight 0, and 1 for the largest size of a binary code with minimum distance at least 2 and minimum codeword weight at least 3 (Bachoc et al., 2010, Rosin, 26 Feb 2026).
The literature also distinguishes several local or semi-local variants. Subblock-constrained codes partition each codeword into equal-length subblocks and constrain each subblock separately; CSCCs impose a fixed weight in every subblock, whereas SECCs impose a lower threshold in every subblock (Tandon et al., 2017). Sliding-window constrained codes strengthen this further by requiring every contiguous window of length 4 to have weight in a specified interval 5 (Nguyen et al., 2020). Locally balanced constraints are a symmetric windowed specialization in which every length-6 window must have weight between 7 and 8, and the “strongly locally balanced” version requires this simultaneously for all even window lengths at least 9 (Wang et al., 2022). Two-dimensional variants enforce bounded weight on every row and every column, or on every contiguous subarray, and are formulated for 0 arrays in the cited ReRAM and holographic-storage work (Nguyen et al., 2022, Le et al., 1 Sep 2025).
A separate but related notion is bounded symbol weight. In the binary specialization of symbol-weight codes, the symbol weight is 1, so the constraint 2 is equivalent to a symmetric two-sided interval 3. This is not the same as the one-sided upper-bounded Hamming-weight condition 4; the symbol-weight model excludes very low weights unless 5 is large (Chee et al., 2011). That distinction is frequently overlooked in informal discussions, but it is foundational for comparing binary symbol-weight codes with ordinary bounded-weight codes.
2. Rate regimes, asymptotics, and information-theoretic structure
The asymptotic behavior depends sharply on whether the constraint is upper-bounded, lower-bounded, or exact. For heavy-weight codes, the exponential growth rate of 6 exhibits a threshold at relative weight 7: for 8, the asymptotic exponent satisfies 9, whereas for 0, it satisfies 1, where 2 is the unconstrained binary-code exponent and 3 is the constant-weight exponent (Bachoc et al., 2010). This formalizes the fact that a minimum-weight constraint below half the blocklength is asymptotically inactive, while a heavier constraint pushes the problem into the constant-weight regime.
Upper-bounded and exact-weight regimes can be very different. In the ultra-low-weight family of (Sasidharan et al., 2024), the parameters are 4 and 5, so the relative weight vanishes. The code dimension satisfies the information-theoretic upper bound
6
and for 7, 8, Stirling yields
9
The constructed family attains this up to two higher-order terms, yet its rate
0
vanishes as 1 grows (Sasidharan et al., 2024). This regime therefore prioritizes complexity and direct mapping rather than asymptotic rate.
Subblock and window models introduce an additional rate penalty relative to global constraints. For fixed subblock length and small relative distance, the asymptotic rate of CSCCs is strictly lower than that of ordinary constant-weight codes, and the asymptotic rate of SECCs is strictly lower than that of heavy-weight codes; for high subblock weight and low relative distance, SECCs strictly dominate CSCCs, in contrast to the equality of HWC and CWC rates in the global model for 2 (Tandon et al., 2017). By contrast, for two-dimensional upper-bounded row/column constraints with row and column limit 3, the 2D capacity equals the 1D capacity whenever 4:
5
That equality is constructive rather than merely existential (Le et al., 1 Sep 2025).
3. Explicit low-complexity constructions
A notable recent development is the explicit family of binary constant-weight codes with extremely low encoding and decoding complexity in the regime 6, 7, 8. The construction 9 encodes information in the cyclic gaps between successive ones. Its combinatorial dimension is 0, with the explicit formula
1
when 2 is a power of two, and a corresponding piecewise formula involving 3 otherwise. The encoder partitions the message into 4 blocks of lengths 5, interprets each block as an integer gap, and places the ones by modular pointer arithmetic; the first placed one is the anchor. Encoding runs in 6 time with 7 memory, and decoding consists of parsing the support, forming cyclic gaps, locating the anchor, and converting gaps back into binary blocks. Apart from the linear pass needed to parse the input, decoding is poly-logarithmic in 8, and neither procedure uses binomial coefficients (Sasidharan et al., 2024).
The same work proves that the underlying sequence 9 is anchor-decodable and maximal among anchor-decodable sequences, and derives a lower bound
0
It also gives an alternate family 1 with a different decoder and the same size for 2, together with modified families 3, 4, and 5 that vary weight or blocklength while retaining low complexity; for 6, the derived 7 is optimal for all 8 (Sasidharan et al., 2024).
A more general algorithmic theme appears in the on-the-fly enumerative framework of (Ryabko, 2024). There, Cover-style ranking and unranking is extended to fixed-weight, bounded-weight, and mixed local/global constraints by computing completion counts dynamically rather than through closed combinatorial formulas. For pure bounded-weight constraints, the per-position counts are partial sums of binomial coefficients over the feasible remaining-weight interval; with local constraints, the counts are computed by dynamic programming over suffix automaton states and remaining weight. The stated complexity is 9 for bounded-weight intervals of span 0, and 1 when a finite automaton of size 2 models local forbidden-pattern constraints (Ryabko, 2024).
Run-length-limited bounded-weight coding remains an important classical branch. For 3 and 4 constraints, recurrent and direct formulas are known for the number of constant-weight sequences, rational generating functions exist for the constant-weight counts, and Cover-style enumerative encoding and decoding can be implemented from these counts. For the companion constant-charge problem, the generating function provably does not admit a closed form and reduces to elliptic-integral structure (0902.4246).
4. Local weight regulation: subblocks, windows, and local balance
Subblock and sliding-window constraints are motivated by energy delivery, power regularity, and biochemical balance. In SECCs, a length-5 word is partitioned into 6 subblocks of length 7, and every subblock must satisfy 8; the total admissible set has cardinality
9
For bounded SWCCs, the same interval must hold in every contiguous length-0 window (Nguyen et al., 2020). Two linear-time construction methods are given there: a Knuth-type prefix-flipping encoder for bounded SECCs with 1 redundancy per subblock, and a sequence-replacement encoder for bounded SWCCs that uses only one redundant bit for the entire codeword when 2, 3, 4, and 5, where 6 (Nguyen et al., 2020). The same paper also adds VT-based single-substitution correction while preserving the weight constraints.
The asymptotic theory of subblock constraints shows that local regularity has a measurable coding cost. For fixed 7 and small relative distance, CSCCs have strictly lower asymptotic rate than constant-weight codes, and SECCs have strictly lower asymptotic rate than heavy-weight codes. The paper also corrects an earlier asymptotic CSCC statement: for fixed 8 and 9,
0
so the subblock penalty vanishes when the subblock length itself diverges (Tandon et al., 2017).
Locally balanced constraints form a symmetric sliding-window model. A binary word is 1-locally balanced if every consecutive window of length 2 has weight between 3 and 4, and it is strongly 5-locally balanced if the same holds for every even window length at least 6. For strong 7 balance, the problem is equivalent to bounding the running-digital-sum span by 8, which yields a Dyck-path interpretation and capacity 9 bits/symbol. The paper gives two explicit encoders in this regime: an enumerative bounded-Dyck-path encoder with rate approaching 00, and a six-state machine encoder with asymptotic rate 01 and constant memory (Wang et al., 2022). For fixed-window balance, a graph-based encoder built from a dense subgraph of the relevant de Bruijn graph attains reported rates such as 02 for 03 and 04 for 05 (Wang et al., 2022).
A common misconception is that local window constraints are merely cosmetic refinements of global constant-weight constraints. The cited results show the opposite: local balance, subblock composition, and sliding-window regulation change both capacity and construction methodology, often replacing simple layer counting by finite-type graphs, replacement systems, or bounded-RDS automata (Tandon et al., 2017, Wang et al., 2022).
5. Two-dimensional bounded-weight constraints
Two-dimensional bounded-weight coding generalizes the one-dimensional problem from vectors to arrays. In the row-column formulation, every row and every column must satisfy a prescribed weight condition; in the subarray formulation, every contiguous 06 subarray must satisfy the corresponding weight or near-balance bound. For 07-bounded RC constraints, a row or column of length 08 must have weight at most 09; for 10-balanced RC constraints, its weight must lie in 11 (Nguyen et al., 2022).
Two construction paradigms dominate the current literature. The first is divide-and-conquer balancing by swaps. For RC 12-bounded codes with 13, one can encode rows independently and then recursively rebalance columns by swap operations, recording the swap indices in auxiliary rows; the resulting redundancy is at most 14, and encoding and decoding are linear-time in the array size. For 15-balanced RC constraints, a related divide-and-conquer construction has redundancy 16 (Nguyen et al., 2022). The second paradigm is sequence replacement. For 17, an SRT-plus-antipodal-matching encoder achieves redundancy at most 18 bits; for sufficiently large 19, RC 20-balanced codes can be encoded with only one redundant bit, under the conditions 21 and 22 (Nguyen et al., 2022).
The universal 1D-to-2D framework of (Le et al., 1 Sep 2025) systematizes these ideas for the upper-bounded row/column model. Given any 1D encoder 23 producing length-24 words of weight at most 25, the construction uses the first 26 rows for 1D codewords, where
27
then applies recursive swap-and-flip balancing to the columns, and stores the balancing metadata in the last 28 rows with sparse placement. Its rate is
29
so if 30 and the 1D family is capacity-approaching, then the 2D family is also capacity-approaching and satisfies 31 (Le et al., 1 Sep 2025).
These 2D models are tied in the cited papers to ReRAM crossbar arrays, sneak-path mitigation, and holographic storage, where controlling row/column or local subarray activity is part of the physical design problem rather than an abstract combinatorial constraint (Nguyen et al., 2022, Le et al., 1 Sep 2025).
6. Counting, upper bounds, and optimization methods
Exact counting and upper bounding in bounded-weight settings increasingly rely on harmonic-analysis and optimization techniques. For constrained subcodes of linear codes, the central identity is
32
where 33 is the Walsh–Hadamard transform. When 34 depends only on Hamming weight, the transform reduces to a Krawtchouk expansion, and the exact number of codewords of a linear code 35 whose weights lie in a window 36 can be computed from the dual weight distribution 37 via
38
The same paper extends Delsarte’s LP to constrained codes and shows that, after symmetrization under the full symmetric group, the bounded-weight LP has only 39 variables and constraints; it also reports that the resulting LP upper bounds beat generalized sphere packing numerically for several constrained families (Rameshwar et al., 2023).
For heavy-weight codes, semidefinite programming yields both asymptotic structure and finite-length bounds. The asymptotic exponent transition at relative weight 40 has already been noted. Non-asymptotically, the SDP method gives analytic bounds improving classical Elias/Johnson-type estimates and exact values in several cases, including 41, 42, 43, and 44 (Bachoc et al., 2010). In the constant-weight layer, improved Delsarte LP bounds arise from additional linear constraints based on doubly-constant-weight codes and parity counting over 45-row 46-column submatrices; this yields twenty three new upper bounds on 47 for 48, including 49 and 50 (Kang et al., 2011).
The binary symbol-weight model adds a further analytic wrinkle. Because the underlying constrained space is not ball-homogeneous, sphere-packing arguments do not transfer directly, and the paper on symbol-weight codes emphasizes this nonuniformity as a barrier to Hamming-type bounds tailored to symbol-weight spaces (Chee et al., 2011).
7. Specialized families, applications, and current directions
Several recent works show how bounded-weight ideas interact with application-specific combinatorics. Constant-weight binary 51-sequences, motivated by polymer-based storage, require that the coordinate-wise real sums of all distinct unordered pairs of codewords be distinct. In the constant-weight regime 52, entropy arguments give the upper bound
53
while Sidon-sequence constructions yield
54
when 55 is an integer (Sima et al., 2023). The bounded-weight aspect there is operational: fixed small weight controls synthesis cost and readout uniformity.
Algebraic explicit constructions remain central. Reed–Solomon-based graph embeddings give constant-weight codes with parameters such as
56
and the same paper reports explicit improvements including 57 and 58; algebraic-geometric extensions produce many additional families (Xu et al., 2015). At the opposite methodological extreme, automated combinatorial search has become competitive. The recent search-based work on constant-weight codes establishes improved lower bounds on 59 for 60 parameter triples with 61 and 62, using a bit-swap tabu search and a randomized greedy method based on distance histograms. Among the reported improvements are 63, and two exact determinations, 64 and 65 (Rosin, 26 Feb 2026).
Taken together, these results suggest a mature but still rapidly diversifying field. Global bounded-weight constraints, constant-weight layers, subblock and window constraints, local balance, run-length restrictions, symbol-weight models, and two-dimensional row/column formulations are no longer treated as isolated niches. Instead, they are linked by common analytical machinery—association schemes, Krawtchouk transforms, SDP/LP relaxations, and enumerative coding—and by a shared design objective: to trade off admissible weight profiles, minimum distance, and implementation complexity in regimes dictated by storage, communication, and biochemical constraints (Rameshwar et al., 2023, Ryabko, 2024).