WorksComputer Science
Ternary Perfect -Burst-Correcting Codes
Abstract
A construction for a ternary perfect linear -burst-correcting code is presented for every redundancy . The construction is recursive with seeds given for . The construction of redundancy is derived from a code of redundancy and it distinguishes between codes of even and odd length.
Introduction
Detecting and correcting errors in memory systems is of great importance. Background on errors in memories such as byte-oriented codes, memory applications, and error control is extensively studied in [11]. Further such work, for example on byte-correcting codes, can be found in [4], [5], [7]. A burst of errors is very common in such memories. In this paper, we consider ternary perfect 2-burst-correcting codes.
We first recall the classical bounds for linear codes. Let code denote a linear code of length and dimension . The redundancy of such a code is . A code is called a -burst-correcting code if it can correct any single burst of length or less. A code is called cyclic -burst-correcting code if it can correct any single cyclic burst of length or less. Reiger [12] has proved that an -burst-correcting code (or cyclic -burst-correcting code), where , must satisfy .
For an cyclic -burst-correcting code over , the finite field with elements, there are different cyclic bursts of length up to , each one corresponding to a different nonzero syndrome. Since the number of nonzero vectors of length is , it follows that . Abramson [3] noted that this inequality for binary codes, and along with the fact that is an integer, it implies that
A cyclic -burst-correcting code which satisfies (1) with equality is said to be optimum. Abramson [3] has constructed optimum binary cyclic 2-burst-correcting codes for any . Elspas and Short [6] constructed such codes for and , Abdel-Ghaffar, McEliece, Odlyzko, and van Tilborg [2] have shown that infinitely many optimum codes exist for each . It is clear that if a code satisfies (1) with equality then (when ), i.e., not all nonzero vectors of length are syndromes obtained as sums of at most adjacent columns. Therefore, these optimum codes are not perfect. For an (acyclic) -burst-correcting code, there are different bursts of length up to , each one corresponding to a different nonzero syndrome. Again, since the number of nonzero vectors of length is , it follows that
i.e.,
A -burst-correcting code which satisfies (2) with equality is said to be perfect (or “complete” as called by Reiger [12]). Abdel-Ghaffar [1] extended the study of optimum cyclic burst-correcting codes to . He gave a necessary polynomial condition for attaining the length , and proved that, whenever this condition holds, infinitely many such optimum codes exist.
In [8] perfect linear binary 2-burst-correcting codes of length $2^{r-1}$ and redundancy , were constructed for every $r \ge 5. The parity-check formulation requires each nonzero syndrome to occur exactly once among the columns and the sums of adjacent columns. The recursive construction in [8] replaces an parity-check matrix , where , by the parity-check matrix shown in Figure 1.

Figure 1. Binary recursion from [8 p. 2554]. Vertical lines separate the four blocks.
There are other related works in the literature. Wei and Schwartz [14] studied perfect codes for bursts of limited-magnitude errors through lattice tilings and splittings of finite Abelian groups. They constructed families for cyclic and non-cyclic bursts of length two and gave further constructions based on finite fields. Sun, Lu, Zhang, and Ge [13] considered a -burst, which replaces consecutive symbols by symbols, and constructed -ary codes with bits of redundancy for fixed error parameters and alphabet size. An interesting idea of burst-covering codes was suggested in [10]. Finally, perfect codes in general were considered in [9].
The rest of the paper is organized as follows. In Section II a recursive construction is described for ternary perfect 2-burst-correcting codes. Conclusion and a short discussion is given in Section III.
A ternary perfect 2-burst-correcting code of redundancy has length . The recursive construction starts with a parity-check matrix for code of length and produces an parity-check matrix. If , where is the parity-check matrix for the code with redundancy , we choose 27 blocks of length from or or or and to each such blocks we add three appropriate rows. Between each of these 27 block we add one or two columns of length to form the missing syndromes of length . There are 14 such added columns. The seeds for the construction are three parity-check matrices, , , and . These seeds for , and are displayed Seed for : matrix
Columns 1–41
Seed for : matrix
Columns 1–61
Columns 62–122
in Figure 2 and Figure 3, respectively (there is no code for redundancy 4 and length 14). The construction adapts the binary recursion to the four possible nonzero coefficient pairs. The recursive construction distinguishes between even and odd of the parity-check matrix. The recursive matrices for even and odd input length appear in Figure 4 and Figure 5, respectively. These matrices will be called and , respectively.
Figure 2. Seed parity-check matrices for and .
Figure 3. Seed parity-check matrix for . Read the five strips from top to bottom.

