Difference between revisions of "Aufgaben:Exercise 3.2: G-matrix of a Convolutional Encoder"

From LNTwww
Line 1: Line 1:
{{quiz-Header|Buchseite=Kanalcodierung/Algebraische und polynomische Beschreibung}}
+
{{quiz-Header|Buchseite=Channel_Coding/Algebraic_and_Polynomial_Description}}
  
[[File:P_ID2614__KC_A_3_1_neu.png|right|frame|Vorgegebener Faltungscodierer]]
+
[[File:P_ID2614__KC_A_3_1_neu.png|right|frame|Predefined convolutional encoder]]
Wir betrachten wie in  [[Aufgaben:Aufgabe_3.1:_Analyse_eines_Faltungscodierers| Aufgabe 3.1]]  den nebenstehend gezeichneten Faltungscodierer der Rate  $3/4$. Dieser wird durch den folgenden Gleichungssatz charakterisiert:
+
We consider as in  [[Aufgaben:Exercise_3.1:_Analysis_of_a_Convolutional_Encoder| "Exercise 3.1"]]  the convolutional encoder of rate  $3/4$ drawn opposite. This is characterized by the following set of equations:
 
:$$x_i^{(1)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)}  \hspace{0.05cm},$$
 
:$$x_i^{(1)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)}  \hspace{0.05cm},$$
 
:$$x_i^{(2)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i-1}^{(2)} + u_{i-1}^{(3)} \hspace{0.05cm},$$
 
:$$x_i^{(2)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i-1}^{(2)} + u_{i-1}^{(3)} \hspace{0.05cm},$$
Line 8: Line 8:
 
:$$x_i^{(4)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-2}^{(3)}\hspace{0.05cm}.$$
 
:$$x_i^{(4)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-2}^{(3)}\hspace{0.05cm}.$$
  
Bezieht man sich auf die bei  $i = 1$  beginnenden und sich zeitlich bis ins Unendliche erstreckenden Sequenzen
+
Referring to the sequences
 
:$$\underline{\it u} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \left ( \underline{\it u}_1, \underline{\it u}_2, \text{...} \hspace{0.1cm}, \underline{\it u}_i ,\text{...} \hspace{0.1cm} \right )\hspace{0.05cm},$$
 
:$$\underline{\it u} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \left ( \underline{\it u}_1, \underline{\it u}_2, \text{...} \hspace{0.1cm}, \underline{\it u}_i ,\text{...} \hspace{0.1cm} \right )\hspace{0.05cm},$$
 
:$$\underline{\it x} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \left ( \underline{\it x}_1, \underline{\it x}_2, \text{...} \hspace{0.1cm}, \underline{\it x}_i , \text{...} \hspace{0.1cm} \right )$$
 
:$$\underline{\it x} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \left ( \underline{\it x}_1, \underline{\it x}_2, \text{...} \hspace{0.1cm}, \underline{\it x}_i , \text{...} \hspace{0.1cm} \right )$$
  
mit  $\underline{u}_i = (u_i^{(1)}, u_i^{(2)}, \ \text{...} \ , u_i^{(k)})$  bzw.  $\underline{x}_i = (x_i^{(1)}, x_i^{(2)}, \ \text{...} \ , x_i^{(n)})$, so kann der Zusammenhang zwischen der Informationssequenz  $\underline{u}$  und der Codesequenz  $\underline{x}$  durch die Generatormatrix  $\mathbf{G}$  in folgender Form ausgedrückt werden:
+
starting at  $i = 1$  and extending in time to infinity with  $\underline{u}_i = (u_i^{(1)}, u_i^{(2)}, \ \text{...} \ , u_i^{(k)})$  resp.  $\underline{x}_i = (x_i^{(1)}, x_i^{(2)}, \ \text{...} \ , x_i^{(n)})$, then the relationship between the information sequence  $\underline{u}$  and the code sequence  $\underline{x}$  can be expressed by the generator matrix  $\mathbf{G}$  in the following form:
 
