Example8.23
Suppose that we have the following eight words to be encoded:
For
the associated standard generator and canonical parity-check matrices are
and
respectively.
Observe that the rows in $H$ represent the parity checks on certain bit positions in a 6-tuple. The 1s in the identity matrix serve as parity checks for the 1s in the same row. If ${\mathbf x} = (x_1, x_2, x_3, x_4, x_5, x_6)\text{,}$ then
which yields a system of equations:
Here $x_4$ serves as a check bit for $x_2$ and $x_3\text{;}$ $x_5$ is a check bit for $x_1$ and $x_2\text{;}$ and $x_6$ is a check bit for $x_1$ and $x_3\text{.}$ The identity matrix keeps $x_4\text{,}$ $x_5\text{,}$ and $x_6$ from having to check on each other. Hence, $x_1\text{,}$ $x_2\text{,}$ and $x_3$ can be arbitrary but $x_4\text{,}$ $x_5\text{,}$ and $x_6$ must be chosen to ensure parity. The null space of $H$ is easily computed to be
An even easier way to compute the null space is with the generator matrix $G$ (Table 8.24).