Week 4 Exercises — solutions
Version 2023-11-04. These exercises in PDF
Answer to E4.1. [These exercises without answers]
has one codevector of weight and one codevector of weight Hence
Exercise: show that
Notation: below, is a linear code, and
-
Exercise 4.2. Prove that each vector of weight in the space is a unique coset
leader (that is, is strictly less than weights of all other vectors in its coset
Hint. If are in the same coset, show that Then use
Answer to E4.2. [These exercises without answers]
If are in the same coset, then by properties of cosets, is a codevector. If then and so By the triangle
inequality, Thus, as claimed.
Now assume Then But so We have This shows that has strictly minimal weight among the
vectors in its coset, and so is the unique coset leader.
-
Exercise 4.3 (important fact about perfect linear codes — needed for
exam).
Assume is perfect. Use the Hamming bound to show that the number of cosets equals i.e., there as many cosets as vectors of weight in the space Deduce that every coset has a unique coset leader,
and that the coset leaders are exactly the vectors of weight
Answer to E4.3. [These exercises without answers]
By the previous exercise, the vectors are unique coset leaders of distinct cosets. The total number of cosets is
Now if is perfect, then (the right-hand side is the Hamming bound), and so Thus if is perfect, cosets with a unique coset leader of weight exhaust
all cosets, as claimed.
-
Exercise 4.4 (not done in tutorial). Find standard arrays for
binary codes with each of the following generator matrices. For each code, determine whether every coset has a unique coset leader (i.e., if there is exactly one coset leader in each coset). Find the probability of an undetected / uncorrected error for
and argue whether the code is worth using for this channel, compared to transmitting unencoded information.
Answer to E4.4. [These exercises without answers]
generates the trivial binary code of length Because the code is the whole space its standard array consists of one row:
(the order of the codevectors after is arbitrary). The only coset is the trivial coset which has only one coset leader,
generates the even weight code of length It has codevectors and cosets:
Note that the non-trivial coset has three coset leaders; any of them could be put in column 1.
list all the codevectors and then use the algorithm for constructing the standard array. One possible answer is given below:
Coset leaders of weight and are the only coset leaders in their cosets. Coset leaders of weight are not unique: e.g., and are coset leaders of the same coset.
Error probabilities. The code generated by is the trivial code, so using it is the same as sending unencoded information.
The code generated by has weight enumerator Hence an undetected error occurs with probability
Note that this is of the same order as but at a rate of (recall the code considered in the chapter with worse rate
The probability of an uncorrected error here is where (one coset leader of weight and (one coset leader of weight .
We have
The code does not improve the probability of incorrect decoding. Indeed, Hamming’s theory says that has no error-correcting capability and can only be used for error detection.
The code generated by has weight enumerator Hence
If this is which is 5,000 times better than without encoding.
Furthermore, looking at the coset leaders, we find one coset leader of weight 0, five coset leaders of weight 1, two coset leaders of weight 2, This gives
If incorrect decoding occurs with probability which is 12.5 times better than without encoding.
Of course, this improvement in reliability comes at a price: the rate of the code is only meaning that we have to transmit times as much information.
-
Exercise 4.5 (more weight enumerators — not done in tutorial).
(a) As usual, let denote the weight enumerator of a -ary linear code Show that and that where
(b) Show that the weight enumerator of the trivial binary code is Can you write in a similar form?
(c) Write down Can you suggest a compact way to write ?
Answer to E4.5. [These exercises without answers]
(a) Recall If the only non-zero term in this sum is the term without which corresponds to the (unique) zero codevector of the linear code thus,
and Also,
(b) To work out write it in the form where Note that and in the proof of the
Hamming bound we calculated the number of words at distance from (or from any other fixed vector) to be Hence
(c) The even weight code is so that The weight enumerator of will be obtained in the lectures as an application of the MacWilliams identity.