:$$\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G}}  \hspace{0.05cm}.$$
 
:$$\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G}}  \hspace{0.05cm}.$$
  
Für die Generatormatrix eines Faltungscoders mit dem Gedächtnis  $m$  ist dabei zu setzen:
+
For the generator matrix of a convolutional encoder with memory  $m$  is to be set thereby:
 
:$${ \boldsymbol{\rm G}}=\begin{pmatrix}
 
:$${ \boldsymbol{\rm G}}=\begin{pmatrix}
 
{ \boldsymbol{\rm G}}_0 & { \boldsymbol{\rm G}}_1 & { \boldsymbol{\rm G}}_2 & \cdots  & { \boldsymbol{\rm G}}_m & & & \\
 
{ \boldsymbol{\rm G}}_0 & { \boldsymbol{\rm G}}_1 & { \boldsymbol{\rm G}}_2 & \cdots  & { \boldsymbol{\rm G}}_m & & & \\
Line 23: Line 23:
 
\end{pmatrix}\hspace{0.05cm}.$$
 
\end{pmatrix}\hspace{0.05cm}.$$
  
*Hierbei bezeichnen  $\mathbf{G}_0, \ \mathbf{G}_1, \ \mathbf{G}_2, \ \text{...}$  Teilmatrizen mit jeweils  $k$  Zeilen und  $n$  Spalten sowie binären Matrixelementen  $(0$  oder  $1)$.  
+
*Hereby denote  $\mathbf{G}_0, \ \mathbf{G}_1, \ \mathbf{G}_2, \ \text{...}$  partial matrices each having  $k$  rows and  $n$  columns and binary matrix elements  $(0$  or  $1)$.  
*Ist das Matrixelement  $\mathbf{G}_l(\kappa, j) = 1$, so bedeutet dies, dass das Codebit  $x_i^{(j)}$  durch das Informationsbit  $u_{i-l}^{(\kappa)}$  beeinflusst wird.  
+
*If the matrix element  $\mathbf{G}_l(\kappa, j) = 1$, it means that the code bit  $x_i^{(j)}$  is affected by the information bit  $u_{i-l}^{(\kappa)}$ .  
*Andernfalls ist dieses Matrixelement gleich  $0$.  
+
*Otherwise, this matrix element is equal to  $0$.  
  
  
Ziel dieser Aufgabe ist es, die zur Informationssequenz
+
The goal of this exercise is to compute the code sequence  $\underline{x}$  belonging to the information sequence
 
:$$\underline{u} = (\hspace{0.05cm}0\hspace{0.05cm},\hspace{0.05cm}1\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm},\hspace{0.05cm} 1
 
:$$\underline{u} = (\hspace{0.05cm}0\hspace{0.05cm},\hspace{0.05cm}1\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm},\hspace{0.05cm} 1
 
\hspace{0.05cm},\hspace{0.05cm}1\hspace{0.05cm},\hspace{0.05cm} 0\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm}
 
\hspace{0.05cm},\hspace{0.05cm}1\hspace{0.05cm},\hspace{0.05cm} 0\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm}
 
,\hspace{0.05cm} 0\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm})$$
 
,\hspace{0.05cm} 0\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm})$$
  
gehörige Codesequenz  $\underline{x}$  entsprechend den obigen Vorgaben zu berechnen. Das Ergebnis müsste mit dem Ergebnis von  [[Aufgaben:Aufgabe_3.1:_Analyse_eines_Faltungscodierers| Aufgabe 3.1]]  übereinstimmen, das allerdings auf anderem Wege erzielt wurde.
+
according to the above specifications. The result should match the result of  [[Aufgaben:Exercise_3.1:_Analysis_of_a_Convolutional_Encoder| "Exercise 3.1"]]  which, however, was obtained in a different way.
  
  
Line 42: Line 42:
  
  
''Hinweis:''
+
Hints:
* Die  Aufgabe gehört zum Kapitel  [[Channel_Coding/Algebraische_und_polynomische_Beschreibung| Algebraische und polynomische Beschreibung]].
+
* This exercise belongs to the chapter  [[Channel_Coding/Algebraic_and_Polynomial_Description| "Algebraic and Polynomial Description"]].
 
   
 
   
  
  
  
