betaFeedback

WorksComputer Science

Ternary Perfect 22-Burst-Correcting Codes

Abstract

A construction for a ternary perfect linear 22-burst-correcting code is presented for every redundancy r≥5r \geq 5. The construction is recursive with seeds given for 5≤r≤75 \leq r \leq 7. The construction of redundancy r≥8r \geq 8 is derived from a code of redundancy r−3r-3 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 (n,k)(n,k) code denote a linear code of length nn and dimension kk. The redundancy rr of such a code is r=n−kr=n-k. A code is called a bb-burst-correcting code if it can correct any single burst of length bb or less. A code is called cyclic bb-burst-correcting code if it can correct any single cyclic burst of length bb or less. Reiger [12] has proved that an (n,n−r)(n,n-r) bb-burst-correcting code (or cyclic bb-burst-correcting code), where n≥2bn \ge2b, must satisfy r≥2br \ge2b.

For an (n,n−r)(n,n-r) cyclic bb-burst-correcting code over Fq\mathbb{F}_q, the finite field with qq elements, there are n(q−1)qb−1n(q-1)q^{b-1} different cyclic bursts of length up to bb, each one corresponding to a different nonzero syndrome. Since the number of nonzero vectors of length rr is qr−1q^r-1, it follows that qr−1≥n(q−1)qb−1q^r-1 \ge n(q-1)q^{b-1}. Abramson [3] noted that this inequality for binary codes, and along with the fact that nn is an integer, it implies that

n≤qr−b+1−1q−1.(1)n \le\frac{q^{r-b+1}-1}{q-1}. \tag*{(1)}

A cyclic bb-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 r≥3r \ge3. Elspas and Short [6] constructed such codes for b=3b=3 and b=4b=4, Abdel-Ghaffar, McEliece, Odlyzko, and van Tilborg [2] have shown that infinitely many optimum codes exist for each b≥1b \ge1. It is clear that if a code satisfies (1) with equality then qr−1>n(q−1)qb−1q^r-1 > n(q-1)q^{b-1} (when b>1b>1), i.e., not all nonzero vectors of length rr are syndromes obtained as sums of at most bb adjacent columns. Therefore, these optimum codes are not perfect. For an (acyclic) (n,n−r)(n,n-r) bb-burst-correcting code, there are qb−1((q−1)(n−b+1)+1)−1q^{b-1}((q-1)(n-b+1)+1)-1 different bursts of length up to bb, each one corresponding to a different nonzero syndrome. Again, since the number of nonzero vectors of length rr is qr−1q^r-1, it follows that

qr−1≥qb−1((q−1)(n−b+1)+1)−1,q^r-1 \ge q^{b-1}((q-1)(n-b+1)+1)-1,

i.e.,

n≤qr−b+1−1q−1+b−1.(2)n \le\frac{q^{r-b+1}-1}{q-1}+b-1. \tag*{(2)}

A bb-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 Fq\mathbb{F}_q. He gave a necessary polynomial condition for attaining the length n=(qr−b+1−1)/(q−1)n=(q^{r-b+1}-1)/(q-1), 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 rr, 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 r×2r−1r \times2^{r-1} parity-check matrix H=[h1,…,hn]H=[h_1,\ldots,h_n], where n=2r−1n=2^{r-1}, by the (r+2)×4n(r+2) \times4n parity-check matrix H^\widehat{H} shown in Figure 1.

