Section Solutions for Chapter 19
Solution to Exercise 19.1.5
The only string with an odd number of \(\displaystyle 1\)s is \(\displaystyle 10101\text{,}\) so it is not an allowable message, but all of the others are allowed.Solutions to Exercise 19.2.5
Solutions to Exercise 19.2.6
Solutions to Exercise 19.2.10
Solutions to Exercise 19.2.13
The code can detect \(\displaystyle 5\) errors, but not \(\displaystyle 6\) (because the number of errors detected must be less than the minimum distance).
The code can correct \(\displaystyle 2\) errors (because \(\displaystyle 2\times 2 \lt 6\text{,}\) but \(\displaystyle 2 \times 3 \not\lt 6\)).
Solutions to Exercise 19.3.6
Solution to Exercise 19.4.5
Since \(\displaystyle G = \begin{bmatrix}I_k \\ A \end{bmatrix}\text{,}\) and the given matrix \(\displaystyle G\) has \(\displaystyle 4\) columns, we must have \(\displaystyle k = 4\text{,}\) so \(\displaystyle I_k = I_4\) has \(\displaystyle 4\) rows. Therefore, \(\displaystyle A\) is all but the first \(\displaystyle 4\) rows of \(\displaystyle G\text{,}\) which meansSolutions to Exercise 19.4.12
Yes, all six columns of the parity-check matrix are different from each other (and none of them are all \(\displaystyle 0\)), so Theorem 19.4.9 tells us that the code can correct all single-bit errors.
-
Let \(\displaystyle P\) be the given parity-check matrix. Then:
\(\displaystyle \displaystyle P \begin{bmatrix}0\\0\\1\\0\\0\\1 \end{bmatrix} = \begin{bmatrix}0 \\ 1 \\ 0 \end{bmatrix}. \begin{matrix} \text{ This is the th column of }P\text{, so changing the th bit corrects}\\ \text{the error. The received word }001001\text{ decodes as }0010\underline11. \end{matrix}\)
\(\displaystyle \displaystyle P \begin{bmatrix}1\\1\\0\\0\\1\\1 \end{bmatrix} = \begin{bmatrix}0 \\ 0 \\ 0 \end{bmatrix}. \begin{matrix}\text{ This is }0\text{, so there is no error. The received word }110011\text{ decodes}\\ \text{as }110011.\end{matrix}\)
\(\displaystyle \displaystyle P \begin{bmatrix}0\\0\\0\\1\\1\\0 \end{bmatrix} = \begin{bmatrix}1 \\ 1 \\ 0 \end{bmatrix}. \begin{matrix}\text{ This is the nd column of }P\text{, so changing the nd bit corrects the} \\ \text{error. The received word }000110\text{ decodes as }0\underline10110.\end{matrix} \)
Solutions to Exercise 19.4.15
\(\displaystyle r = 2\) check bits suffice for \(\displaystyle k = 1\text{,}\) because \(\displaystyle k + r = 1 + 2 = 3 = 2^2 - 1 = 2^r - 1\text{.}\) (But \(\displaystyle r = 1\) check bit does not suffice, because \(\displaystyle k + r \ge 1 + 1 = 2 > 2^1 -1 = 2^r - 1\text{.}\))
\(\displaystyle r = 3\) check bits suffice for \(\displaystyle k = 2,3,4\text{,}\) because \(\displaystyle k + r \le 4 + 3 = 7 = 2^3 - 1 = 2^r - 1\text{.}\) (But \(\displaystyle r = 2\) check bits do not suffice, because \(\displaystyle k + r \ge 2 + 2 = 4 > 2^2 -1 = 2^r - 1\text{.}\))
\(\displaystyle r = 4\) check bits suffice for \(\displaystyle 5 \le k \le 11\text{,}\) because \(\displaystyle k + r \le 11 + 4 = 15 = 2^4 - 1 = 2^r - 1\text{.}\) (But \(\displaystyle r = 3\) check bits do not suffice, because \(\displaystyle k + r \ge 5 + 3 = 8 > 2^3 -1 = 2^r - 1\text{.}\))
\(\displaystyle r = 5\) check bits suffice for \(\displaystyle 12 \le k \le 20\text{,}\) because \(\displaystyle k + r \le 20 + 5 = 25 \lt 31 = 2^5 - 1 = 2^r - 1\text{.}\) (But \(\displaystyle r = 4\) check bits do not suffice, because \(\displaystyle k + r \ge 12 + 4 = 16 > 2^4 -1 = 2^r - 1\text{.}\))