===Fragebogen===
+
===Questions===
 
<quiz display=simple>
 
<quiz display=simple>
{Aus wie vielen Teilmatrizen&nbsp; $\mathbf{G}_l$&nbsp; setzt sich die Matrix&nbsp; $\mathbf{G}$&nbsp; zusammen?
+
{From how many partial matrices&nbsp; $\mathbf{G}_l$&nbsp; is the matrix&nbsp; $\mathbf{G}$&nbsp; composed?
 
|type="{}"}
 
|type="{}"}
 
${\rm Anzahl \ der \ Teilmatrizen} \ = \ ${ 3 3% }  
 
${\rm Anzahl \ der \ Teilmatrizen} \ = \ ${ 3 3% }  
  
{Welche Aussagen treffen für die Teilmatrix&nbsp; $\mathbf{G}_0$&nbsp; zu?
+
{Which statements are true for the partial matrix&nbsp; $\mathbf{G}_0$&nbsp;?
 
|type="[]"}
 
|type="[]"}
+ Insgesamt beinhaltet&nbsp; $\mathbf{G}_0$&nbsp; acht Einsen.
+
+ In total,&nbsp; $\mathbf{G}_0$&nbsp; contains eight ones.
+ Die erste Zeile von&nbsp; $\mathbf{G}_0$&nbsp; lautet&nbsp; $1 \ 1 \ 0 \ 1$.
+
+ The first row of&nbsp; $\mathbf{G}_0$&nbsp; is&nbsp; $1 \ 1 \ 0 \ 1$.
- Die erste Zeile von&nbsp; $\mathbf{G}_0$&nbsp; lautet&nbsp; $1 \ 0 \ 0$.
+
- The first row of&nbsp; $\mathbf{G}_0$&nbsp; is&nbsp; $1 \ 0 \ 0$.
  
{Welche Aussagen treffen für die Teilmatrix&nbsp; $\mathbf{G}_1$&nbsp; zu?
+
{Which statements are true for the partial matrix&nbsp; $\mathbf{G}_1$&nbsp;?
 
|type="[]"}
 
|type="[]"}
+ Die erste Zeile lautet&nbsp; $0 \ 0 \ 0 \ 0$.
+
+ The first row is&nbsp; $0 \ 0 \ 0 \ 0$.
+ Die zweite Zeile lautet&nbsp; $0 \ 1 \ 1 \ 0$.
+
+ The second row is&nbsp; $0 \ 1 \ 1 \ 0$.
+ Die dritte Zeile lautet&nbsp; $0 \ 1 \ 0 \ 0$.
+
+ The third row is&nbsp; $0 \ 1 \ 0 \ 0$.
  
{Ermitteln Sie die ersten neun Zeilen und zwölf Spalten der Generatormatrix&nbsp; $\mathbf{G}$. Welche Aussagen treffen zu?
+
{Determine the first nine rows and twelve columns of the generator matrix&nbsp; $\mathbf{G}$. Which statements are true?
 
|type="[]"}
 
|type="[]"}
- Es gibt mindestens eine Zeile mit lauter Nullen.
+
- There is at least one row with all zeros.
- Es gibt mindestens eine Zeile mit lauter Einsen.
+
- There is at least one row with all ones.
+ In den Spalten&nbsp; $1, 5, 9$&nbsp; steht jeweils nur eine einzige Eins.
+
+ In each of the columns&nbsp; $1, 5, 9$&nbsp; there is only one single one.
  