Binary recursion matrix
[h1 h2 ⋯ hn−1 hnhn hn−1 ⋯ h2 h2+h1h1+h2 h2 ⋯ hn−1 hn−1+hnhn+hn−1 hn−1 ⋯ h2 h11 1 ⋯ 1 10 0 ⋯ 0 01 0 ⋯ 1 11 0 ⋯ 1 00 1 ⋯ 0 10 0 ⋯ 0 00 1 ⋯ 1 01 1 ⋯ 0 1]\begin{bmatrix} h_1\ h_2\ \cdots\ h_{n-1}\ h_n & h_n\ h_{n-1}\ \cdots\ h_2\ h_2+h_1 & h_1+h_2\ h_2\ \cdots\ h_{n-1}\ h_{n-1}+h_n & h_n+h_{n-1}\ h_{n-1}\ \cdots\ h_2\ h_1 \\ 1\ 1\ \cdots\ 1\ 1 & 0\ 0\ \cdots\ 0\ 0 & 1\ 0\ \cdots\ 1\ 1 & 1\ 0\ \cdots\ 1\ 0 \\ 0\ 1\ \cdots\ 0\ 1 & 0\ 0\ \cdots\ 0\ 0 & 0\ 1\ \cdots\ 1\ 0 & 1\ 1\ \cdots\ 0\ 1 \end{bmatrix}

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 (t,s)(t,s)-burst, which replaces tt consecutive symbols by ss symbols, and constructed qq-ary codes with log⁡2n+O(1)\log_2 n+O(1) 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 rr has length n=3r+36n=\frac{3^r+3}{6}. The recursive construction starts with a parity-check matrix for code of length n=3r+36n=\frac{3^r+3}{6} and produces an (r+3)×(27n−13)(r+3)\times(27n-13) parity-check matrix. If H=[h1,…,hn]H=[h_1,\ldots,h_n], where n=3r+36n=\frac{3^r+3}{6} is the parity-check matrix for the code with redundancy rr, we choose 27 blocks of length n−1n-1 from h1,…,hn−1h_1,\ldots,h_{n-1} or h2,…,hnh_2,\ldots,h_n or hn−1,…,h1h_{n-1},\ldots,h_1 or hn,…,h2h_n,\ldots,h_2 and to each such blocks we add three appropriate rows. Between each of these 27 block we add one or two columns of length r+3r+3 to form the missing syndromes of length r+3r+3. There are 14 such added columns. The seeds for the construction are three parity-check matrices, 5×415\times41, 6×1226\times122, and 7×3657\times365. These seeds for r=5r=5, 66 and r=7r=7 are displayed Seed for r=5r=5: 5×415 \times41 matrix

Columns 1–41

[0220121201122201001200200011102212201122112111222000021022102122210101010122110200100121101211202222112020000210120201121201121110011110111210122100220011212102221111100011100011001011110111110101010111101]\begin{bmatrix} 02201212011222010012002000111022122011221\\ 12111222000021022102122210101010122110200\\ 10012110121120222211202000021012020112120\\ 11211100111101112101221002200112121022211\\ 11100011100011001011110111110101010111101 \end{bmatrix}

Seed for r=6r=6: 6×1226 \times122 matrix

Columns 1–61

[222020200010212021211021210101200212212011110011020201212100211110202020211222021111202021021202210211021000112111200010022021112220210000220210022200102220120222111200010122221121211112111110101222221112122120211211120211121222112111212111210211211200221010110010210001002010110122020221111121011200110010011111111011110110011110111111011101101111100101011110011011]\begin{bmatrix} 2220202000102120212110212101012002122120111100110202012121002\\ 1111020202021122202111120202102120221021102100011211120001002\\ 2021112220210000220210022200102220120222111200010122221121211\\ 1121111101012222211121221202112111202111212221121112121112102\\ 1121120022101011001021000100201011012202022111112101120011001\\ 0011111111011110110011110111111011101101111100101011110011011 \end{bmatrix}

Columns 62–122

[222101102021212112001111212010200200012122100011202022122200000111122222022222202110100020020010100002211022021112111102122012201212211100201120201200121101200021020010021101021111011212222212221202210012122111100210200011112210121112122012100010121112112121010121001200211101200112200110102100102000221110111011100111011001110011011011011101111000111110100110011000]\begin{bmatrix} 2221011020212121120011112120102002000121221000112020221222000\\ 0011112222202222220211010002002001010000221102202111211110212\\ 2012201212211100201120201200121101200021020010021101021111011\\ 2122222122212022100121221111002102000111122101211121220121000\\ 1012111211212101012100120021110120011220011010210010200022111\\ 0111011100111011001110011011011011101111000111110100110011000 \end{bmatrix}

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 nn and odd nn of the r×nr \times n parity-check matrix. The recursive matrices for even and odd input length nn appear in Figure 4 and Figure 5, respectively. These matrices will be called HevenH_{\mathrm{even}} and HoddH_{\mathrm{odd}}, respectively.

Figure 2. Seed parity-check matrices for r=5r=5 and r=6r=6.

Figure 3. Seed parity-check matrix for r=7r = 7. Read the five strips from top to bottom.

Recursive parity-check matrix for even input length $n$

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

Recursive parity-check matrix for odd input length $n$

Figure 5. Recursive parity-check matrix for odd input length nn. 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 ss obtained from HH, there exists a syndrome (s,t)(s,t), where tt is a vector of length 3 that can have each one of the 27 possibilities in HevenH_{\mathrm{even}} and in HoddH_{\mathrm{odd}}. Moreover, also the syndrome (0,t)(0,t), where 0 is a vector of length rr and tt is any nonzero ternary vector of length 3, should be obtained.

