A decoding algorithm for binary linear codes using Groebner bases

Similar documents
Standard Bases for Linear Codes over Prime Fields

Lecture 15: Algebraic Geometry II

POLYNOMIAL DIVISION AND GRÖBNER BASES. Samira Zeada

Gröbner Bases over a Dual Valuation Domain

Problem Set 1 Solutions

21073 Hamburg, GERMANY

PREMUR Seminar Week 2 Discussions - Polynomial Division, Gröbner Bases, First Applications

ABSTRACT. Department of Mathematics. interesting results. A graph on n vertices is represented by a polynomial in n

Lecture 1. (i,j) N 2 kx i y j, and this makes k[x, y]

Counting Zeros over Finite Fields with Gröbner Bases

Groebner Bases, Toric Ideals and Integer Programming: An Application to Economics. Tan Tran Junior Major-Economics& Mathematics

Gröbner Bases & their Computation

Computing Minimal Polynomial of Matrices over Algebraic Extension Fields

Groebner Bases and Applications

1 xa 2. 2 xan n. + c 2 x α 2

Lesson 14 Properties of Groebner Bases

4 Hilbert s Basis Theorem and Gröbner basis

On the minimal free resolution of a monomial ideal.

5 The existence of Gröbner basis

Lecture 2: Gröbner Basis and SAGBI Basis

Math 4370 Exam 1. Handed out March 9th 2010 Due March 18th 2010

Polynomial interpolation over finite fields and applications to list decoding of Reed-Solomon codes

Algebraic Geometry I

S-Polynomials and Buchberger s Algorithm

Solving systems of polynomial equations and minimization of multivariate polynomials

Gröbner Bases, Ideal Computation and Computational Invariant Theory

MCS 563 Spring 2014 Analytic Symbolic Computation Monday 27 January. Gröbner bases

M3P23, M4P23, M5P23: COMPUTATIONAL ALGEBRA & GEOMETRY REVISION SOLUTIONS

Polynomials, Ideals, and Gröbner Bases

Abstract Algebra for Polynomial Operations. Maya Mohsin Ahmed

Coding Theory: A Gröbner Basis Approach

Applications of results from commutative algebra to the study of certain evaluation codes

GRÖBNER BASES AND POLYNOMIAL EQUATIONS. 1. Introduction and preliminaries on Gróbner bases

THE FUNDAMENTAL THEOREM ON SYMMETRIC POLYNOMIALS. Hamza Elhadi S. Daoub

Algorithms for computing syzygies over V[X 1,..., X n ] where V is a valuation ring

Gröbner Bases. eliminating the leading term Buchberger s criterion and algorithm. construct wavelet filters

Rewriting Polynomials

Computational Theory of Polynomial Ideals

Algebra Homework, Edition 2 9 September 2010

An Improvement of Rosenfeld-Gröbner Algorithm

On the Inoue invariants of the puzzles of Sudoku type

arxiv: v1 [hep-lat] 13 Oct 2017

Math 615: Lecture of January 10, 2007

Gröbner bases for the polynomial ring with infinite variables and their applications

SYMMETRIC POLYNOMIALS

Möller s Algorithm. the algorithm developed in [14] was improved in [18] and applied in order to solve the FGLM-problem;

COMPUTATIONAL COMMUTATIVE ALGEBRA NOTES

Bounding the number of affine roots

Polynomials and Gröbner Bases

FOR GRASSMAN ALGEBRAS IN A MAPLE PACKAGE MR. TROY BRACHEY. Tennessee Tech University OCTOBER No

The F 4 Algorithm. Dylan Peifer. 9 May Cornell University

Computing Free Resolutions in Macaulay2

MATH 497A: INTRODUCTION TO APPLIED ALGEBRAIC GEOMETRY

Reversely Well-Ordered Valuations on Polynomial Rings in Two Variables

Math 121 Homework 2 Solutions

On the BMS Algorithm

MATH 433 Applied Algebra Lecture 21: Linear codes (continued). Classification of groups.

Page 23, part (c) of Exercise 5: Adapt the argument given at the end of the section should be Adapt the argument used for the circle x 2 +y 2 = 1

Comparison between XL and Gröbner Basis Algorithms

Powers and Products of Monomial Ideals

Summer Project. August 10, 2001

RECURSIVE RELATIONS FOR THE HILBERT SERIES FOR CERTAIN QUADRATIC IDEALS. 1. Introduction

f(x) = h(x)g(x) + r(x)

The Hamming Codes and Delsarte s Linear Programming Bound

Algebraic Optimization with Applications to System Theory

Tangent cone algorithm for homogenized differential operators