{Welche Codesequenz&nbsp; $\underline {x}$&nbsp; ergibt sich für&nbsp; $\underline {u} = (0, 1, 1, 1, 1, 0, 1, 0, 1)$?
+
{What code sequence&nbsp; $\underline {x}$&nbsp; results for&nbsp; $\underline {u} = (0, 1, 1, 1, 1, 0, 1, 0, 1)$?
 
|type="()"}
 
|type="()"}
- Es gilt:&nbsp; $\underline{x} = (1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, \ \text{...})$.
+
- It holds:&nbsp; $\underline{x} = (1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, \ \text{...})$.
+ Es gilt:&nbsp; $\underline{x} = (0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, \ \text{...})$.
+
+ It holds:&nbsp; $\underline{x} = (0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, \ \text{...})$.
- Es gilt:&nbsp; $\underline{x} = (0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, \ \text{...})$.
+
- It holds:&nbsp; $\underline{x} = (0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, \ \text{...})$.
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp; Das Gedächtnis des betrachteten Faltungscodierers ist $m = 2$.  
+
'''(1)'''&nbsp; The memory of the considered convolutional encoder is $m = 2$.  
*Damit setzt sich die Generatormatrix $\mathbf{G}$ aus den $m + 1 \ \underline {= 3}$ Teilmatrizen $\mathbf{G}_0, \mathbf{G}_1$ und $\mathbf{G}_2$ zusammen.
+
*Thus, the generator matrix $\mathbf{G}$ is composed of the $m + 1 \ \underline {= 3}$ submatrices $\mathbf{G}_0, \mathbf{G}_1$ and $\mathbf{G}_2$.
  
  
  
'''(2)'''&nbsp; Richtig sind die <u>Aussage 1 und 2</u>:
+
'''(2)'''&nbsp; Correct are <u>statement 1 and 2</u>:
*Aus  den angegebenen Gleichungen
+
*From the given equations
 
:$$x_i^{(1)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)}  \hspace{0.05cm},$$
 
:$$x_i^{(1)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)}  \hspace{0.05cm},$$
 
:$$x_i^{(2)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i-1}^{(2)} + u_{i-1}^{(3)} \hspace{0.05cm},$$
 
:$$x_i^{(2)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i-1}^{(2)} + u_{i-1}^{(3)} \hspace{0.05cm},$$
Line 93: Line 93:
 
:$$x_i^{(4)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-2}^{(3)}$$
 
:$$x_i^{(4)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-2}^{(3)}$$
  
erkennt man, dass im gesamten Gleichungssatz genau achtmal ein Eingangswert $u_i^{(j)}$ mit $j &#8712; \{1, 2, 3\}$ vorkommt &nbsp; &#8658; &nbsp; Aussage 1 trifft zu.  
+
it can be seen that in the whole set of equations an input value $u_i^{(j)}$ with $j &#8712; \{1, 2, 3\}$ occurs exactly eight times &nbsp; &#8658; &nbsp; Statement 1 is true.  
*Der Eingangswert $u_i^{(1)}$ beeinflusst die Ausgänge $x_i^{(1)}$, $x_i^{(2)}$ und $x_i^{(4)}$. Damit lautet die erste Zeile von $\mathbf{G}_0 \text{:} \, 1 \ 1 \ 0 \ 1$ &nbsp; &#8658; &nbsp; auch Aussage 2 trifft zu.  
+
*The input value $u_i^{(1)}$ influences the outputs $x_i^{(1)}$, $x_i^{(2)}$ and $x_i^{(4)}$. Thus, the first row of $\mathbf{G}_0 \text{:} is. \, 1 \ 1 \ 0 \ 1$ &nbsp; &#8658; &nbsp; Statement 2 is also true.  
*Dagegen ist die Aussage 3 falsch: Nicht die erste Zeile von $\mathbf{G}_0$ lautet $1 \ 0 \ 0$, sondern die erste Spalte. Dies besagt, dass $x_i^{(1)}$ nur von $u_i^{(1)}$ abhängt, aber nicht von $u_i^{(2)}$ oder von $u_i^{(3)}$. Es handelt sich um einen systematischen Code.
+
*In contrast, statement 3 is false: it is not the first row of $\mathbf{G}_0$ that is $1 \ 0 \ 0$, but the first column. This says that $x_i^{(1)}$ depends only on $u_i^{(1)}$, but not on $u_i^{(2)}$ or on $u_i^{(3)}$. It is a systematic code.
  
  
  
'''(3)'''&nbsp; <u>Alle Aussagen sind zutreffend</u>:
+
'''(3)'''&nbsp; <u>All statements are accurate</u>:
*Im Gleichungssatz kommt dreimal ein Eingangswert $u_{i&ndash;1}^{(j)}$ mit $j &#8712; \{1, 2, 3\}$ vor. Somit beinhaltet $\mathbf{G}_1$ insgesamt drei Einsen.  
+
*In the equation set, an input value $u_{i&ndash;1}^{(j)}$ with $j &#8712; \{1, 2, 3\}$ occurs three times. Thus, $\mathbf{G}_1$ contains a total of three ones.  
*Der Eingangswert $u_{i-1}^{(2)}$ beeinflusst die Ausgänge $x_i^{(2)}$ und $x_i^{(3)}$, während $u_{i-1}^{(3)}$ nur für die Berechnung von $x_i^{(2)}$ herangezogen wird.  
+
*The input value $u_{i-1}^{(2)}$ influences the outputs $x_i^{(2)}$ and $x_i^{(3)}$, while $u_{i-1}^{(3)}$ is used only for the calculation of $x_i^{(2)}$.  
  
  
  
'''(4)'''&nbsp; Richtig ist nur die <u> Aussage 3</u>:  
+
'''(4)'''&nbsp; Only <u>statement 3</u> is correct:  
*Die folgende Grafik zeigt den linken oberen Beginn (die Zeilen 1 bis 9 sowie die Spalten 1 bis 12) der Generatormatrix $\mathbf{G}$.  
+
*The following graph shows the upper left beginning (rows 1 to 9 and columns 1 to 12) of the generator matrix $\mathbf{G}$.  
*Daraus ist ersichtlich, dass die beiden ersten Aussagen falsch sind .  
+
*From this it can be seen that the first two statements are false .  
*Dieses Ergebnis gilt für jeden systematischen Code mit den Parametern $k = 3$ und $n = 4$.
+
*This result holds for any systematic code with parameters $k = 3$ and $n = 4$.
  
  
[[File:P_ID2615__KC_A_3_2d_v1.png|center|frame|Generatormatrix eines Faltungscodes mit&nbsp; $k = 4, \ n = 4, \ m = 2$]]
+
[[File:P_ID2615__KC_A_3_2d_v1.png|center|frame|Generator matrix of a convolutional code with&nbsp; $k = 4, \ n = 4, \ m = 2$.]]
  