Figure 4. Recursive parity-check matrix for even input length . Read the strips from top to bottom.

Figure 5. Recursive parity-check matrix for odd input length . Read the strips from top to bottom.
To prove that the resulting code is a perfect 2-burst-correcting code we have to show that for each syndrome obtained from , there exists a syndrome , where is a vector of length 3 that can have each one of the 27 possibilities in and in . Moreover, also the syndrome , where 0 is a vector of length and is any nonzero ternary vector of length 3, should be obtained.
In these two matrices, each block of length contains the consecutive columns . The three rows below such columns form a matrix , , whose columns are . The matrix has period two in its columns, i.e., all the even columns are the same and all the odd columns are the same. All the columns below in , have each one of the 27 ternary vectors of length three exactly once. The same is true for all the columns below in . Furthermore, each one of , also form each one of the 27 ternary vectors of length 3 exactly once. The same is true for , , and , where all the computations are modulo 3. This can also be observed by noting that if the three entries of the vector below is then the vector below is . A more formal proof will be given in the full-version of this paper. Since the parity-check matrix form a perfect 2-burst-correcting codes, it follows that to prove that and are parity-check matrices of perfect 2-burst-correcting codes we have to show that there are 27 distinct ternary vectors of length 3 below the combinations of columns, , , , , , , and 26 nonzero distinct such vectors for the zero column of length . This should be readily verified and hence using the seeds for , we have the following consequence.
Theorem 1. For each there exists an acyclic ternary linear perfect 2-burst-correcting code of length and redundancy .
Conclusion
A recursive construction for ternary perfect 2-burst-correcting codes was presented for each redundancy . For redundancy such code does not exist.
Comprehensive search, but not exhaustive, on more than 10 sets of parameters, was not able to find any seed for other perfect -burst-correcting code. Hence, we suggest the following conjecture
Conjecture 1. Let be a prime power and let . If an acyclic linear code over is perfect -burst-correcting, then , , and its redundancy is at least 5.
References
- [1]K. A. S. Abdel-Ghaffar, On the existence of optimum cyclic burst correcting codes over GF(q), IEEE Trans. Inf. Theory 34 (1988), 329–332.
- [2]K. A. S. Abdel-Ghaffar, R. J. McEliece, A. M. Odlyzko, and H. C. A. van Tilborg, On the existence of optimum cyclic burst correcting codes, IEEE Trans. Inf. Theory IT-32 (1986), 768–775.
- [3]N. M. Abramson, A class of systematic codes for nonindependent errors, IRE Trans. Inf. Theory IT-5 (1959), 150–157.DOI
- [4]C. L. Chen, Error-correcting codes with byte error detection capabilities, IEEE Trans. Comput. C-32 (1983), 615–621.DOI
- [5]C. L. Chen, Byte oriented error-correcting code for semiconductor memory systems, IEEE Trans. Comput. C-35 (1986), 646–648.DOI
- [6]B. Elspas and R. A. Short, A note on optimum burst-error-correcting codes, IRE Trans. Inf. Theory IT-8 (1962), 39–42.DOI
- [7]T. Etzion, Perfect byte-correcting codes, IEEE Trans. Inf. Theory 44 (1998), 3140–3146.DOI
- [8]T. Etzion, Constructions for perfect 2-burst-correcting codes, IEEE Trans. Inf. Theory 47 (2001), 2553–2555.DOI
- [9]T. Etzion, Perfect Codes and Related Structures, World Scientific, 2022.DOI
- [10]G. Sac Himelfarb and M. Schwartz, On the burst-covering radius of binary cyclic codes, arXiv:2601.00435v3 (2026).arxiv.org/abs/2601.00435
- [11]N. R. Rao and E. Fujiwara, Error-Control Coding for Computer Systems, Englewood Cliffs, NJ: Prentice-Hall, 1989.
- [12]S. H. Reiger, Codes for the correction of “clustered” errors, IRE Trans. Inf. Theory IT-6 (1960), 16–21.DOI
- [13]Y. Sun, Z. Lu, Y. Zhang, and G. Ge, Asymptotically optimal codes for (t, s)-burst error, IEEE Trans. Inf. Theory 71 (2025), 1570–1584.arxiv.org/abs/2403.11750
- [14]H. Wei and M. Schwartz, Perfect codes correcting a single burst of limited-magnitude errors, IEEE Trans. Inf. Theory 69 (2023), 951–962.