A gentle introduction to Elimination Theory. March METU. Zafeirakis Zafeirakopoulos

Higher-Dimensional Analogues of the Combinatorial Nullstellensatz

On the stable set of associated prime ideals of monomial ideals and square-free monomial ideals

Interval Gröbner System and its Applications

Modular Algorithms for Computing Minimal Associated Primes and Radicals of Polynomial Ideals. Masayuki Noro. Toru Aoyama

ERRATA. Abstract Algebra, Third Edition by D. Dummit and R. Foote (most recently revised on February 14, 2018)

General error locator polynomials for binary cyclic codes with t 2 and n < 63

POLYNOMIAL FUNCTIONS IN THE RESIDUE CLASS RINGS OF DEDEKIND DOMAINS arxiv: v4 [math.nt] 25 Sep 2018

MATH/MTHE 406 Homework Assignment 2 due date: October 17, 2016

3. Coding theory 3.1. Basic concepts

An Algebraic Geometric Approach to Analyze Static Voltage Collapse in a Simple Power System Model

Integral Extensions. Chapter Integral Elements Definitions and Comments Lemma

Factorization in Polynomial Rings

Computational methods in the study of symplectic quotients

Algebraic Proof Systems

MIT Algebraic techniques and semidefinite optimization February 16, Lecture 4

1 Rings 1 RINGS 1. Theorem 1.1 (Substitution Principle). Let ϕ : R R be a ring homomorphism

PRIMARY DECOMPOSITION FOR THE INTERSECTION AXIOM

15.083J Optimization over Integers. Lectures 13-14: Algebraic geometry and integer optimization

On the relation of the Mutant strategy and the Normal Selection strategy

ALGEBRAIC STRUCTURE OF THE MINIMAL SUPPORT CODEWORDS SET OF SOME LINEAR CODES. Irene Márquez-Corbella. Edgar Martínez-Moro

8 Appendix: Polynomial Rings

CHAPTER I. Rings. Definition A ring R is a set with two binary operations, addition + and

INITIAL COMPLEX ASSOCIATED TO A JET SCHEME OF A DETERMINANTAL VARIETY. the affine space of dimension k over F. By a variety in A k F

Computing the Sullivan Milnor Moore S.S. and the rational LS category of certain spaces

Introduction to Gröbner Bases for Geometric Modeling. Geometric & Solid Modeling 1989 Christoph M. Hoffmann

Arrangements, matroids and codes

Pseudo symmetric monomial curves

Reverse Berlekamp-Massey Decoding

Properties of Real Numbers

ALGEBRAIC CHARACTERIZATION OF UNIQUELY VERTEX COLORABLE GRAPHS

Section III.6. Factorization in Polynomial Rings

Grobner Bases: Degree Bounds and Generic Ideals

Lecture Notes Math 371: Algebra (Fall 2006) by Nathanael Leedom Ackerman

Transcription:

A decoding algorithm for binary linear codes using Groebner bases arxiv:1810.04536v1 [cs.it] 9 Oct 2018 Harinaivo ANDRIATAHINY (1) e-mail : hariandriatahiny@gmail.com Jean Jacques Ferdinand RANDRIAMIARAMPANAHY (2) e-mail : randriamiferdinand@gmail.com Toussaint Joseph RABEHERIMANANA (3) e-mail : rabeherimanana.toussaint@yahoo.fr 1,2,3 Mention : Mathematics and Computer Science, Domain : Sciences and Technologies, University of Antananarivo, Madagascar October 11, 2018 Abstract It has been discovered that linear codes may be described by binomial ideals. This makes it possible to study linear codes by commutative algebra and algebraic geometry methods. In this paper, we give a decoding algorithm for binary linear codes by utilizing the Groebner bases of the associated ideals. Keywords : Linear code, Groebner basis, decoding. MSC 2010 : 13P10, 94B05, 94B35 1 Introduction Coding theory is important for data transmission through noisy communication channels. During the transmission, errors may occur. Linear codes form an important class of error correcting codes. Bruno Buchberger introduced the theory of Groebner bases for polynomial ideals in 1965. The Groebner bases theory can be used to solve some problems concerning the ideals by developing computations in multivariate polynomial rings. Connection between linear codes and ideals in polynomial rings was presented in [2]. It was proved that a Groebner basis of the ideal associated to a binary linear code can be used for determining the minimum distance. In [4], it has been proved that a linear code can be described by a binomial ideal, and a Groebner basis with respect to a lexicographic order for the binomial ideal is determined. The aim of this paper is to give full decoding algorithm for binary linear codes via Groebner bases, which completes the decoders presented in [4, 2]. 1

