ERROR-CORRECTING CODES AND LATIN SQUARES

Similar documents
Construction of latin squares of prime order

Part 23. Latin Squares. Contents. 1 Latin Squares. Printed version of the lecture Discrete Mathematics on 4. December 2012

3. Coding theory 3.1. Basic concepts

And for polynomials with coefficients in F 2 = Z/2 Euclidean algorithm for gcd s Concept of equality mod M(x) Extended Euclid for inverses mod M(x)

MATH Examination for the Module MATH-3152 (May 2009) Coding Theory. Time allowed: 2 hours. S = q

Finite Mathematics. Nik Ruškuc and Colva M. Roney-Dougal

Hamming Codes 11/17/04

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

channel of communication noise Each codeword has length 2, and all digits are either 0 or 1. Such codes are called Binary Codes.

Chapter 3 Linear Block Codes

Orthogonal Arrays & Codes

Can You Hear Me Now?

Arrangements, matroids and codes

REED-SOLOMON CODE SYMBOL AVOIDANCE

MATH 291T CODING THEORY

The Hamming Codes and Delsarte s Linear Programming Bound

ELEC 519A Selected Topics in Digital Communications: Information Theory. Hamming Codes and Bounds on Codes

MATH 291T CODING THEORY

New quasi-symmetric designs constructed using mutually orthogonal Latin squares and Hadamard matrices

The BCH Bound. Background. Parity Check Matrix for BCH Code. Minimum Distance of Cyclic Codes

Linear Block Codes. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

16.36 Communication Systems Engineering

Latin Squares and Their Applications

9 THEORY OF CODES. 9.0 Introduction. 9.1 Noise

Lecture 8: Shannon s Noise Models

CSCI 2570 Introduction to Nanocomputing

Ma/CS 6b Class 24: Error Correcting Codes

Linear Algebra. F n = {all vectors of dimension n over field F} Linear algebra is about vectors. Concretely, vectors look like this:

MATH3302. Coding and Cryptography. Coding Theory

MAS309 Coding theory

Reed-Solomon codes. Chapter Linear codes over finite fields

Error control codes for parallel asymmetric channels

MATH32031: Coding Theory Part 15: Summary

Algebraic Codes for Error Control

Cyclic Redundancy Check Codes

Communications II Lecture 9: Error Correction Coding. Professor Kin K. Leung EEE and Computing Departments Imperial College London Copyright reserved

Today. Wrapup of Polynomials...and modular arithmetic. Coutability and Uncountability.

Chapter 6. BCH Codes

2012 IEEE International Symposium on Information Theory Proceedings

Lecture 12: November 6, 2017

Know the meaning of the basic concepts: ring, field, characteristic of a ring, the ring of polynomials R[x].

Quantum LDPC Codes Derived from Combinatorial Objects and Latin Squares

Example: sending one bit of information across noisy channel. Effects of the noise: flip the bit with probability p.

Shannon s noisy-channel theorem

A three-factor product construction for mutually orthogonal latin squares

Lecture 12. Block Diagram

Coding Theory: Linear-Error Correcting Codes Anna Dovzhik Math 420: Advanced Linear Algebra Spring 2014

Exercise 1. = P(y a 1)P(a 1 )

2. Polynomials. 19 points. 3/3/3/3/3/4 Clearly indicate your correctly formatted answer: this is what is to be graded. No need to justify!

A Brief Encounter with Linear Codes

An Enhanced (31,11,5) Binary BCH Encoder and Decoder for Data Transmission

MATH 433 Applied Algebra Lecture 19: Subgroups (continued). Error-detecting and error-correcting codes.

exercise in the previous class (1)

Coset Decomposition Method for Decoding Linear Codes

ECE8771 Information Theory & Coding for Digital Communications Villanova University ECE Department Prof. Kevin M. Buckley Lecture Set 2 Block Codes

Cyclic codes: overview

Modular numbers and Error Correcting Codes. Introduction. Modular Arithmetic.

The upper bound of general Maximum Distance Separable codes

Plotkin s Bound in Codes Equipped with the Euclidean Weight Function

Lecture 3: Error Correcting Codes


1 I A Q E B A I E Q 1 A ; E Q A I A (2) A : (3) A : (4)

Lecture 7 September 24

On Two Probabilistic Decoding Algorithms for Binary Linear Codes

ELEC-E7240 Coding Methods L (5 cr)

3360 LECTURES. R. Craigen. October 15, 2016

