ECCWorksheet2SelectedSolutions
ECCWorksheet2SelectedSolutions
2024-2025.
Worksheet 2
Selected solutions
Notation : d is the minimum distance of a code C
k is the length of words to be coded.
n is the length of codewords.
Solution
1
2. As the code is linear it is enough to nd the minimum weight.
The minimal weight codeword is induced by the minimal weight code-
word from Ak which is 1.
Hence the minimal weight codeword is s.
Solution
π : C ! Fqn¡1
(x1 , ..., xn ) 7! (x1 , ..., xi¡1 , xi+1 , .., xn )
The length of C i is n ¡ 1.
If there is a codeword of C of weight d with a 1 at position i the
minimum distance of C i is d ¡ 1, otherwise the minimum distance is d.
2
3. On one and if a length (n ¡ 1) vector (y1 , ..., yi¡1 , yi+1 , ..., yn ) belongs to
?
(C i ) P then by de nition for each x = (x1 , ..., xi¡1 , xi+1 , ..., xn ) in C i we
have xj yj = 0 which implies that the length n vector (y1 , ..., yi¡1 , 0, yi+1 , ..., yn )
j6=i
¡ ¢
belongs to (C)? so that (y1 , ..., yi¡1 , 0, yi+1 , ..., yn ) 2 C ? i .
¡ ?¢
On the other and if (y1 , ..., yi¡1 , yi+1 , ..., yn ) 2 C i then (y1 , ..., yi¡1 , yi+1 , ..., yn )
¡ ?¢
is the punctured version of a vector P (y 1 , ..., y i¡1 , 0, yi+1 , ..., yn ) in C
tat is a vector which satis tes xj yj = 0 and yi = 0. This implies that
P ?
xj yj = 0 i.e that (y1 , ..., yi¡1 , yi+1 , ..., yn ) 2 (C i )
j6=i
instead of the one above, could the code still detect errors? What about trans-
positions ?
Solution
3
1. Suppose that x = (x1 , ..., x10 ) is a codeword and an error occurs at
position i.
Denote by x0 which is identical to x except at position i :
P
10 P
10
ix0i = ix0i + i (x0i ¡ xi ) 6= 0 mod 11
i=1 i=1
3. The distance is at least two by the fact that the code can detect a single
error.
Notice that the zero vector and (1, 0, 0, 0, 0, 0, 0, 0, 1) are codewords
thus the minimun distance is exactly two.
4. The code could still detect a single error by the same argument but not
any transpositions because the new rule is symmetric with respect to
all coordinate positions.