2 Groebner bases In this section, we recall some definitions and basic properties about Groebner basis (see[3]) which are useful to our results. Let k be an arbitrary field. N denotes the set of non negative integers. A monomial in the m variables X 1,...,X m is a product of the form X α 1 1...Xm αm, where all the exponents α 1,...,α m are in N. Let α = (α 1,...,α m ) N m. We set X α = X α 1 1...Xm αm. When α = (0,...,0), note that X α = 1. We also let α = α 1 + +α m denote the total degree of the monomial X α. We define the sum α+β = (α 1 +β 1,...,α m +β m ) N m with β = (β 1,...,β m ) N m. A polynomial f in X 1,...,X m with coefficients in k is a finite linear combination with coefficients in k of monomials. A polynomial f will be written in the form f = α a αx α, a α k, where the sum is over a finite number of m-tuples α = (α 1,...,α m ). k[x 1,...,X m ] denotes the ring of all polynomials in X 1,...,X m with coefficients in k. A monomial order on k[x 1,...,X m ] is any relation > on N m, or equivalently, any relation on the set of monomials X α, α N m, satisfying : (i) > is a total ordering on N m, (ii) if α > β and γ N m, then α+γ > β +γ, (iii) > is a well-ordering on N m. A first example is the lexicographic order. Let α = (α 1,...,α m ) and β = (β 1,...,β m ) N m. We say α > lex β if, in the vector difference α β Z m, the left-most nonzero entry is positive. We will write X α > lex X β if α > lex β. A second example is the graded lexicographic order. Let α,β N m, we say α > grlex β if α > β, or α = β and α > lex β. Let f = α a αx α be a nonzero polynomial in k[x 1,...,X m ] and let > be a monomial order. The multidegree of f is multideg(f) = max(α N m /a α 0), the maximum is taken with respect to >. The leading coefficient of f is lc(f) = a multideg(f) k. The leading monomial of f is lm(f) = X multideg(f). The leading term of f is lt(f) = lc(f).lm(f). Theorem 2.1. Fix a monomial order on N m, and let F = (f 1,...,f s ) be an ordered s-tuple of polynomials in k[x 1,...,X m ]. Then every f k[x 1,...,X m ] can be written as f = a 1 f 1 + + a s f s + r, where a i,r k[x 1,...,X m ], and either r = 0 or r is a linear combination, with coefficients in k, of monomials, none of which is divisible by any of lt(f 1 ),...,lt(f s ). We will call r a remainder of f on division by F. Furthermore, if a i f i 0, then we have multideg(f) multideg(a i f i ). Remark 2.2. The operation of computing remainders on division by F = (f 1,...,f s ) is linear over k. That is, if the remainder on division of g i by F is r i, i = 1,2, then, for any c 1,c 2 k, the remainder on division of c 1 g 1 +c 2 g 2 is c 1 r 1 +c 2 r 2. Let I k[x 1,...,X m ] be an ideal other than {0}. We denote by lt(i) the set of leading terms of elements of I. Thus lt(i) = {cx α /there exists f I with lt(f) = cx α }. For each subset S of k[x 1,...,X m ], the ideal of k[x 1,...,X m ] generated by S is denoted by S. Theorem 2.3 (Hilbert Basis Theorem). Every ideal I k[x 1,...,X m ] has a finite generating set. That is, I = g 1,...,g t for some polynomials g 1,...,g t I. 2