Digital Communications III (ECE 154C) Introduction to Coding and Information Theory

EE 229B ERROR CONTROL CODING Spring 2005

Reed-Solomon code. P(n + 2k)

Coding Theory and Applications. Linear Codes. Enes Pasalic University of Primorska Koper, 2013

Information redundancy

Characterizations of Strongly Regular Graphs: Part II: Bose-Mesner algebras of graphs. Sung Y. Song Iowa State University

Error Correcting Codes Questions Pool

Extending MDS Codes. T. L. Alderson

Efficient Decoding of Permutation Codes Obtained from Distance Preserving Maps

Lecture 1: Latin Squares!

Chapter 2. Error Correcting Codes. 2.1 Basic Notions

STRONG FORMS OF ORTHOGONALITY FOR SETS OF HYPERCUBES

MT5821 Advanced Combinatorics

Class-r hypercubes and related arrays

Outline. EECS Components and Design Techniques for Digital Systems. Lec 18 Error Coding. In the real world. Our beautiful digital world.

Solutions of Exam Coding Theory (2MMC30), 23 June (1.a) Consider the 4 4 matrices as words in F 16

Hadamard Codes. A Hadamard matrix of order n is a matrix H n with elements 1 or 1 such that H n H t n = n I n. For example,

Network Coding and Schubert Varieties over Finite Fields

Week 15-16: Combinatorial Design

Codes for Partially Stuck-at Memory Cells

Implementation of Galois Field Arithmetic. Nonbinary BCH Codes and Reed-Solomon Codes

CSCI-B609: A Theorist s Toolkit, Fall 2016 Oct 4. Theorem 1. A non-zero, univariate polynomial with degree d has at most d roots.

A STUDY OF HAMMING CODES AS ERROR CORRECTING CODES

Graph-based codes for flash memory

ECEN 604: Channel Coding for Communications

The Cosets Code. Aubrey Neumann. Summer 2010

We saw in the last chapter that the linear Hamming codes are nontrivial perfect codes.

Math 512 Syllabus Spring 2017, LIU Post

(Classical) Information Theory III: Noisy channel coding

Answers and Solutions to (Even Numbered) Suggested Exercises in Sections of Grimaldi s Discrete and Combinatorial Mathematics

Chapter 10 Combinatorial Designs

List Decoding of Reed Solomon Codes

Binary Linear Codes G = = [ I 3 B ] , G 4 = None of these matrices are in standard form. Note that the matrix 1 0 0

MATH3302 Coding Theory Problem Set The following ISBN was received with a smudge. What is the missing digit? x9139 9

Transcription:

ERROR-CORRECTING CODES AND LATIN SQUARES Ritu Ahuja Department of Mathematics, Khalsa College for Women, Civil Lines, Ludhiana 141001, Punjab, (India) ABSTRACT Data stored and transmitted in digital form in computers is subject to errors due to physical medium. Error correcting codes are used to correct errors occurred due to noise. They are widely used in modern technology to protect information from errors. There are various ways to construct codes. The idea of code construction with the aid of latin squares is not new. The paper reviews error correcting codes based on the concept and theory of Lain squares and the characteristics of orthogonal latin squares can be employed to correct errors in the codes. Keywords: Error Correcting Codes, Latin Squares, Noise I INTRODUCTION Coding Theory is an important subject of study and of great mathematical interest. As such a great deal of research is being devoted so as to find efficient codes by which digital information can be transited reliably through a noisy channel. Noise may be human error, thermal noise, imperfections in equipment etc. Noise in the communication channel distorts (corrupts) the information, hence the message received at the receiver is different from the original message sent. Error correcting codes provide us a tool to identify any errors occurred, locate them and correct them. So that the data can be sent as reliably as possible. II ERROR CORRECTING CODES A binary data is a sequence of 0 s and 1 s. An error correcting code adds some check digits (referred to as redundancy) to the original message that helps to detect if an error occurred in the message. In addition to detection more check digits can be added so that correction can be made in the received message. Several schemes exist to achieve error detection and correction. All error detection codes transmit more bits than were in the original data. The encoder transforms an n-letter word x into an m-letter world y with n<m. The decoder has to recover x correctly when upto r letters of y may be in error. When information is sent over a channel, we 227 P a g e

