• Home
  • Textbooks
  • Foundations of coding: theory and applications of error-correcting codes
  • Linear Codes

Foundations of coding: theory and applications of error-correcting codes

Jiri Adamek

Chapter 8

Linear Codes - all with Video Answers

Educators


Chapter Questions

Problem 1

A linear code over $\mathrm{Z}_5$ has the following generator matrix:
$$
\mathbf{G}=\left[\begin{array}{lllll}
1 & 2 & 3 & 1 & 2 \\
2 & 2 & 4 & 1 & 0 \\
1 & 1 & 2 & 2 & 1
\end{array}\right] .
$$
Find the parity check matrix.

Check back soon!
01:11

Problem 2

Perform $8 \mathrm{~A}$ in $\mathbf{Z}_7$.

Katelyn Vandeaver
Katelyn Vandeaver
Numerade Educator

Problem 3

Find out whether or not the following binary linear code is systematic:
$$
\mathbf{G}=\left[\begin{array}{llllll}
1 & 1 & 0 & 0 & 0 & 0 \\
0 & 0 & 1 & 1 & 1 & 1 \\
0 & 0 & 0 & 0 & 1 & 1
\end{array}\right] .
$$
If not, find a systematic equivalent code.

Check back soon!

Problem 4

Encode the information bits 101 in both of the codes of Exercise 8C.

Check back soon!

Problem 5

Find a generator matrix of a binary code with the following parity check matrix:
$$
\mathbf{H}=\left[\begin{array}{lllllll}
1 & 0 & 1 & 1 & 0 & 0 & 0 \\
1 & 1 & 1 & 0 & 1 & 0 & 0 \\
1 & 1 & 0 & 0 & 0 & 1 & 0 \\
0 & 0 & 1 & 0 & 0 & 0 & 1
\end{array}\right] .
$$

Check back soon!

Problem 6

Prove the converse of Proposition 8.2: whenever a linear code has a parity check matrix $H=\left[A \mid I^{\prime}\right]$, where $I^{\prime}$ is an identity matrix, then $\mathbf{G}=[\mathbf{I} \mathbf{i}-\mathbf{A}]$ is a generator matrix. Which linear codes have such a parity check matrix?

Check back soon!

Problem 7

Which extended Hamming codes are self-dual?

Check back soon!

Problem 8

Describe the dual of the binary $(6,3)$-code described by the following equations:
$$
\begin{aligned}
& x_1=x_4, \\
& x_2=x_5, \\
& x_3=x_6 .
\end{aligned}
$$

Check back soon!

Problem 9

Construct a table of syndrome decoding for
(1) the repetition code of length 7 ,
(2) the Hamming code of length 7,
(3) the code of $8 \mathrm{H}$,
(4) the code over $Z_3$ with the following generator matrix:
$$
\mathbf{G}=\left[\begin{array}{lllll}
1 & 0 & 0 & 2 & 2 \\
0 & 1 & 0 & 0 & 1 \\
0 & 0 & 1 & 1 & 0
\end{array}\right] .
$$

Check back soon!

Problem 10

Describe the extension and the puncturing of the code in $8 \mathrm{H}$.

Check back soon!

Problem 11

Describe the augumentation and the expurgation of the following binary code:
$$
\mathbf{G}=\left[\begin{array}{lllll}
1 & 1 & 1 & 0 & 0 \\
0 & 0 & 1 & 1 & 1 \\
1 & 1 & 1 & 1 & 0
\end{array}\right] .
$$

Check back soon!

Problem 12

Nonbinary Hamming codes. (1) Generalize Proposition 5.5 to the following: a linear code corrects single errors if and only if every parity check matrix has the property that no column is a scalar multiple of a different column.
By a Hamming code is meant a code with a parity check matrix $\mathrm{H}$ such that
(a) no column of $\mathbf{H}$ is a scalar multiple of a different column,
(b) $\mathbf{H}$ is maximal w.r.t. (a), i.e., every word of length $m$ is a scalar multiple of some column of $\mathbf{H}$.
Prove that condition (a) can be safeguarded by choosing as columns all words with the leading term (i.e., the first nonzero term) equal to 1 .
(2) Verify that the following is a parity check matrix of a Hamming code over $\mathbf{Z}_3$ :
$$
\mathbf{H}=\left[\begin{array}{llll}
0 & 1 & 1 & 1 \\
1 & 0 & 1 & 2
\end{array}\right] .
$$
Find a table of syndrome decoding that code.
(3) Find a parity check matrix of $m=3$ rows for a Hamming code over $\mathbf{Z}_3$.
(4) Prove that for each $m$, there is a Hamming $\left(\frac{3^m-1}{2}, \frac{3^m-1}{2}-m\right)$ code over $\mathbf{Z}_3$.
(5) Generalize (4) to any finite field.

Check back soon!

Problem 13

Describe how the repetition code of length 7 corrects two errors and detects four errors simultaneously. What number of errors can it detect while correcting single errors?

Check back soon!

Problem 14

Find the minimum distance of the (15, 4)-simplex code [Example (4) of 8.2$]$.

Check back soon!

Problem 15

Prove that syndrome decoding is optimal in the sense that no other decoding of a linear code $K$ can correct a larger collection of error patterns. More precisely: suppose a decoding $d$ of $K$ is given [i.e., a rule assigning to each word $w$ of the considered length a code word $d(w)]$ which corrects all error patterns corrected by a syndrome decoding [i.e., for each code word $v$ and each of the chosen coset leaders e, we have $d(v+e)=v]$. Then $d$ does not correct any other error pattern [i.e., whenever $e$ is not a coset leader, then there is a code word $\mathbf{v}$ with $d(v+e) \neq v]$.

Check back soon!