Generator and Check Matrices
Generator and Check Matrices
As a linear subspace of
the span of a minimal set of codewords (known as a basis in linear algebra). These basis
codewords are often collated in the rows of a matrix G known as a generating matrix for the
code C. When G has the block matrix form
matrix and A is some
, where
denotes the
identity
matrix of C (or sometimes a parity check matrix). Equivalently, H is a matrix whose null
space is C. If C is a code with a generating matrix G in standard form, G = (Ik | A), then H =
(At | In k) is a check matrix for C. The code generated by H is called thedual code of C.
Linearity guarantees that the minimum Hamming distance d between a codeword c0 and any of
the other codewords c c0 is independent of c0. This follows from the property that the
difference c c0 of two codewords in C is also a codeword (i.e., an element of the subspace C),
and the property that d(c, c0) = d(c c0, 0). These properties imply that
In other words, in order to find out the minimum distance between the codewords of a linear
code, one would only need to look at the non-zero codewords. The non-zero codeword with
the smallest weight has then the minimum distance to the zero codeword, and hence
determines the minimum distance of the code.
The distance d of a linear code C also equals the minimum number of linearly dependent
columns of the check matrix H.
Proof: Because
the
column of
, which is equivalent to
. Remove those items with
dependent. Therefore
, where
, those
with
is
are linearly
set.
vector
we have
if
. Note
because
. Therefore