distinguish the cases whether the symbol is transmitted correctly or not. The difference of input and output sequence is measured by Hamming Distance. Def. 1 (Hamming distance) Hamming distance between two vectors (x 1, x 2,. x n ) and (y 1, y 2,.. y n ) is the number of positions where x and y differ. d (x,y) = {i: x i y i, 1 i n} Hamming weight of a sequence equals the number of non-zero positions in the vector. Def. 2: A block code B of length n is a subset of all possible vectors of length n over an alphabet A. Def. 3 (Linear Code): A q-ary linear code of length n is a subspace of vector space of all n-tuples over galois field q. An (n,m,d)-code is a code of length n, containing M codewords and having minimum distance d. We denote by A q (n,d) the largest value of M s.t. there exists a q-ary (n,m,d)-code. Def. 4 (Minimum distance): The minimum distance of a block code is the minimum number of positions in which two distinct codes differ i.e. d min = min{d(x,y): x y} Error correcting ability of a code is related to its minimum distance. Theorem 1: A code with minimum distance d can be used either to detect upto d 1 errors or to correct upto d 1 2 errors. Proof follows from the definition of minimum distance LATIN SQUARE A Latin Square of order q is a q q array whose entries are from a set of q distinct symbols such that every symbol is contained exactly once in each row and each column. Theorem 2: There exist a Latin square of order n for every positive integer n with Z n as the set of objects. Proof: We can take 1, 2, n as the first row and cycle it round once for each subsequent row to get Addition table of 1 2 3.. n 2 3 4. n 1 3 4 5. n 1 2 n 1 2.. n 1 Z Z n can also be taken as a Latin square of order n. nz 228 P a g e

ORTHOGONALITY Def. 5 Two Lain squares A = (a ij ) and B = (b ij ) of order q are mutually orthogonal if the q 2 ordered pairs (a ij, b ij ), i, j = 1, 2, n are all distinct. Example 1. a b c b c a c a b and a b c c a b b c a for a pair of mutually orthogonal Latin squares (MOLS) of order 3. Because, when superimposed they give Example 2: MOLS of order 2 do not exist. Let V = {1, 2} 1 2 2 1 Only Latin squares of order 2 are 2 1 and 1 2 ( a, a) ( b, b) ( c, c) ( b, c) ( c, a) ( a, b) ( c, b) ( a, c) ( b, a), which are not mutually orthogonal Latin squares from finite fields Orthogonal Latin squares can be constructed from finite fields.we first give an example.a theorem in this regard follows. Theorem 3: If n = p t, where p is a prime and t 1, then there exist n 1 mutually orthogonal latin squares of order n. Example: We consider finite field Z 5 to construct 4 mutually orthogonal Latin squares of order 5. Let f 1 = 1, f 2 = 2, f 3 = 3, f 4 = 5, f 5 = 0 The first Latin square A 1 = (a ij (1) ) are given by a ij (1) = f i + f j j 1 2 3 4 5 f j 1 2 3 4 5 i f i 1 1 2 3 4 0 1 2 2 3 4 0 1 2 3 3 4 0 1 2 3 4 4 0 1 2 3 4 5 0 1 2 3 4 0 Similarly, the second Latin square A 2 = (a ij (2) ) is given by a ij (2) = 2f i + f j 229 P a g e

j 1 2 3 4 5 f j 1 2 3 4 5 i f i 2f i 1 1 2 3 4 0 1 2 2 2 4 0 1 2 3 4 3 3 1 2 3 4 0 1 4 4 3 4 0 1 2 3 5 0 0 1 2 3 4 0 Repeating similar calculation for A 3 and A 4 we obtain the squares: 2 3 4 0 1 3 4 0 1 2 A 1 = 4 0 1 2 3 0 1 2 3 4 1 2 3 4 0 3 4 0 1 2 0 1 2 3 4 A 2 = 2 3 4 0 1 4 0 1 2 3 1 2 3 4 0 4 0 1 2 3 2 3 4 0 1 A 3 = 0 1 2 3 4 3 4 0 1 2 1 2 3 4 0 0 1 2 3 4 4 0 1 2 3 A 4 = 3 4 0 1 2 2 3 4 0 1 1 2 3 4 0 Definition 5: Let A = (a ij ) m m and B = (b ij ) n n two Latin square. Their direct product C = A B is an mn mn array, indexed by the elements of {1,.m} {1,.,n} and entries C (I,j),(k,I) = (a ik, b ji ) Example: Consider the following two Latin square 1 2 2 1, 2 3 1 3 1 2 1 2 3 230 P a g e

