Parity-check matrix
Incoding theory,aparity-check matrixof alinear block codeCis a matrix which describes the linear relations that the components of acodewordmust satisfy. It can be used to decide whether a particular vector is a codeword and is also used in decoding algorithms.
Definition[edit]
Formally, a parity check matrixHof a linear codeCis agenerator matrixof thedual code,C⊥.This means that a codewordcis inCif and only ifthe matrix-vector productHc⊤=0(some authors[1]would write this in an equivalent form,cH⊤=0.)
The rows of a parity check matrix are the coefficients of the parity check equations.[2]That is, they show how linear combinations of certain digits (components) of each codeword equal zero. For example, the parity check matrix
- ,
compactly represents the parity check equations,
- ,
that must be satisfied for the vectorto be a codeword ofC.
From the definition of the parity-check matrix it directly follows the minimum distance of the code is the minimum numberdsuch that everyd - 1columns of a parity-check matrixHare linearly independent while there existdcolumns ofHthat are linearly dependent.
Creating a parity check matrix[edit]
The parity check matrix for a given code can be derived from itsgenerator matrix(and vice versa).[3]If the generator matrix for an [n,k]-code is in standard form
- ,
then the parity check matrix is given by
- ,
because
- .
Negation is performed in the finite fieldFq.Note that if thecharacteristicof the underlying field is 2 (i.e., 1 + 1 = 0 in that field), as inbinary codes,then -P=P,so the negation is unnecessary.
For example, if a binary code has the generator matrix
- ,
then its parity check matrix is
- .
It can be verified that G is amatrix, while H is amatrix.
Syndromes[edit]
For any (row) vectorxof the ambient vector space,s=Hx⊤is called thesyndromeofx.The vectorxis a codeword if and only ifs=0.The calculation of syndromes is the basis for thesyndrome decodingalgorithm.[4]
See also[edit]
Notes[edit]
- ^for instance,Roman 1992,p. 200
- ^Roman 1992,p. 201
- ^Pless 1998,p. 9
- ^Pless 1998,p. 20
References[edit]
- Hill, Raymond (1986).A first course in coding theory.Oxford Applied Mathematics and Computing Science Series.Oxford University Press.pp.69.ISBN0-19-853803-0.
- Pless, Vera(1998),Introduction to the Theory of Error-Correcting Codes(3rd ed.), Wiley Interscience,ISBN0-471-19047-0
- Roman, Steven (1992),Coding and Information Theory,GTM,vol. 134, Springer-Verlag,ISBN0-387-97812-7
- J.H. van Lint (1992).Introduction to Coding Theory.GTM.Vol. 86 (2nd ed.). Springer-Verlag. pp.34.ISBN3-540-54894-7.