List decoding of repeated codes
Abstract
Producción Científica
Full text
List decoding of repeated codes∗ F. Hernando†M. O’Sullivan ‡D. Ruano § Abstract Assuming that we have a soft-decision list decoding algorithm of a linear code, a new hard-decision list decoding algorithm of its repeated code is proposed in this article. Although repeated codes are not used for encoding data, due to their parameters, we show that they have a good performance with this algorithm. We compare, by computer simulations, our algorithm for the repeated code of a Reed-Solomon code against a decoding algorithm of a Reed-Solomon code. Finally, we estimate the decoding capability of the algorithm for Reed-Solomon codes and show that performance is somewhat better than our estimates. 1 Introduction List decoding was introduced by Elias [4] and Wozencraft [12]. A list decoder can produce several candidate codewords near the received vector, thus relaxing the requirements of unique decoding and enabling the possibility of decoding beyond half of the minimum distance. The efficient list decoding problem was unsolved for many years until Sudan [11] provided an algorithm for low rate Reed-Solomon codes. Later Guruswami and Sudan [5] gave a general answer for Reed-Solomon codes that has 2 steps: the interpolation step and the root finding step. A soft-decoding algorithm works under the assumption that the output of the channel is probabilistic information for the reliability of input data in contrast to a hard-decision list-decoding algorithm which assumes that a word of the ambient space is received. Koetter and Vardy created a soft-decision list decoding algorithm for RS codes based on the interpolation techniques of ∗Published in Applicable Algebra in Engineering, Communication and Computing. Volume 24, Issue 3–4, pages 237–253 (2013). This research was partially supported by the National Science Foundation under Grant No. CCF-0916492, by the Danish National Research Foundation and the National Science Foundation of China (Grant No.11061130539) for the Danish-Chinese Center for Applications of Algebraic Geometry in Coding Theory and Cryptography, by the Spanish grant No. MTM2007-64704, and by the Spanish MINECO under grant No. MTM2012-36917-C03-03. †Department of Mathematics, Universidad Jaume I, Spain. [email protected] ‡Department of Mathematics and Statistics, San Diego State University, USA. [email protected] §Department of Mathematical Sciences, Aalborg University, Denmark. [email protected] 1
Guruswami-Sudan [6]. This algorithm has 3 steps. First, probabilistic information from the channel is translated into an assignment of multiplicities to points in the plane—the points representing received location-value pairs. The other two steps are the interpolation and root finding steps. In this paper we consider the repeated code of a linear code C⊂Fn q, that is C`={(c, . . . , c) : c∈C} ⊂ F`n q, for some `≥2. We present a (hard-decision) list decoding algorithm for repeated codes, based on a soft-decision list decoding algorithm for the constituent code, C. In our algorithm, the multiplicity step is based on the algebraic structure of the code, rather than the information from the channel. Namely, it is an interpolation problem for a single block taking into account the information provided by the whole codeword. As far as the authors know, this is a novel idea in interpolation decoding. We consider two multiplicity assignment methods in detail, each of them gives rise to a different decoding algorithm. The first choice maximizes the score and, therefore, the error correction capability. The second one minimizes the sum of the multiplicities, thus it minimizes the computational time complexity. Repeated codes do not have good parameters, but we remark that the minimum distance of a linear code is only an estimate of unique-decoding capability, and it is an even rougher estimate of the list-decoding performance of the code. We show that repeated codes of Reed-Solomon codes using the algorithm in [8] and taking into account our new set up for the multiplicities, may have similar decoding capability to a Reed-Solomon code, with the same information ratio and length, using the algorithm in [9]. However, significant differences in the computation time are observed since the complexity of the first simulation depends on ninstead of `n, the length of the code. We shall compare our hard-decision list-decoding algorithm to another hard-decision list-decoding algorithm, since it does not make sense to compare it to a soft-decoding algorithm. Finally, we estimate the decoding capability of the algorithm for Reed- Solomon codes. Even though the bounds assume certain properties of the error vector, they are relatively close to experimental values in the examples. The paper is organized as follows: In Section 2 we recall the soft-decision interpolation problem for RS codes. In Section 3 we introduce our list decoding algorithm for repeated codes. In Section 4, we present some simulations of the decoding algorithm with MAGMA [2] and interpret the results. We estimate the number of errors tthat we can decode in Sections 5 and 6. Section 7 concludes the article. 2 Soft-Decoding Koetter and Vardy discovered a soft-decision list decoding algorithm for RS codes based on the interpolation techniques of Guruswami-Sudan [6], and later the interpolation step was described using Gr¨obner bases in [1, 9]. For our simulations, we use the algorithms in [8, 9] , which use the same approach, the only difference being the multiplicity assignment. We recall in this section the 2
soft-decoding algorithm in [8] for Reed-Solomon codes. Let α1, . . . , αnbe ndifferent points of the finite field Fqwith qelements and let Cbe the Reed-Solomon code with parameters [n, k, d] defined as C={(h(α1), h(α2), . . . , h(αn)) : deg(h)≤k−1}. For soft decision decoding, Koetter and Vardy [6] use reliability information provided by the channel to assign multiplicities mi,β to each point pi,β = (αi, β) for i= 1, . . . , n and β∈Fq. Let Mbe the collection of these multiplicities, M={(pi,β, mi,β) : i= 1, . . . , n;β∈Fq} Consider the ideal in Fq[x, y] of polynomials interpolating at the points of M with the desired multiplicities: IM={f∈Fq[x, y] : multp(f)≥m for (p, m)∈M},(1) where multp(f) denotes the multiplicity of fat p. For r= (r1, . . . , rn)∈Fn q, let hrbe the interpolating polynomial at the points (αi, ri) for i= 1, . . . , n. The key observation of Guruswami and Sudan is that for f∈IMand a codeword c, y−hcis a factor of f(x, y) when n X i=1 mi,ci>deg(f(x, hc)) (2) For a given Mwe therefore define for each r= (r1, . . . , rn)∈Fn q score(r) = n X i=1 mi,ri. We use the (1, k −1)-weighted degree of polynomial f=Pfi,jxiyj, which is defined to be deg1,k−1(f) = max{i+j(k−1) : fi,j 6= 0}. Extend the weighted degree to a monomial ordering by taking xayb>k−1xiyjif either deg1,k−1(xayb)>deg1,k−1(xiyj) or if degk−1(xayb) = degk−1(xiyj) and b>j. We may now interpret (2) as saying that a polynomial f(x, y) such that the score of cis larger than the (1, k −1)-degree of f(x, y) is divisible by y−hc. Factoring fwould produce the high scoring codeword c. The requirement that f(x, y) pass through (αi, β) with multiplicity mi,β imposes mi,β +1 2conditions, so overall we have N= n X i=1 X β∈Fq mi,β + 1 2,(3) conditions. There is an upper bound for the (1, k −1)-weighted degree dof a polynomial Q(x, y) given that Nconditions are imposed (see e.g. [8, Proposition 3]). 3
Hence, we look for an interpolating polynomial of the form P(i,j)∈Sfi,jxiyj, where S⊂ {(i, j) : i, j ≥0}is the subset of indices with (1, k −1)-degree less than d, and by choice of d,|S|> N. The minimal polynomial with respect to the >k−1is usually called Q(x, y). One method for obtaining Q(x, y), for example [8], is to compute a Gr¨obner basis of IMwith respect to the (1, k −1)-weighted degree and pick the smallest element in it. 3 List decoding of repeated codes Let C⊂Fn qbe a Reed-Solomon code with parameters [n, k, d] and generator matrix G. We will describe the algorithm for a Reed-Solomon code, however, the algorithm can be extended in a straightforward manner to any linear code provided with soft-decision list-decoding algorithm. We consider the repeated code of C, C`={(c, . . . , c) : c∈C}, which has parameters [`n, k, `d] and generator matrix (G|···|G) [10, Problem 17 of Ch. 1]. We will describe a hard-decision list decoding algorithm for C`by using a soft-decoding algorithm for C, thus we only have to define the matrix of multiplicities from a received word. Let c= (c1, . . . , cn)∈Cthen a typical codeword of C`is of the form c= (c1, . . . , cn, . . . , c1, . . . , cn)∈F`n q. One can also understand a vector of length `n as an `×nmatrix. Hence, if v∈ M(`×n, Fq) we denote by vj ithe entry corresponding to the j-th row (block) and the i-th column (position), for i= 1, . . . , n and j= 1, . . . , `. According to this notation a word in F`n qmay be represented as v= (v1 1, . . . , v1 n, . . . , v` 1, . . . , v` n). Let cbe the sent word and r=c+ethe received word with error weight t= wt(e). We have that r= (r1 1, . . . , r1 n, . . . , r` 1, . . . , r` n) and c= (c1 1, . . . , c1 n, . . . , c` 1, . . . , c` n). Since c∈C`, one has that cj i=ck i,for every i∈ {1, . . . , n}and j, k ∈ {1, . . . , `}. Therefore, rj i=rk iif and only if ej i=ek i. Hence if the received word has the same value in several positions it is likely that the error value in these positions is zero. Namely, the more positions where the values agree the more likely that these positions are error free. Moreover, the bigger the base field Fqthe more likely the previous assumption is right. Based on this fact we will define the multiplicities mi,β at the point pi,β = (αi, β) for the soft-decoding algorithm of C. For a received word r, we define two different assignment of multiplicities. For i= 1, . . . , n and β∈Fq: 4
(1) mi,β =|{j∈ {1, . . . , `}:rj i=β}|, or (2) mi,β = 1 if |{j∈ {1, . . . , `}:rj i=β}| ≥ b, where b∈ {1, . . . , `}. We will consider b=b`/2c+ 1 and b=b`/2cfor our simulations in Section 4. Example 3.1. Let r= (0,0,0,0,0,0,0,0,1,0,1,1,0,2,2) ∈F`n 3a received word with `= 5 and n= 3, i.e. using matrix notation r= 000 000 001 011 022 . We consider the multiplicities assignment for this word, the non-zero multiplicities are: m1,0= 5, m2,0= 3, m2,1= 1, m2,2= 1, m3,0= 2, m3,1= 2, m3,2= 1 for multiplicity assignment (1). m1,0= 1, m2,0= 1 for multiplicity assignment (2) with b= 3. m1,0= 1, m2,0= 1, m3,0= 1, m3,1= 1 for multiplicity assignment (2) with b= 2. For decoding, we will consider the soft-decision algorithm for C(for instance [8]) with these multiplicities. Trivially, we have that the computational complexity of this algorithm for C`equals the computational complexity of the soft-decoding algorithm for Cwith multiplicity assignments corresponding to the choice (1) or (2). For instance, for the first multiplicity assignment it is O(R1 2n2m5) using [8], where R=k/n is the rate of a block and m=max{mj,β :j= 1, . . . , n and β∈ Fq}. Thus, for the second multiplicity assignment, the complexity is O(R1 2n2) using [8]. Notice that for decoding a repetition code with parameters [n`, k, `d], we perform a list decoding of a Reed-Somon code of length n, whilst a list decoding of a [n`, k] Reed-Solomon code has complexity O((k/`n)1 2(`n)2m5) using [9]. That is, our method is about `3/2times faster than decoding a Reed-Solomon code with the same parameters. One may consider other heuristics for multiplicity assignment between (1) and (2), that is, 0 ≤mi,β ≤ |{j∈ {1, . . . , `}: rj i=β}|. We have considered these two multiplicity assignments since they represent extremes between (1) maximizing the score and (2) minimizing the time complexity. 3.1 Multiplicity assignment (1) For a word in C`, we consider its score using the first multiplicity assignment. Lemma 3.2. Let c= (c, . . . , c)be a sent codeword and let r=c+ebe a received word with wt(e) = t. Then score(c) = n X i=1 mi,ci=`n −t. 5
Proof. Note that for i= 1, . . . , n, one has that mi,ci=`−wt(e1 i, . . . , el i). Summing over the npositions gives the result. As the lemma shows, the score of the received word is a simple function of the number of errors t. In Section 6 we investigate the interplay between the number of conditions imposed, equation (3), and the score, we derive bounds for successful decoding of terrors, and we compare the bounds with the simulation results presented in Section 4. 3.2 Multiplicity assignment (2) Using the second multiplicity assignment, the score of a received word might be lower than the one obtained using the first multiplicity assignment. Therefore, the error correction capability is smaller. However, the computational complexity is lower since max{mj,β :j= 1, . . . , n and β∈Fq}is equal to 1. Note that if mi,β = 0 for every β∈Fqthen we are considering an erasure at position i∈ {1...,n}. We consider b=b`/2c+ 1 because if b≥ b`/2c+ 1, then, for i∈ {1, . . . , n}, mi,β = 0 for all β∈Fqbut for, at most, one. Hence, we will have either an erasure (we interpolate with multiplicity zero at that position) or we interpolate with multiplicity one. With this choice for bthe algorithm is very fast. Remark 3.3. Let us compare our algorithm with some approaches in the bibliography. A decoding algorithm for a repeated code C`can be obtained decoding every block rjof the received word rfor j= 1, . . . , ` until the decoded block c0 j verifies that (c0 j, . . . , c0 j) is at distance b(`d −1)/2cof the received word. This is the approach of [7] for quasi-cyclic codes, that is when Cis cyclic. One could also consider C`as a convolutional code [3]. However, all these approaches will have bad performance due to the poor parameters of the repeated codes. 4 Computer experiments We have compared the performance of our algorithm for the repetition code of a [n, k] Reed-Solomon code over Fpvto the list-decoding algorithm [9] for a [n`, k] Reed-Solomon code over Fpuwhere uis chosen so that pu> n`. The information rate of the two codes is the same, although the [n`, k] Reed-Solomon code uses larger symbol size. For each code we tested a range of values for tto determine the point where correction performance declined. We also compared the time required for decoding. In the repeated code case, we tested the algorithm described in the previous section for both multiplicity assignments. For the Reed-Solomon code over the larger field we used multiplicity 1 because for higher multiplicity, the algorithm is very slow. We have implemented in MAGMA the decoding algorithm described in Section 3: given the codeword c= (0,...,0) in a [n, k, d] Reed-Solomon code we consider the repeated codeword (c, . . . , c)∈C`. In particular we choose n= 63, `= 5 and several values for k. We consider terrors in tuniformly distributed 6
random positions among the `n positions, so it is possible that more than one error may occur in position i. We apply the algorithm in [8] with the prescribed multiplicities described using the multiplicity assignment (1) and (2) with b=b`/2c+ 1 = 3 and b=b`/2c= 2. We ran the procedure 10000 times each for different values of t. We declare success if the sent codeword is in the output list. For multiplicity assignment (2) the list has always size one since we are doing linear interpolation, and for multiplicity assignment (1) all the experiments produce size one as well. 1. Consider as block code the RS code with parameters [63,14,50] over F26. The repeated code with `= 5 has parameters [315,14,250]. Our simulations in Tables 1 and 2 show that we can uniquely decode about 226 errors using multiplicity assignment (1), 183 errors using multiplicity assignment (2) with b= 3 and 218 errors using multiplicity assignment (2) with b= 2. However, the algorithm using multiplicity assignment (2) with b= 3 is about 12 times (resp 6 times with b= 2) faster than the algorithm using multiplicity assignment (1). We compare the previous algorithms with list decoding of the RS code over F29with parameters [315,14,302]. Using multiplicity one we can decode about the same number of errors as with multiplicity assignment (1) but it is 176 times slower than the one with multiplicity assignment (1) and 1077 times slower than the simulation with multiplicity assignment (2) and b= 2, see Table 3. Table 1: List decoding [315,14,250] repeated code over F26with constituent [63,14,50] RS code, multiplicity assignment (1) t224 225 226 227 228 229 230 Number of success 10000 111.9999 .9996 .9992 .9989 Time 1435.190 1424.100 1428.570 1324.950 1329.510 1322.360 1322.220 Table 2: List decoding [315,14,250] repeated code over F26with constituent [63,14,50] RS code, multiplicity assignment (2) t182 183 184 185 217 218 219 Number of success 10000 ,b= 3 1 1 9999 .9997 − − − Time, b= 3 118.710 116.330 115.590 114.55 − − − Number of success 10000 ,b= 2 1 1 1 1 1 1 .9997 Time, b= 2 339.940 336.990 332.980 328.040 223.760 234.300 233.560 7
Table 3: List decoding [315,14,302] RS code over F29, multiplicity 1 t229 230 231 Number of success 10000 1 1 .3662 Time 250473 252184 258162 2. Consider as block code the RS code with parameters [63,40,24] over F26. The repeated code with `= 5 has parameters [315,40,120]. Our simulations in Tables 4 and 5 show that we can uniquely decode about 153 errors using multiplicity assignment (1), 110 errors using multiplicity assignment (2) with b= 3 (resp 150 errors with b= 2), but the algorithm using multiplicity assignment (2) is about 4.4 times faster with b= 3 (and 3.2 times faster with b= 2) than the algorithm using multiplicity assignment (1). We compare the previous algorithms with list decoding of the RS code over F29with parameters [315,40,276]. With multiplicity one we can decode more errors (177, see Table 6) than with multiplicity assignment (1) but it is 116 times slower than the one with multiplicity assignment (1) and it is 372 times slower than the one with multiplicity assignment (2) and b= 2. Table 4: List decoding [315,40,120] repeated code over F26with constituent [63,40,24] RS code, multiplicity assignment (1) t153 154 155 156 157 158 Number of success 10000 1.9999 .9999 .9998 .9999 .9999 Time 1453.680 1454.820 1458.830 1455.610 1454.390 1450.540 Table 5: List decoding [315,40,120] repeated code over F26with constituent [63,40,24] RS code, multiplicity assignment (2) t110 111 112 113 111 149 150 151 Number of success 10000 , b = 3 1 .9999 1 1 .9997 − − − Time, b= 3 327.160 322.680 318.270 315.290 309.640 − − − Number of success 10000 , b = 2 1 1 1 1 1 1 1 .9999 Time, b= 2 559.470 557.950 554.180 553.580 553.720 462.040 455.150 452.330 3. Consider as block code the RS code with parameters [63,54,10] over F26. The repeated code, with `= 5, has parameters [315,54,50]. Our sim- 8
Table 6: List decoding [315,40,276] RS code over F29, multiplicity 1 t175 176 177 178 Number of success 10000 111.2912 Time 161480 169346 169805 151520 ulations in Tables 7 and 8 show that we can uniquely decode about 94 errors using multiplicity assignment (1) and 62 errors using multiplicity assignment (2) with b= 3 (resp 89 with b= 2). However, the algorithm using muliplicity assignment (2) with b= 3 is about 2.5 times faster (2.2 times faster with b= 2) than the algorithm using multiplicity assignment (1). We compare the previous algorithms with list decoding of the RS code over F29with parameters [315,54,262]. Using multiplicity one, we can decode more errors, about 156, than with multiplicity assignment (1) but it is 89 times slower than the one with multiplicity assignment (1) and it is 207 times slower than with multiplicity assignment method (2) and b= 2, see Table 9. Table 7: List decoding [315,54,50] repeated code over F26with constituent [63,54,10] RS code, multiplicity assignment (1) t93 94 95 96 97 98 99 Number of success 10000 1 1 .9999 .9999 1 .9999 .9997 Time 1379.150 1372.370 1381.790 1388.470 1398.770 1405.480 1418.600 Table 8: List decoding [315,54,50] repeated code over F26with constituent [63,54,10] RS code, multiplicity assignment (2) t60 61 62 64 88 89 90 Number of success 10000 , b = 3 1 1 1 .9997 −−− Time, b= 3 539.10 540.940 530.780 527.040 −−− Number of success 10000 , b = 2 1 1 1 1 1 1 .9999 Time, b= 2 614.080 618.220 613.190 611.620 607.170 605.460 596.280 4. Finally, we consider an example over a field with characteristic 3. Consider as block code the RS code with parameters [26,14,13] over F33. The 9
Let xstand for indeterminates x1, . . . , xnand let 1be an n-tuple with 1 in each entry. Let |τ|=Pn i=1 τi. Consider the generating function B(x, s) = n Y i=1 (1 + sxi)`(7) The term in stin B(x, s) is X |τ|=t n Y i=1 ` τi(sxi)τi=stX |τ|=t n Y i=1 ` τi(xi)τi Taking the second derivatives of B(x, s) with respect to the xione finds that the term in stin Pn i=1 ∂2B ∂x2 i (x, s) is stX |τ|=tn Y i=1 ` τin X i=1 τi(τi−1)(xi)τi−2 Evaluating at x=1we get the term in stin Pn i=1 ∂2B ∂x2 i (1, s) is stX |τ|=tn Y i=1 ` τin X i=1 τi(τi−1) Thus the expected value of the final term Ais the coefficient of stin (2n` t)−1Pn i=1 ∂2B ∂x2 i (1, s) Computing from (7) we have n X i=1 ∂2B ∂x2 i (x, s) = s2 n X i=1 `(`−1)(1 + sxi)`−2 n Y j=1 j6=i (1 + sxj)` n X i=1 ∂2B ∂x2 i (1, s) = s2 n X i=1 `(`−1)(1 + s)n`−2 =s2n`(`−1)(1 + s)n`−2 The coefficient of stin (2n` t)−1Pn i=1 ∂2B ∂x2 i (1, s) is therefore Aexp =n`(`−1) (n` −2)! (t−2)!(n` −t)! (n` −t)!t! 2(n`)! =t(t−1)(`−1) 2(n` −1) In the following table for each code considered in Section 4 we show the maximum value tfor which the algorithm is able to decode in three cases: for the worst scenario, for the expected scenario, and for the best scenario (i.e. using 16
Amax,Aexp,Amin). We also list the range where experiments showed that decoding capability began to decline. It is interesting to see that the experimental results are somewhat better, even better than the best scenario (using Amin), particularly at higher rate. In the simulations, the number of monomials less than the leading term of the minimal Q(x, y) that was computed is noticeably smaller than the number of conditions imposed. In other words, the conditions imposed by interpolation are not independent. We have no explanation for this phenomenon, but it appears to be the key to the performance beyond our estimates. Table 13: Bounds for the correction capability using multiplicity assignment (1) code max exp min range [63,14]F26203 223 227 226-230 [63,40]F2689 130 142 153-158 [63,54]F2638 69 81 94-99 [26,14]F3349 64 69 65-66 7 Conclusion An efficient list-decoding algorithm for repeated codes, in particular for repeated Reed-Solomon codes is presented. The theoretical and experimental results show that decoding repeated codes with this algorithm yields surprisingly good error correction performance, nearly comparable to that of a Reed-Solomon codes over a larger field. Furthermore, the computational burden of the repeated code is much lower because of the smaller field size. References [1] M. Alekhnovich, Linear Diophantine equations over polynomials and soft decoding of Reed-Solomon codes. IEEE Trans. Inform.Theory, vol. 51, no. 7, pp. 2257-2265, 2005. [2] W. Bosma, J. Cannon, and C. Playoust, “The magma algebra system. I. the user language,” J. Symbolic Comput., vol. 24(3-4), pp. 235–265, 1997. [3] I. I. Dumer, “Concatenated codes and their multilevel generalizations,” in Handbook of coding theory, Vol. I, II. Amsterdam: North-Holland, 1998, pp. 1911–1988. [4] P. Elias, List decoding for noisy channels. Research Laboratory of Electronics, Massachusetts Institute of Technology, Cambridge, Mass., Rep. No. 335, 1957. 17
[5] V. Guruswami and M. Sudan, “Improved decoding of Reed-Solomon and algebraic-geometry codes,” IEEE Trans. Inform. Theory, vol. 45, no. 6, pp. 1757–1767, 1999. [6] R. Koetter and A. Vardy, “Algebraic soft-decision decoding of Reed- Solomon codes,” IEEE Trans. Inform. Theory, vol. 49, no. 11, pp. 2809– 2825, 2003. [7] K. Lally, “Quasicyclic codes - some practical issues,” in Proceedings. 2002 IEEE International Symposium on Information Theory, 2002. [8] K. Lee and M. E. O’Sullivan, “An interpolation algorithm using Groebner bases for soft-decision decoding of Reed-Solomon codes,” in Proceedings. 2006 IEEE International Symposium on Information Theory, 7 2006, pp. 2032–2036. [9] ——, “List decoding of Reed-Solomon codes from a Gr¨obner basis perspective,” J. Symbolic Comput., vol. 43, no. 9, pp. 645–658, 2008. [10] F. J. MacWilliams and N. J. A. Sloane, The theory of error-correcting codes. . Amsterdam: North-Holland Publishing Co., 1977, North-Holland Mathematical Library, Vol. 16. [11] M. Sudan, “Decoding of Reed-Solomon codes beyond the error-correction bound,” 1997, vol. 13, pp. 180–193. [12] J. M. Wozencraft, “List decoding,” in Quarterly Progress Report. MA:Res. Lab. Electronics, MIT: Cambridge, 1958, pp. 90–95. 18