'''(5)'''&nbsp; Richtig ist die <u> Aussage 2</u>:
+
'''(5)'''&nbsp; Correct is <u>statement 2</u>:
*Allgemein gilt $\underline{x} = \underline{u} \cdot \mathbf{G}$, wobei $\underline{u}$ und $\underline{x}$ Sequenzen sind, das heißt, dass sie sich bis ins Unendliche fortsetzen. Entsprechend ist die Generatormatrix $\mathbf{G}$ weder nach unten noch nach rechts begrenzt.
+
*Generally, $\underline{x} = \underline{u} \cdot \mathbf{G}$, where $\underline{u}$ and $\underline{x}$ are sequences, that is, they continue to infinity. Accordingly, the generator matrix $\mathbf{G}$ is not bounded downward or to the right.
*Bei begrenzter Informationssequenz $\underline{u}$ (hier auf $9$ Bit) ist auch die Codesequenz $\underline{x}$ begrenzt.  
+
*If the information sequence $\underline{u}$ is bounded (here to $9$ bits), the code sequence $\underline{x}$ is also bounded.  
*Interessiert man sich nur für die ersten Bits, so genügt es, nur den linken oberen Ausschnitt der Generatormatrix wie in der Musterlösung zur Teilaufgabe (4) zu betrachten.  
+
*If one is only interested in the first bits, it is sufficient to look only at the upper left section of the generator matrix as in the sample solution to subtask (4).  
*Anhand dieser Grafik kann auch das Ergebnis der Matrizengleichung $\underline{x} = \underline{u} \cdot \mathbf{G}$ abgelesen werden.  
+
*Using this graph, the result of the matrix equation $\underline{x} = \underline{u} \cdot \mathbf{G}$ can be read off.  
*Richtig ist $\underline{x} = (0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, \ ...)$ und damit Antwort 2.  
+
*Correct is $\underline{x} = (0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, \ ...)$ and thus answer 2.  
  
  
Das gleiche Ergebnis haben wir in der Teilaufgabe '''(4)''' von  [[Aufgaben:Aufgabe_3.1:_Analyse_eines_Faltungscodierers| Aufgabe 3.1]] erhalten.
+
We obtained the same result in the '''(4)''' subtask of [[Aufgaben:Exercise_3.1:_Analysis_of_a_Convolutional_Encoder| "Exercise 3.1"]].
  
*Dargestellt sind hier nur $9$ Informationsbits und $9 \cdot n/k = 12$ Codebits. Aufgrund der Teilmatrizen $\mathbf{G}_1$ und $\mathbf{G}_2$ würden sich hier aber auch für die Codebits 13 bis 20 noch (teilweise) Einsen ergeben.
+
*Shown here are only $9$ information bits and $9 \cdot n/k = 12$ code bits. Due to the partial matrices $\mathbf{G}_1$ and $\mathbf{G}_2$, however, (partial) ones would still result here for the code bits 13 to 20.
  
*Die Codesequenz $\underline{x}$ setzt sich aus den vier Teilsequenzen $\underline{x}^{(1)}, \ \text{...} \ , \ \underline{x}^{(4)}$ zusammen, die in der Grafik aufgrund unterschiedlicher Farbgebung abgelesen werden können.
+
*The code sequence $\underline{x}$ is composed of the four subsequences $\underline{x}^{(1)}, \ \text{...} \ , \ \underline{x}^{(4)}$, which can be read in the graphic due to different coloring.
 
{{ML-Fuß}}
 
{{ML-Fuß}}
  
  
 
[[Category:Channel Coding: Exercises|^3.2 Polynomial Description^]]
 
[[Category:Channel Coding: Exercises|^3.2 Polynomial Description^]]

Revision as of 19:35, 23 September 2022

Predefined convolutional encoder

We consider as in  "Exercise 3.1"  the convolutional encoder of rate  $3/4$ drawn opposite. This is characterized by the following set of equations:

$$x_i^{(1)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} \hspace{0.05cm},$$
$$x_i^{(2)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i-1}^{(2)} + u_{i-1}^{(3)} \hspace{0.05cm},$$
$$x_i^{(3)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-1}^{(2)} + u_{i-2}^{(3)} \hspace{0.05cm},$$
$$x_i^{(4)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-2}^{(3)}\hspace{0.05cm}.$$

Referring to the sequences

$$\underline{\it u} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \left ( \underline{\it u}_1, \underline{\it u}_2, \text{...} \hspace{0.1cm}, \underline{\it u}_i ,\text{...} \hspace{0.1cm} \right )\hspace{0.05cm},$$
$$\underline{\it x} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \left ( \underline{\it x}_1, \underline{\it x}_2, \text{...} \hspace{0.1cm}, \underline{\it x}_i , \text{...} \hspace{0.1cm} \right )$$

