Path: blob/main/course-assignments/PS04--ECC--solutions.md
906 views
------\newcommand{\F}{\mathbb{F}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\NN}{\mathbb{N}} \newcommand{\CC}{\mathbb{C}} \newcommand{\ee}{\mathbf{e}} \newcommand{\h}{\mathbf{h}} \newcommand{\bb}{\mathbf{b}} \newcommand{\vv}{\mathbf{v}} \newcommand{\xx}{\mathbf{x}}
\newcommand{\uu}{\mathbf{u}} \newcommand{\ww}{\mathbf{w}}
\newcommand{\Null}{\operatorname{Null}} \newcommand{\Hom}{\operatorname{Hom}}
\newcommand{\weight}{\operatorname{weight}}
\newcommand{\PP}{\mathbb{P}} \newcommand{\dist}{\operatorname{dist}} \newcommand{\floor}[1]{\lfloor #1 \rfloor}
\newcommand{\tr}{\operatorname{tr}}
\newcommand{\trivial}{\mathbf{1}}
\newcommand{\GL}{\operatorname{GL}}
Find the irreducible factors of the polynomial in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_7[T].
(You should include proofs that the factors you describe are irreducible).
::: {.solution}
Note that the multiplicative group ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_7^\times has order 6 and hence contains an element of order 3; in fact, has order 3 since .
Now, ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{7^2}^\times has order which is not divisible by 9. And ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{7^3}^\times has order . So ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{7^3}^\times has an element of order .
Consider the polynomial . Any root of this polynomial satisfies and ; this shows that the multiplicative order of is 9.
In particular, ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_7 contains no roots of ; since has degree 3, it is irreducible over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_7.
If is a root of , then and are also roots (note that ). Thus and
Notice that ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{7^3} is a splitting field for over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_7.
Note that is also an element of ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_7^\times of order . Arguing as before, any root of is an element of multiplicative order .
On the other hand, since , ParseError: KaTeX parse error: Undefined control sequence: \F at position 14: \alpha^2 \in \̲F̲_{7^3} is also an element of order 9.
Moreover, the roots of its minimal polynomial have the form , (since ), and (since .
Thus
Now, notice that ParseError: KaTeX parse error: Undefined control sequence: \F at position 43: … = 2^2 = 4 \in \̲F̲_7. Thus the minimal polynomial of divides . It follows that
Now, and since we see that . Thus :::
Let , put , and consider the subspace ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: C \subset \̲F̲_q^n defined by ParseError: KaTeX parse error: Undefined control sequence: \F at position 35: …v ) \mid v \in \̲F̲_q^k\} \subset … Find the minimal distance of this code.
For example, if , and then ParseError: KaTeX parse error: Undefined control sequence: \F at position 46: …) \mid a_i \in \̲F̲_q\} \subset \F…
(Corrected)
::: {.solution}
If ParseError: KaTeX parse error: Undefined control sequence: \vv at position 1: \̲v̲v̲ ̲= (v,v,\cdots,v… for ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: v \in \̲F̲_q^n, note that ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(\vv) = m \cdot….
In particular, for a non-zero vector we see that ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(\vv) \ge m.
On the other hand, a standard basis vector ParseError: KaTeX parse error: Undefined control sequence: \ee at position 5: v = \̲e̲e̲_i \in \F_q^n has weight 1, so if ParseError: KaTeX parse error: Undefined control sequence: \ww at position 1: \̲w̲w̲ ̲= (\ee_i,\ee_i,…, then ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(\ww) = m.
Thus ParseError: KaTeX parse error: Undefined control sequence: \weight at position 9: \min \{ \̲w̲e̲i̲g̲h̲t̲(\vv) \mid 0 \…
For a linear code, the minimal distance is simply the minimal weight of a non-zero vector; thus the minimal distance of is . :::
By an -system we mean a pair , where is a finite dimensional vector space over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q and is an ordered finite family of points in (in general, points of need not be distinct -- you should view as a list of points which may contain repetitions) such that spans as a vector space. Evidently .
The parameters are defined by where the maximum defining is taken over all linear hyperplanes and where points are counted with their multiplicity -- i.e. .
Gjven a -system , let denote the dual space to and consider the linear mapping ParseError: KaTeX parse error: Undefined control sequence: \F at position 14: \Phi:V^* \to \̲F̲_q^n defined by
a. Show that is injective.
::: {.solution}
is a linear mapping, so we just need to show that .
Suppose that and . This means that for . Since is linear, it follows that vanishes at any linear combination of the vectors .
Since spans by assumption, it follows that . This proves that is injective.
:::
b. Write for the image of , so that is an -code. Show that the minimal distance of the code is given by .
::: {.solution}
Write for the minimal weight of ; we must argue that
Let ParseError: KaTeX parse error: Undefined control sequence: \vv at position 1: \̲v̲v̲ ̲= \Phi(\psi) \i… be a non-zero vector. We have ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(\vv) = |\{j \m…
Write and note that
Thus ParseError: KaTeX parse error: Undefined control sequence: \weight at position 11: (*) \quad \̲w̲e̲i̲g̲h̲t̲(\vv) = n - |\m…
In the hyperplanes are precisely the kernels of functionals . Thus shows that ParseError: KaTeX parse error: Undefined control sequence: \vv at position 7: \min_{\̲v̲v̲ ̲= \Phi(\psi) \n… it follows that . :::
c. Conversely, let ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: C \subset \̲F̲_q^n be an -code, and put . Let ParseError: KaTeX parse error: Undefined control sequence: \F at position 21: …cdots,e^n \in (\̲F̲_q^n)^* be the dual basis to the standard basis. The restriction of to the subspace determines an element of . Write for the resulting list of vectors in ..
Prove that the minimum distance of the code satisfies
::: {.solution}
We have ; the mapping ParseError: KaTeX parse error: Undefined control sequence: \F at position 23: …V^* = C \to \̲F̲_q^n is just the given inclusion. Indeed, let ParseError: KaTeX parse error: Undefined control sequence: \F at position 43: … \in C \subset \̲F̲_q^n. The mapping ParseError: KaTeX parse error: Undefined control sequence: \F at position 14: \Phi:V^* \to \̲F̲_q^n is given by
Now the equality follows from the result of part (b). :::
Let be the linear code over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_5 generated by the matrix
a. Find a check matrix for .
::: {.solution}
:::
b. Find the minimum distance of .
::: {.solution}
The minimal distance of is 4.
We check the weight of a vector using the following function:
Now, we can just find the minimal weight of the non-zero vectors of , as follows:
Alternatively, you can investigate the columns of the check matrix .
This shows that every collection of 3 columns of
His linearly independent, while there is some collection of 4 columns ofHthat is linearly dependent; thus .:::
c. Decode the received vectors and using syndrome decoding.
::: {.solution}
The minimal distance of the code is , so we should expect to correct ParseError: KaTeX parse error: Undefined control sequence: \floor at position 1: \̲f̲l̲o̲o̲r̲{(4-1)/2} = \fl… error.
We first make the lookup table
Now we can decode using the lookup table
:::