Their direct product, according to definition, is After renumbering this becomes (1,1), (1,2), (1,3), (2,1), (2,2), (2,3) (1,1) (1,2), (1,3), (1,1), (2,2), (2,3), (2,1) (1,2) (1,3), (1,1), (1,2), (2,3), (2,1), (2,2) (1,3) (1,1), (1,2), (1,3), (2,1), (2,2), (2,3) (2,1) (2,2), (2,3), (2,1), (1,2), (1,3), (1,1) (2,2) (2,3), (2,1), (2,2), (1,3), (1,1), (1,2) (2,3) (2,1), (2,2), (2,3), (1,1), (1,2), (1,3) 2 3 1 5 6 4 3 1 2 6 4 5 1 2 3 4 5 6 5 6 4 2 3 1 6 4 5 3 1 2 4 5 6 1 2 3 Theorem 4: If A and B are orthogonal Latin squares of order m, and if C and D are orthogonal Latin squares of order n. then A C and B D are orthogonal Latin squares. Corollary: If n 2 (mod 4) then there exists a pair of orthogonal Latin squares of order n. Proof: Let n=p a1 1 p a2 2 pk ak be the decomposition of n into a product of primes, while p 1 <.. < p k, since n 2 (mod 4) it follows that p a1 1 > 2, and so p ai i > 2 for every i, by theorem (4), for each i (1 i k) there exist a pair Ai, Bi of orthogonal Latin squares of order pi a1, but then the Latin square A = A1. Ak and B = B1. Bk are orthogonal by theorem (5) and have order n. Theorem 5: A q (4,3) q 2, for all q Proof: Suppose C is a q-ary (4, M, 3)-code and let x = x 1 x 2 x 3 x 4 and y = y 1 y 2 y 3 y 4 be distinct code words of C. Then (x 1, x 2 ) (y 1, y 2 ), for otherwise x and y could differ only in the last two paces. Contradicting d(c) = 3. Thus the M ordered pairs obtained by deleting the last two coordinates from C are all distinct vectors of (F q ) 2 and so we must have M q 2 Since q 2 ordered pairs starting off the code words of such code are distinct, such a code must have form {(i, j, a ij, b ij ) i,j F 2 q} We now review the connection between such codes and mutually orthogonal Latin squares. Theorem 6: There exists a q-ary (4, q 2, 3) code if and only if there exists a pair of mutually orthogonal Latin squares of order q. Proof: We show that a code C = {(i,j, a ij,b ij ) (i,j) F 2 q} is (4, q 2, 3)-code if an only if A = [a ij ] and B = [b ij ] form a pair of mutually orthogonal Latin squares of order q. 231 P a g e

Minimum distance 3 is possible if an only if for every pair of co-ordinate position, the ordered pairs appearing in those positions are distinct. The q 2 pairs (i, a ij ) and q 2 pairs (j, a ij ) are distinct if and only if A is a Latin square. q 2 pairs (i, b ij ) and (j, b ij ) each are distinct if an only if B is a Latin square. Finally q 2 pairs (a ij, b ij ) are distinct if an only if A and B are mutually orthogonal. So, Aq (4, 3) = q 2 if an only if there exists a pair of MOLS of order q. Theorem7: If q is a prime power and q 2, then there exists a pair of orthogonal Latin squares of order q. Proof: Let F q be the field GF(q) = { 0, 1,. q-1 }, where 0 = 0 (if q is prime, we may take i = i for each i). Let and v be two distinct non-zero elements GF(q). Let A = [a ij ] and B = [b ij ] be q q arrays defined by a ij = i + j and b ij = i + v j (The rows and columns of A and B are indexed by 0, 1,.q 1 ). We first verify that A and B are Latin squares. If two elements in the same row of A are identical, then we have i + j = i + j', i.e. i = j' and Implying j = j, since 0. Similarly, if two elements in the same column of A are identical, then we have i + j = i' + j, i.e. i = i' Implying that i = i'. Thus A, and similarly B, are Latin squares. To show A and B are orthogonal, suppose on the contrary that (a ij, b ij ) = (a i'j', b i'j' ), i.e. assume that the same ordered pair appears twice in the superposition of the squares. Then i + j = i' + j' and i + v j = i' + v j' which on subtraction implies that ( - v) j = ( - v) i Since v, we have j = j' and, consequently i = i' Cor. Consider the field GF(q) = { 0, 1,. q-1 }, where 0 = 0.Let A 1, A 2, A q-1 be qxq arrays,with rows and coloumns indexed by 0,1,2,.q-1, in which (i,j)th entry of A k is the element of GF(q) defined by a (k) ij = i + k j It follows exactly as in the proof of above theorem,that A 1, A 2, A q-1 form a set of mutually orthogonal latin squares of order q.this proves theorem 7. Theorem 8: If q = 0, 1, or 3 (mod 4), then there exists a pair of mutually orthogonal Latin square of order q. Proof: Suppose q = 0, 1 or 3 (mod 4). Then q is either odd or is divisible by 4. Hence, if q p p p t is the prime factorization of q, where p 1, p 2.. p t are distinct primes and h 1, h1 h2... ht 1 2 h 2. h t are positive integers, then p 3 for each i. Thus, by Theorem 10.8, there exists a pair of MOLS h i i of order p for each i. Repeated application of Theorem 10.10 then gives a pair of MOLS of h i i h h... ht p1 p2 pt q order 1 2 232 P a g e