starting at  $i = 1$  and extending in time to infinity with  $\underline{u}_i = (u_i^{(1)}, u_i^{(2)}, \ \text{...} \ , u_i^{(k)})$  resp.  $\underline{x}_i = (x_i^{(1)}, x_i^{(2)}, \ \text{...} \ , x_i^{(n)})$, then the relationship between the information sequence  $\underline{u}$  and the code sequence  $\underline{x}$  can be expressed by the generator matrix  $\mathbf{G}$  in the following form:

$$\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G}} \hspace{0.05cm}.$$

For the generator matrix of a convolutional encoder with memory  $m$  is to be set thereby:

$${ \boldsymbol{\rm G}}=\begin{pmatrix} { \boldsymbol{\rm G}}_0 & { \boldsymbol{\rm G}}_1 & { \boldsymbol{\rm G}}_2 & \cdots & { \boldsymbol{\rm G}}_m & & & \\ & { \boldsymbol{\rm G}}_0 & { \boldsymbol{\rm G}}_1 & { \boldsymbol{\rm G}}_2 & \cdots & { \boldsymbol{\rm G}}_m & &\\ & & { \boldsymbol{\rm G}}_0 & { \boldsymbol{\rm G}}_1 & { \boldsymbol{\rm G}}_2 & \cdots & { \boldsymbol{\rm G}}_m &\\ & & & \ddots & \ddots & & & \ddots \end{pmatrix}\hspace{0.05cm}.$$
  • Hereby denote  $\mathbf{G}_0, \ \mathbf{G}_1, \ \mathbf{G}_2, \ \text{...}$  partial matrices each having  $k$  rows and  $n$  columns and binary matrix elements  $(0$  or  $1)$.
  • If the matrix element  $\mathbf{G}_l(\kappa, j) = 1$, it means that the code bit  $x_i^{(j)}$  is affected by the information bit  $u_{i-l}^{(\kappa)}$ .
  • Otherwise, this matrix element is equal to  $0$.


The goal of this exercise is to compute the code sequence  $\underline{x}$  belonging to the information sequence

$$\underline{u} = (\hspace{0.05cm}0\hspace{0.05cm},\hspace{0.05cm}1\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm},\hspace{0.05cm} 1 \hspace{0.05cm},\hspace{0.05cm}1\hspace{0.05cm},\hspace{0.05cm} 0\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm} ,\hspace{0.05cm} 0\hspace{0.05cm},\hspace{0.05cm} 1\hspace{0.05cm})$$

according to the above specifications. The result should match the result of  "Exercise 3.1"  which, however, was obtained in a different way.





Hints:



Questions

1

From how many partial matrices  $\mathbf{G}_l$  is the matrix  $\mathbf{G}$  composed?

${\rm Anzahl \ der \ Teilmatrizen} \ = \ $

2

Which statements are true for the partial matrix  $\mathbf{G}_0$ ?

In total,  $\mathbf{G}_0$  contains eight ones.
The first row of  $\mathbf{G}_0$  is  $1 \ 1 \ 0 \ 1$.
The first row of  $\mathbf{G}_0$  is  $1 \ 0 \ 0$.

3

Which statements are true for the partial matrix  $\mathbf{G}_1$ ?

The first row is  $0 \ 0 \ 0 \ 0$.
The second row is  $0 \ 1 \ 1 \ 0$.
The third row is  $0 \ 1 \ 0 \ 0$.

4

Determine the first nine rows and twelve columns of the generator matrix  $\mathbf{G}$. Which statements are true?

There is at least one row with all zeros.
There is at least one row with all ones.
In each of the columns  $1, 5, 9$  there is only one single one.

5

What code sequence  $\underline {x}$  results for  $\underline {u} = (0, 1, 1, 1, 1, 0, 1, 0, 1)$?

It holds:  $\underline{x} = (1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, \ \text{...})$.
It holds:  $\underline{x} = (0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, \ \text{...})$.
It holds:  $\underline{x} = (0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, \ \text{...})$.