In these two matrices, each block of length n−1n-1 contains the n−2n-2 consecutive columns h2,h3,…,hn−1h_2,h_3,\ldots,h_{n-1}. The three rows below such n−2n-2 columns form a 3×(n−2)3 \times(n-2) matrix AkA_k, 1≤k≤271 \leq k \leq27, whose columns are a2k,a3k,…,an−1ka_2^k,a_3^k,\ldots,a_{n-1}^k. The matrix AkA_k has period two in its columns, i.e., all the even columns (aik, where i is even)(a_i^k,\ \text{where }i\text{ is even}) are the same and all the odd columns are the same. All the columns below h2h_2 in A1,A2,…,A27A_1,A_2,\ldots,A_{27} (a12,a22,…,a272)(a_1^2,a_2^2,\ldots,a_{27}^2), have each one of the 27 ternary vectors of length three exactly once. The same is true for all the columns below h3h_3 in A1,A2,…,A27A_1,A_2,\ldots,A_{27}. Furthermore, each one of a12+a13,a22+a23,…,a272+a273a_1^2+a_1^3,a_2^2+a_2^3,\ldots,a_{27}^2+a_{27}^3, also form each one of the 27 ternary vectors of length 3 exactly once. The same is true for 2a12+2a13,2a22+2a23,…,2a272+2a2732a_1^2+2a_1^3,2a_2^2+2a_2^3,\ldots,2a_{27}^2+2a_{27}^3, 2a12+a13,a22+a23,…,2a272+a2732a_1^2+a_1^3,a_2^2+a_2^3,\ldots,2a_{27}^2+a_{27}^3, and a12+2a13,a22+2a23,…,a272+2a273a_1^2+2a_1^3,a_2^2+2a_2^3,\ldots,a_{27}^2+2a_{27}^3, where all the computations are modulo 3. This can also be observed by noting that if the three entries of the vector below h2h_2 is (x,y,z)(x,y,z) then the vector below h3h_3 is (z,x+z,y)(z,x+z,y). A more formal proof will be given in the full-version of this paper. Since the parity-check matrix HH form a perfect 2-burst-correcting codes, it follows that to prove that HevenH_{\mathrm{even}} and HoddH_{\mathrm{odd}} 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, h1h_1, hnh_n, h1+h2h_1+h_2, 2h1+h22h_1+h_2, hn−1+hnh_{n-1}+h_n, 2hn−1+hn2h_{n-1}+h_n, and 26 nonzero distinct such vectors for the zero column of length rr. This should be readily verified and hence using the seeds for 5≤r≤75 \leq r \leq7, we have the following consequence.

Theorem 1. For each r≥5r \geq5 there exists an acyclic ternary linear perfect 2-burst-correcting code of length 3r+34\frac{3^r+3}{4} and redundancy rr.

Conclusion

A recursive construction for ternary perfect 2-burst-correcting codes was presented for each redundancy r≥5r \geq5. For redundancy r=4r=4 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 bb-burst-correcting code. Hence, we suggest the following conjecture

Conjecture 1. Let qq be a prime power and let 1<b<n1<b<n. If an acyclic linear code over Fq\mathbb{F}_q is perfect bb-burst-correcting, then b=2b=2, q∈{2,3}q \in\{2,3\}, and its redundancy is at least 5.

References

  1. [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. [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. [3]N. M. Abramson, A class of systematic codes for nonindependent errors, IRE Trans. Inf. Theory IT-5 (1959), 150–157.DOI
  4. [4]C. L. Chen, Error-correcting codes with byte error detection capabilities, IEEE Trans. Comput. C-32 (1983), 615–621.DOI
  5. [5]C. L. Chen, Byte oriented error-correcting code for semiconductor memory systems, IEEE Trans. Comput. C-35 (1986), 646–648.DOI
  6. [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. [7]T. Etzion, Perfect byte-correcting codes, IEEE Trans. Inf. Theory 44 (1998), 3140–3146.DOI
  8. [8]T. Etzion, Constructions for perfect 2-burst-correcting codes, IEEE Trans. Inf. Theory 47 (2001), 2553–2555.DOI
  9. [9]T. Etzion, Perfect Codes and Related Structures, World Scientific, 2022.DOI
  10. [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. [11]N. R. Rao and E. Fujiwara, Error-Control Coding for Computer Systems, Englewood Cliffs, NJ: Prentice-Hall, 1989.
  12. [12]S. H. Reiger, Codes for the correction of “clustered” errors, IRE Trans. Inf. Theory IT-6 (1960), 16–21.DOI
  13. [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. [14]H. Wei and M. Schwartz, Perfect codes correcting a single burst of limited-magnitude errors, IEEE Trans. Inf. Theory 69 (2023), 951–962.

Paper details

vlnc:W_mauw32wz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents