maths.freeAbstract Algebra › 8. Algebraic Coding Theory › Parity-Check and Generator Matrices

Parity-Check and Generator Matrices

We need to find a systematic way of generating linear codes as well as fast methods of decoding.

Parity-Check and Generator Matrices

We need to find a systematic way of generating linear codes as well as fast methods of decoding. By examining the properties of a matrix \(H\) and by carefully choosing \(H\), it is possible to develop very efficient methods of encoding and decoding messages. To this end, we will introduce standard generator and canonical parity-check matrices.

Suppose that \(H\) is an \(m \times n\) matrix with entries in \({\mathbb Z}_2\) and \(n \gt m\). If the last \(m\) columns of the matrix form the \(m \times m\) identity matrix, \(I_m\), then the matrix is a canonical parity-check matrix. More specifically, \(H= (A \mid I_m)\), where \(A\) is the \(m \times (n-m)\) matrix \[\begin{aligned}\end{aligned}\] and \(I_m\) is the \(m \times m\) identity matrix \[\begin{aligned}\end{aligned}\]. With each canonical parity-check matrix we can associate an \(n \times (n-m)\) standard generator matrix \[\begin{aligned}\end{aligned}\]. Our goal will be to show that an \(\mathbf x\) satisfying \(G {\mathbf x} = {\mathbf y}\) exists if and only if \(H{\mathbf y} = {\mathbf 0}\). Given a message block \({\mathbf x}\) to be encoded, the matrix \(G\) will allow us to quickly encode it into a linear codeword \({\mathbf y}\).

Message Word \(\mathbf x\)Codeword \(G \mathbf x\)
\(\codeword{000}\)\(\codeword{000000}\)
\(\codeword{001}\)\(\codeword{001101}\)
\(\codeword{010}\)\(\codeword{010110}\)
\(\codeword{011}\)\(\codeword{011011}\)
\(\codeword{100}\)\(\codeword{100011}\)
\(\codeword{101}\)\(\codeword{101110}\)
\(\codeword{110}\)\(\codeword{110101}\)
\(\codeword{111}\)\(\codeword{111000}\)

We leave the proof of this theorem as an exercise. In light of the theorem, the first \(n - m\) bits in \({\mathbf x}\) are called information bits and the last \(m\) bits are called check bits. In , the first three bits are the information bits and the last three are the check bits.

Before we can prove the relationship between canonical parity-check matrices and standard generating matrices, we need to prove a lemma.

Example

Observe that \[\begin{aligned}\end{aligned}\].

Condensed — the full section is in Judson, Abstract Algebra: Theory and Applications.

Symbols used here

a \mid b,\ \gcd(a,b)
divides, greatest common divisor
b is a multiple of a; the largest number dividing both.
x \in A,\ A \subseteq B
element of, subset
x belongs to A; every element of A is in B.
\mathbb{N},\ \mathbb{Z},\ \mathbb{Q},\ \mathbb{R},\ \mathbb{C}
number sets
Naturals, integers, rationals, reals, complex numbers.
\blacksquare\ \text{or}\ \square
end of proof (halmos)
Marks the point where the statement has been established.
a \equiv b \pmod n
congruent modulo n
n divides a − b; a and b have the same remainder.
(G, \cdot),\ e,\ g^{-1}
group, identity, inverse
A set with an operation; the do-nothing element; the element that undoes g.
G \cong H,\ G / N
isomorphic, quotient group
Same structure; the group of cosets of a normal subgroup N.
\mathbb{Z}/n\mathbb{Z},\ \mathbb{Z}_n
integers modulo n
The remainders 0…n−1 with clock arithmetic.
\operatorname{Hom}(A, B),\ f \circ g
arrows from A to B, composition
The set of morphisms; do g then f.

Questions people ask

What is a group, in plain words?

A set with one operation that is associative, has an identity, and lets every element be undone. Symmetries of any object form a group — that is where the idea came from.

What is the difference between a ring and a field?

A ring has addition and multiplication that behave like the integers (you cannot always divide); a field is a ring where every non-zero element has a reciprocal, like the rationals or the reals.

Zama wena

Parts of this page are adapted from Judson, Abstract Algebra: Theory and Applications (GFDL 1.3). Condensed and re-explained here; errors are ours.

Okuningi Abstract Algebra