How does the minimum distance related to the number of errors which can be corrected? This section addresses this and similar questions.
For example, the ISBN code is a
-code
over the field
.
The matrix
in the above proposition is called a
parity check matrix of
.
We have yet to show that a given linear code
has
a parity check matrix (see Proposition 3.6.3).
proof: (sketch)
Generalizing suitably example 3.3.2 shows that
if all the columns of
are not distinct then
is not
-error correcting.
Conversely, suppose that
contains exactly one error and that
all the columns of
are distinct. Then
, for some
and some
,
where
and where
proof:
Suppose that a code word
is
sent and a vector
is
received with
errors, where
.
We must show that the receiver, who does not know
(though he does know
), can
recover
from
.
We claim that the code word closest to
is
. Suppose not, say
,
,
is closer to
than
. Then
To recover
from
,
the receiver can apply the nearest neighbor
algorithm.