Abstract
This paper provides a general construction for optimal $q$-ary constant-weight and constant-composition codes in the "linear size" regime, where the code size grows linearly with the length $n$. By introducing generalized difference triangle sets and employing quasicyclic constructions, the authors determine the maximum size of these codes for large $n$ when the minimum distance is $d=2w-1$, effectively solving a decade-old open problem in combinatorial coding theory.
Introduction
In coding theory, the design of efficient error-correcting codes often involves constraints on the weight or composition of codewords. Constant-Weight Codes (CWC) ensure every codeword has exactly $w$ non-zero symbols, while Constant-Composition Codes (CCC) require a fixed number of occurrences for every symbol in the alphabet. Finding the maximum number of codewords, denoted as $A_q(n, d, w)$, is a fundamental challenge.
While binary codes ($q=2$) have been extensively studied, $q$-ary codes for $q \ge 3$ presented significant difficulties. Specifically, when the distance $d$ is at least $2w-1$, the code size scales linearly with the length $n$. Prior to this work, exact solutions for $d=2w-1$ were limited to binary, ternary, or sporadic cases. This paper establishes a general framework for any $q$ and $w$ given a sufficiently large $n$.
Combinatorial Foundations
The core of the paper's approach lies in bridging coding theory with combinatorial design. A key concept is the "composition" of a codeword, which can be represented as a partition of the total weight across different symbols.
To achieve optimality, the authors utilize "Generalized Difference Triangle Sets" (GD$\Delta$S). These are extensions of Golomb rulers—sets of integers where all pairwise differences are unique. By arranging these sets into structured arrays, the researchers can ensure the resulting code maintains the required minimum distance.
The Quasicyclic Approach
The authors employ quasicyclic constructions to simplify the design process. Rather than defining every codeword, they define a "base codeword" or a set of base blocks. The entire code is then generated through cyclic shifts of these bases. This structure is not only easier to analyze but also highly efficient for implementation in systems like DNA computing and powerline communications.
The construction relies on $\bar{\lambda}$-arrays, which are 2D grids of integers where differences between elements in the same row are unique. The existence of these arrays for large $n$ is proven using number-theoretic results concerning the distribution of prime powers.
Key Results
The paper establishes two primary theorems:
- Constant-Composition Codes: For a fixed composition $\bar{w}$ and sufficiently large $n$, the maximum size of a CCC is exactly $\lfloor n/w_1 \rfloor$, where $w_1$ is the count of the most frequent non-zero symbol.
- Constant-Weight Codes: For a fixed weight $w$ and sufficiently large $n$, the maximum size of a CWC is $(q-1)n/w$, subject to certain divisibility conditions.
Furthermore, the paper directly addresses a challenge posed by Tuvi Etzion regarding the existence of generalized Steiner systems. The authors also provide exhaustive tables for optimal codes where the total weight $w \le 6$, filling significant gaps in the literature for small-weight $q$-ary codes.
Conclusion and Future Work
This research provides a definitive answer to the linear-size optimality problem for $q$-ary codes. While the results are asymptotic (holding for "sufficiently large" $n$), the explicit bounds and small-weight tables offer practical guidance for current applications. Future work may focus on narrowing the gap between theoretical lower bounds for $n$ and the smaller values observed in experimental searches, as well as exploring non-quasicyclic structures for sporadic small-$n$ cases.
Summary updated