Definition 2.4. Fix a monomial order. A finite subset G = {g 1,...,g t } of an ideal I k[x 1,...,X m ] is said to be a Groebner basis for I if lt(g 1 ),...,lt(g t ) = lt(i). Proposition 2.5. Fix a monomial order. Every ideal I in the polynomial ring k[x 1,...,X m ] other than {0} has a Groebner basis. Furthermore, any Groebner basis for an ideal I is a basis of I. Proposition 2.6. Let G = {g 1,...,g t } be a Groebner basis for an ideal I k[x 1,...,X m ] and let f k[x 1,...,X m ]. Then there is a unique r k[x 1,...,X m ] with the following properties : (i) No term of r is divisible by any of lt(g 1 ),...,lt(g t ). (ii) There is g I such that f = g +r. In particular, r is the remainder on division of f by G no matter how the elements of G are listed when using the division algorithm. Corollary 2.7. Let G = {g 1,...,g t } be a Groebner basis for an ideal I k[x 1,...,X m ] and let f k[x 1,...,X m ]. Then f I if and only if the remainder on division of f by G is zero. We will write f F for the remainder on division of f by the ordered s-tuple F = (f 1,...,f s ). If F is a Groebner basis for f 1,...,f s, then we can regard F as a set without any particular order. Let f,g k[x 1,...,X m ] be nonzero polynomials. If multideg(f) = α = (α 1,...,α m ) and multideg(g) = β = (β 1,...,β m ), then let γ = (γ 1,...,γ m ) where γ i = max(α i,β i ) for each i. We call X γ the least common multiple of lm(f) and lm(g), written X γ = lcm(lm(f),lm(g)). The S-polynomial of f and g is the combination S(f,g) = Xγ Xγ.f lt(f) lt(g).g Theorem 2.8. Let I be a polynomial ideal. A basis G = {g 1,...,g t } for I is a Groebner basis for I if and only if for all pairs i j, the remainder on division of S(g i,g j ) by G listed in some order is zero. Remark 2.9. Let I k[x 1,...,X m ] be an ideal, and let G be a Groebner basis of I. Then f G = g G if and only if f g I. A reduced Groebner basis for a polynomial ideal I is a Groebner basis G for I such that : (i) lc(p) = 1 for all p G (ii) For all p G, no monomial of p lies in lt(g {p}) Proposition 2.10. Let I {0} be a polynomial ideal. Then, for a given monomial order, I has a unique reduced Groebner basis. 3 Linear codes and binomial ideals Let F p be the finite field with p elements where p is a prime number. A linear code C of length n and dimension k over F p is the image of a linear (injective) mapping ψ : F k p F n p where k n. The elements of C are called the codewords. Each word c = (c 1,...,c n ) F n p may be represented by the monomial X c = X c 1 1...Xcn n and is considered as an integral vector in 3

X c. if c = (0,...,0), then X c = 1. We define the support of an element c = (c 1,...,c n ) F n p by supp(c) := {i/c i 0}. The weight of a word c = (c 1,...,c n ) F n p (or Xc ) is defined by w(c) := card(supp(c)), i.e. the number of nonzero entries in c. The minimum distance of the linear code C is d := min{d(x,y)/x,y C,x y} where d(x,y) := card({i/x i y i }) with x = (x 1,...,x n ) and y = (y 1,...,y n ). We have also d := min{w(x)/x C,x 0}. A linear code C of length n and dimension k is called an [n, k]-code. Moreover, if the minimum distance is d, we say that C is an [n,k,d]-code. Let C be an [n,k]-code, e i = (ζ i1,...,ζ ik ) where i = 1,...,k the canonical basis of F k p and ψ(e i ) = (g i1,...,g in ). The generating matrix of C is the matrix of dimension k n defined by G = (g ij ) where g ij F p. The linear code C is represented as follows C = {xg/ x F k p}. We will say that G is in standard form if G = (I k M) where I k is the k k identity matrix. Let C be an [n,k]-code over F p. Define the ideal associated with C as (see[2, 6]) I C := X c X c c c C + X p i 1 1 i n. (1) Let C be an [n,k]-code over F p and G = (g ij ) = (I k M) (2) a generating matrix in standard form. Let m i be the vector of length n over F p defined by m i = (0,...,0,p g i,k+1,...,p g i,n ) (3) for 1 i k. We have X m i = X p g i,k+1 k+1...x p g i,n n = supp(m i ) =, then X m i = 1. j supp(m i ) X p g i,j j. In particular, if Theorem 3.1. Let us take the lexicographic order on K[X 1,...,X n ] with X 1 > X 2 > > X n. The code ideal I C has the reduced Groebner basis G = {X i X m i /1 i k} {X p i 1/k +1 i n}. (4) Proof. A proof can be found in [4]. 4 The decoding algorithm We now present our main results and the decoding algorithm. In what follows, we consider the case p = 2 and G denotes the reduced Groebner basis as in (4) for a binary linear code C. Theorem 4.1. Let C be an [n,k,d]-code over F 2 and suppose that C is t-error-correcting where t is the maximal integer such that 2t+1 d. Let v (F 2 ) n be a received word which contains at most t errors. Then the word given by (X v 1) G contains at most t nonzero entries if and only if (X v 1) (X v 1) G represents the codeword that is closest to the received word and the nonzero coordinates of the error vector are among the last n k coordinates of v. Proof. Suppose that the word given by (X v 1) G contains at most t nonzero components. By [4], (X v 1) (X v 1) G gives the codeword that is closest to the received word. And it is clear that (X v 1) G does not contain the variables X 1,...,X k. The converse is clear because (X v 1) G represents the error vector, thus ω((x v 1) G ) t. 4