According to Bose, Shrikhande and Parker (1960). There exists a pair of mutually orthogonal Latin squares of order q for all q except q = 2 and 6. An important result follows from this and theorems 5 and 6 Result: Aq(4,3) = q 2 for all q 2, 6 Theorem 9: A 6 (4, 3) = 34 Proof: The arrays 1 2 3 4 5 6 1 2 3 4 5 6 2 1 4 3 6 5 3 4 5 6 1 2 3 4 6 5 1 2 2 1 4 3 6 5 A= 4 3 5 6 2 1 and B = 6 5 1 2 4 3 5 6 2 1 4 3 4 3 6 5 2 1 5 6 2 1 4 3 5 6 2 1 3 4 6 5 1 2 3 4 form a pair of Latin squares which are as close to being orthogonal as is possible. They fail only in that (a 65, b 65 ) = (a 13, b 13 ) and (a 66, b 66 ) = (a 14, b 14 ). Thus the code {(i, j, a ij, b ij ) (i, j) (F 6 ) 2, (i, j) (6, 5) or (6, 6)} is a (4, 34, 3)-code. Now if there existed a (4, 35, 3)-code C over F 6, then C would have the form {(i, j, a ij, b ij ) (i, j) (F 6 ) 2, (i, j) (i 0, j 0 )} for some (i 0, j 0 ). It can be shown that the partial 6 6 arrays A = [a ij ] and B = [b ij ], each having the (i 0, j 0 ) th entry missing, can be completed to Latin squares which must be mutually orthogonal. This contradicts Tarry s nonexistence result of mutually orthogonal squares of order 6. Theorem 10: A q-ary (n, q 2, n-1)-code is equivalent to a set of n 2 mutually orthogonal Latin square of order q. Proof: As in theorem,an (n,q 2, n-1)-code C over F q has the form { ( i,j,a ij (1), a ij (2),, a ij (n-2) ) ( i,j) έ ( F q ) 2 } It can be shown that d(c)= n-1 if and only if A 1, A 2, A n-2,where A k = [a ij (2) ] III CONCLUSION There are various ways of constructing error correcting codes. Constructing them with the help of Latin squares provides another efficient way of constructing error correcting codes. We have seen a connection between the error connecting codes and Latin squares. In this regards, the optimal codes of length 4 and distance 3 were reviewed in this paper. Codes of higher length and distance can also be constructed using Latin squares. However, the codes of higher length are constructed with help of isotopic Latin squares. Abstract Latin squares, block designs and finite geometry, which is not the scope of present paper. 233 P a g e

REFERENCES 1. E. R. Berlekamp, algebraic coding theory (MC Graw Hill). 2. A. Nayak, error-correction codes (UWMath 135, July 29, 2005). 3. R.Hill A, first course in coding theory (clarendon press,oxford). 4. Sagheer AM, Abdul-Jabbar MAW, Error correcting codes using latin square. J. of al-anabar university of pure science 2 (3), 2008, 1-10. 4. J. Higham, A Product Theorem For Row Complete Latin Squares. J. Combi. Des 5, 1997, 311-318. 5. M. Y. Hsiao, D. C. Bossen and R. T.Chien, Orthogonal Latin Square codes, 1969 6. http://www.titoktan.hu/_raktar/_e_vilagi_gondolatok/latin%20squaresandcodes.htm 7. R.M.Wilson, Concerning the number of mutually orthogonal latin squares (Discrete Math., 9/1974, 181-198) 234 P a g e