Solution

(1)  The memory of the considered convolutional encoder is $m = 2$.

  • Thus, the generator matrix $\mathbf{G}$ is composed of the $m + 1 \ \underline {= 3}$ submatrices $\mathbf{G}_0, \mathbf{G}_1$ and $\mathbf{G}_2$.


(2)  Correct are statement 1 and 2:

  • From the given equations
$$x_i^{(1)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} \hspace{0.05cm},$$
$$x_i^{(2)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i-1}^{(2)} + u_{i-1}^{(3)} \hspace{0.05cm},$$
$$x_i^{(3)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-1}^{(2)} + u_{i-2}^{(3)} \hspace{0.05cm},$$
$$x_i^{(4)} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} u_{i}^{(1)} + u_{i}^{(2)} + u_{i}^{(3)}+ u_{i-2}^{(3)}$$

it can be seen that in the whole set of equations an input value $u_i^{(j)}$ with $j ∈ \{1, 2, 3\}$ occurs exactly eight times   ⇒   Statement 1 is true.

  • The input value $u_i^{(1)}$ influences the outputs $x_i^{(1)}$, $x_i^{(2)}$ and $x_i^{(4)}$. Thus, the first row of $\mathbf{G}_0 \text{:} is. \, 1 \ 1 \ 0 \ 1$   ⇒   Statement 2 is also true.
  • In contrast, statement 3 is false: it is not the first row of $\mathbf{G}_0$ that is $1 \ 0 \ 0$, but the first column. This says that $x_i^{(1)}$ depends only on $u_i^{(1)}$, but not on $u_i^{(2)}$ or on $u_i^{(3)}$. It is a systematic code.


(3)  All statements are accurate:

  • In the equation set, an input value $u_{i–1}^{(j)}$ with $j ∈ \{1, 2, 3\}$ occurs three times. Thus, $\mathbf{G}_1$ contains a total of three ones.
  • The input value $u_{i-1}^{(2)}$ influences the outputs $x_i^{(2)}$ and $x_i^{(3)}$, while $u_{i-1}^{(3)}$ is used only for the calculation of $x_i^{(2)}$.


(4)  Only statement 3 is correct:

  • The following graph shows the upper left beginning (rows 1 to 9 and columns 1 to 12) of the generator matrix $\mathbf{G}$.
  • From this it can be seen that the first two statements are false .
  • This result holds for any systematic code with parameters $k = 3$ and $n = 4$.


Generator matrix of a convolutional code with  $k = 4, \ n = 4, \ m = 2$.

(5)  Correct is statement 2:

  • Generally, $\underline{x} = \underline{u} \cdot \mathbf{G}$, where $\underline{u}$ and $\underline{x}$ are sequences, that is, they continue to infinity. Accordingly, the generator matrix $\mathbf{G}$ is not bounded downward or to the right.
  • If the information sequence $\underline{u}$ is bounded (here to $9$ bits), the code sequence $\underline{x}$ is also bounded.
  • If one is only interested in the first bits, it is sufficient to look only at the upper left section of the generator matrix as in the sample solution to subtask (4).
  • Using this graph, the result of the matrix equation $\underline{x} = \underline{u} \cdot \mathbf{G}$ can be read off.
  • Correct is $\underline{x} = (0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, \ ...)$ and thus answer 2.


We obtained the same result in the (4) subtask of "Exercise 3.1".

  • Shown here are only $9$ information bits and $9 \cdot n/k = 12$ code bits. Due to the partial matrices $\mathbf{G}_1$ and $\mathbf{G}_2$, however, (partial) ones would still result here for the code bits 13 to 20.
  • The code sequence $\underline{x}$ is composed of the four subsequences $\underline{x}^{(1)}, \ \text{...} \ , \ \underline{x}^{(4)}$, which can be read in the graphic due to different coloring.