Corollary 4.2. Let C be an [n,k,d]-code over F 2 and suppose that C is t-error-correcting where t is the maximal integer such that 2t+1 d. Let v (F 2 ) n be a received word which contains at most t errors. Then the word given by (X v 1) G contains more than t nonzero entries if and only if there is at least one nonzero coordinate of the error vector among the first k coordinates of v. From the above discussion, we have the following algorithm. Theorem 4.3. Let C be an [n,k,d]-code over F 2 and let G be the reduced Groebner basis for C defined as in (4). Suppose that the code C is t-error-correcting where t is the maximal integer such that 2t + 1 d. Let u = (u 1,...,u k,u k+1,...,u n ) (F 2 ) n be a received word which contains at most t errors. Then u can be decoded by the following algorithm: Input: u, G Output: a codeword c that is closest to u BEGIN - Compute X u 1 G. END - If ω(x u 1 G ) t, then the codeword c is given by (X u 1) X u 1 G. - If ω(x u 1 G ) > t, then determine v E = {(a 1,...,a k,0,...,0)/a i {0,1}, t} such that k i=1 a i ω(x u 1 (X v 1) G ) t ω(v), thus X u 1 (X v 1) X u 1 (X v 1) G gives the codeword c. In the case of the linear code which is one error correcting, we have a simple decoding algorithm Corollary 4.4. Let C be a binary linear code of length n and dimension k. Suppose that C is one error correcting. Let u (F 2 ) n be a received word which contains at most one error. - If ω(x u 1 G ) 1, then (X u 1) X u 1 G gives the codeword that is closest to the received word. - If ω(x u 1 G ) > 1, then there exists an integer i (1 i k) such that X u 1 G = X v i 1 G where vi = (0,...,0,1,0...,0), the integer 1 is the i-th coordinate of v i and c = u+v i is the codeword. It is clear that the previous result can be easily generalized to linear codes over F p. 5 Examples We consider the [7,4]-code C over F 2 where the generator matrix is given by 1 0 0 0 1 1 1 G = 0 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 1 1 1 0 By considering the lexicographic order on F 2 [X 1,...,X 7 ] with X 1 > X 2 > > X 7, the ideal I C (1) has the Groebner basis G whose elements are f 1 = X 1 X 5 X 6 X 7 f 5 = X5 2 1 5

f 2 = X 2 X 6 X 7 f 6 = X6 2 1 f 3 = X 3 X 5 X 7 f 7 = X7 2 1 f 4 = X 4 X 5 X 6 Let u = (1,0,0,1,1,0,0) be a received word. We have X u = X 1 X 4 X 5, by the division of X u 1 by G, we obtain X u 1 = X 4 X 5 (f 1 )+X 6 X 7 (f 4 )+X 5 X 7 (f 5 )+X 5 X 7 1. Since C is one error correcting and ω(x 5 X 7 1) = 2 > 1, then by Corollary 4.4 and from the expression of f 3, there exists i = 3 such that X u 1 G = X v G 3 1 where v3 = (0,0,1,0,0,0,0). Thus the codeword is c = u+v 3 = (1,0,1,1,1,0,0) C. Let v = (1,1,0,1,0,1,1) (F 2 ) 7 be another received word. Since X v 1 = X 1 X 2 X 4 X 6 X 7 1 thenx v 1 = X 2 X 4 X 6 X 7 (f 1 )+X 4 X 5 (f 2 )+X 5 X 6 X 7 (f 4 )+X 7 1. We haveω(x v 1 G ) = ω(x 7 1) = 1 1. Then by Corollary 4.4, the codeword is c = (1,1,0,1,0,1,1)+(0,0,0,0,0,0,1) = (1,1,0,1,0,1,0) C. References [1] W. Adams and P. Loustaunau, An Introduction to Groebner Bases, American Mathematical Society, Vol.3, 1994. [2] M. Borges-quintana, M. Borges-trenard, P. Fitzpatrick and E. Martinez-moro, Groebner bases and combinatorics for binary codes, Applicable Algebra in Engineering Communication and Computing - AAECC, Vol.19, 2008, pp. 393-411. [3] D. Cox, J. Little and D. O Shea, Ideals, Varieties, and Algorithms, Springer, 1996. [4] M. Saleemi and K.-H. Zimmermann, Groebner Bases for Linear Codes, International journal of Pure and Applied Mathematics, 2010, 62: 481-491. [5] M. Saleemi, Coding Theory via Groebner Bases, Thesis, 2012. [6] M. Saleemi and K.-H. Zimmermann, Linear Codes as Binomial Ideals, International Journal of Pure and Applied Mathematics, Vol.61, June 2010, pp. 147-156. 6