Difference between revisions of "Channel Coding/General Description of Linear Block Codes"

From LNTwww
 
(68 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
   
 
   
 
{{Header
 
{{Header
|Untermenü=Binäre Blockcodes zur Kanalcodierung
+
|Untermenü=Binary Block Codes for Channel Coding
|Vorherige Seite=Beispiele binärer Blockcodes
+
|Vorherige Seite=Examples of Binary Block Codes
|Nächste Seite=Decodierung linearer Blockcodes
+
|Nächste Seite=Decoding of Linear Block Codes
 
}}
 
}}
  
== Lineare Codes und zyklische Codes ==
+
== Linear codes and cyclic codes ==
 
<br>
 
<br>
Alle bisher behandelten Codes &ndash; <i>Single Parity&ndash;check Code</i>, <i>Repetition Code</i> und <i>Hamming&ndash;Code</i> &ndash; sind linear. Nun wird die für binäre Blockcodes gültige Definition von Linearität nachgereicht.<br>
+
All codes mentioned so far are&nbsp; &raquo;'''linear'''&laquo;:
 +
*the&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Single_Parity-check_Codes|$\text{single parity-check code}$]]&nbsp; $\rm (SPC)$,
 +
 +
*the&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Repetition_Codes|$\text{repetition code}$]]&nbsp; $\rm (RC)$,
  
{{Definition}}''':''' Ein linearer Blockcode <i>C</i> ist ein Satz von 2<sup><i>k</i></sup> Codeworten <i><u>x</u></i> = (<i>x</i><sub>1</sub>, <i>x</i><sub>2</sub>, ... , <i>x<sub>n</sub></i>), wobei die (Modulo&ndash;2)&ndash;Summe zweier beliebiger Codeworte <i><u>x</u></i> und <i><u>x</u></i>' wiederum ein gültiges Codewort ergibt:
+
*the&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Hamming_Codes|$\text{Hamming code}$]]&nbsp; $\rm (HC)$.
  
:<math>\underline{x}, \underline{x}\hspace{0.05cm}' \in {\rm GF}(2^n),\hspace{0.3cm} \underline{x}, \underline{x}\hspace{0.05cm}' \in  \mathcal{C}  
+
 
 +
Now the definition of&nbsp; "linearity"&nbsp; valid for binary block codes is added.<br>
 +
 
 +
{{BlaueBox|TEXT= 
 +
$\text{Definition:}$&nbsp; A&nbsp; &raquo;'''linear binary block code'''&laquo;&nbsp; $\mathcal{C}$ &nbsp; is a set of&nbsp; $2^k$&nbsp; code words&nbsp; $\underline{x}= (x_1, x_2, \hspace{0.05cm}\text{...}\hspace{0.05cm}, x_n)$,&nbsp; where the&nbsp; (modulo 2)&nbsp; sum of any two code words&nbsp; $\underline{x}$&nbsp; and&nbsp; $\underline{x}\hspace{0.05cm}'$&nbsp; again gives a valid code word:
 +
 
 +
::<math>\underline{x}, \underline{x}\hspace{0.05cm}' \in {\rm GF}(2^n),\hspace{0.3cm} \underline{x}, \underline{x}\hspace{0.05cm}' \in  \mathcal{C}  
 
  \hspace{0.3cm} \Rightarrow \hspace{0.3cm}\underline{x} + \underline{x}\hspace{0.05cm}' \in  \mathcal{C}
 
  \hspace{0.3cm} \Rightarrow \hspace{0.3cm}\underline{x} + \underline{x}\hspace{0.05cm}' \in  \mathcal{C}
 
  \hspace{0.05cm}.</math>
 
  \hspace{0.05cm}.</math>
  
Diese Bedingung muss auch für <i><u>x</u></i> = <i><u>x</u></i>' erfüllt sein.{{end}}<br>
+
*This condition must also be satisfied for&nbsp; $\underline{x} = \underline{x}\hspace{0.05cm}'$&nbsp;.<br>
  
<i>Hinweis:</i> Die Modulo&ndash;Addition wird nun nicht mehr durch das Modulo&ndash;Additionszeichen ausgedrückt, sondern mit dem herkömmlichen Pluszeichen. Diese Vereinfachung der Schreibweise wird für den Rest dieses Buches beibehalten.<br>
+
*For the remainder of this book,&nbsp; modulo addition will no longer be expressed by the&nbsp; "modulo sign"&nbsp; to simplify notation, but by the conventional&nbsp; "plus sign".}} <br>
  
{{Beispiel}}''':''' Wir betrachten zwei (3, 2)&ndash;Blockcodes:
+
{{GraueBox|TEXT= 
 +
$\text{Example 1:}$&nbsp; We consider two&nbsp; $\text{(3, 2)}$&nbsp; block codes:
  
:<math>\mathcal{C}_1 = \{ (0, 0, 0) \hspace{0.05cm}, (0, 1, 1) \hspace{0.05cm},(1, 0, 1) \hspace{0.05cm},(1, 1, 0) \}\hspace{0.05cm},</math>
+
::<math>\mathcal{C}_1 = \{ (0, 0, 0) \hspace{0.05cm}, (0, 1, 1) \hspace{0.05cm},(1, 0, 1) \hspace{0.05cm},(1, 1, 0) \}\hspace{0.05cm},</math>
  
:<math>\mathcal{C}_2 = \{ (0, 0, 0) \hspace{0.05cm}, (0, 1, 1) \hspace{0.05cm},(1, 1, 0) \hspace{0.05cm},(1, 1, 1) \hspace{0.05cm}.</math>
+
::<math>\mathcal{C}_2 = \{ (0, 0, 0) \hspace{0.05cm}, (0, 1, 1) \hspace{0.05cm},(1, 1, 0) \hspace{0.05cm},(1, 1, 1) \hspace{0.05cm}.</math>
  
Man erkennt:
+
You can see:
*Der Code <i>C</i><sub>1</sub> ist linear, da die Modulo&ndash;2&ndash;Addition zweier beliebiger Codeworte stets auch ein gültiges Codewort ergibt, zum Beispiel (0, 1, 1) + (1, 0, 1) = (1, 1, 0).<br>
+
*The code&nbsp; $\mathcal{C}_1$&nbsp; is linear,&nbsp; since the modulo 2 addition of any two code words always yields also a valid code word, e.g.&nbsp; $(0, 1, 1) + (1, 0, 1) = (1, 1, 0)$.<br>
  
*Die obige Definition gilt auch für die Modulo&ndash;2&ndash;Addition eines Codewortes mit sich selbst, zum Beispiel (0, 1, 1) + (0, 1, 1) = (0, 0, 0) &nbsp;&nbsp;&#8658;&nbsp;&nbsp; Jeder lineare Code beinhaltet das Nullwort.<br>
+
*The above definition also applies to the modulo 2 addition of a code word with itself, e.g.&nbsp; $(0, 1, 1) + (0, 1, 1) = (0, 0, 0)$.  
  
*Obwohl die letzte Voraussetzung erfüllt wird, ist <i>C</i><sub>2</sub> kein linearer Code. Für diesen Code gilt nämlich beispielsweise: (0, 1, 1) + (1, 1, 0) = (1, 0, 1). Dies ist kein gültiges Codewort von <i>C</i><sub>2</sub>.{{end}}<br>
+
*From this follows:&nbsp; Each linear code contains the all-zero word&nbsp; $\underline{0}$.<br>
  
Im Folgenden beschränken wir uns ausschließlich auf lineare Codes, da nichtlineare Codes für die Praxis von untergeordneter Bedeutung sind.<br>
+
*Although the last condition is satisfied,&nbsp; $\mathcal{C}_2$&nbsp; is not a linear code.&nbsp; Indeed,&nbsp; for this code: &nbsp; $(0, 1, 1) + (1, 1, 0) = (1, 0, 1)$.&nbsp; This is not a valid code word of&nbsp; $\mathcal{C}_2$.}}<br>
  
{{Definition}}''':''' Ein linearer Blockcode <i>C</i> heißt zyklisch, wenn eine jede zyklische Verschiebung eines Codewortes <i><u>x</u></i> (nach links oder rechts) wieder ein gültiges Codewort ergibt:
+
In the following,&nbsp; we restrict ourselves exclusively to linear codes,&nbsp; since non-linear codes are of secondary importance for practical use.<br>
  
:<math>\underline{x}= (x_1, x_2, ... \hspace{0.05cm}, x_n) \in  \mathcal{C}  
+
{{BlaueBox|TEXT=
\hspace{0.3cm} \Rightarrow \hspace{0.3cm}\underline{x}\hspace{0.05cm}'= (x_n, x_1,  ... \hspace{0.05cm}, x_{n-1}) \in   \mathcal{C}
+
$\text{Definition:}$&nbsp; A linear block code&nbsp; $\mathcal{C}$&nbsp; is called&nbsp; &raquo;'''cyclic'''&laquo;&nbsp; if every cyclic shift of a code word&nbsp; $\underline{x}$ &nbsp; $($to the left or right$)$ &nbsp; results in a valid code word:
\hspace{0.05cm}.</math>{{end}}<br>
 
  
[[File:P ID2354 KC T 1 3 S3c.png|rahmenlos|rechts|Codetabelle des systematischen (7, 4, 3)–Hamming–Codes ]]
+
::<math>\underline{x}= (x_1, x_2, \hspace{0.05cm}\text{...} \hspace{0.05cm}, x_n) \in  \mathcal{C}
 +
\hspace{0.3cm} \Rightarrow \hspace{0.3cm}\underline{x}\hspace{0.05cm}'= (x_n, x_1, \hspace{0.05cm}\text{...} \hspace{0.05cm} \hspace{0.05cm}, x_{n-1}) \in  \mathcal{C}
 +
\hspace{0.05cm}.</math>}}<br>
  
Man erkennt aus der Tabelle für den HC (7, 4, 3), dass dieser linear und zyklisch ist (schwarz: 4 Informationsbit, rot: <i>n</i> &ndash; <i>k</i> = 3 Prüfbit).
 
  
<br>Außerdem ergibt sich auch dann ein gültiges Codewort, wenn man alle Bit invertiert: 0 &#8596; 1. Auch das <u>0</u>&ndash;Wort (<i>n</i> mal eine &bdquo;0&rdquo;) und das <u>1</u>&ndash;Wort (<i>n</i> mal eine &bdquo;1&rdquo;) sind bei diesem Code zulässig.<br>
+
{{GraueBox|TEXT=
 +
[[File:P ID2354 KC T 1 3 S3c.png|right|frame|Code table of the systematic&nbsp; $\text{(7, 4, 3)}$&nbsp; Hamming code;<br>
 +
black: &nbsp; $k= 4$&nbsp; information bits, red: &nbsp; $n-k = 3$&nbsp; parity bits ]] 
 +
$\text{Example 2:}$&nbsp; You can see from the table for the&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Hamming_Codes|$\text{HC (7, 4, 3)}$]] that it is linear and cyclic.
 +
<br><br><br>
 +
*A valid code word results even if all bits are inverted: &nbsp; $0 &#8596; 1$.
 +
 +
*Also the&nbsp; $\underline{0}$&nbsp; word&nbsp; $(n$&nbsp; times a "zero"$)$&nbsp; and the&nbsp; $\underline{1}$&nbsp; word&nbsp; $(n$&nbsp; times a "one"$)$&nbsp; are allowed with this code.}}<br>
  
== Codefestlegung durch die Prüfmatrix ==
+
== Code definition by the parity-check matrix ==
 
<br>
 
<br>
Wir betrachten den (7, 4, 3)&ndash;Hamming&ndash;Code mit Codeworten <i><u>x</u></i> der Länge <i>n</i> = 7, nämlich
+
[[File:P ID2355 KC T 1 3 S3.png|right|frame|Chart for the &nbsp;$\text{(7, 4, 3)}$&nbsp; Hamming code]]
[[File:P ID2355 KC T 1 3 S3.png|rahmenlos|rechts|(7, 4, 3)–Hamming–Code]]
+
We consider the&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Hamming_Codes|$\text{(7, 4, 3)}$&nbsp; Hamming code]]&nbsp; with code words&nbsp; $\underline{x}$&nbsp; of length&nbsp; $n=7$, consisting of
 +
*$k = 4$&nbsp; information bits&nbsp; $x_1$,&nbsp; $x_2$,&nbsp; $x_3$,&nbsp; $x_4$, and<br>
  
*den <i>k</i> = 4 Informationsbits <i>x</i><sub>1</sub>, <i>x</i><sub>2</sub>, <i>x</i><sub>3</sub>, <i>x</i><sub>4</sub> , und<br>
+
*$m = n-k = 3$&nbsp; parity bits $x_5$,&nbsp; $x_6$,&nbsp; $x_7$.<br><br>
  
*den  <i>m</i> = 3 Prüfbits <i>x</i><sub>5</sub>, <i>x</i><sub>6</sub>, <i>x</i><sub>7</sub>.<br><br>
+
The parity-check equations are&nbsp; (see graphic on the right):
  
Die Paritätsgleichungen lauten somit:
+
::<math>x_1 + x_2 + x_3 + x_5    = 0 \hspace{0.05cm},</math>
 +
::<math>x_2 + x_3 + x_4 + x_6    = 0 \hspace{0.05cm},</math>
 +
::<math>x_1 + x_2 + x_4 + x_7    =  0 \hspace{0.05cm}. </math>
  
:<math>x_1 + x_2 + x_3 + x_5    \hspace{-0.1cm} =  \hspace{-0.1cm} 0 \hspace{0.05cm},</math>
+
In matrix notation, this set of equations reads:
:<math>x_2 + x_3 + x_4 + x_6    \hspace{-0.1cm} =  \hspace{-0.1cm} 0 \hspace{0.05cm},</math>
 
:<math>x_1 + x_2 + x_4 + x_7    \hspace{-0.1cm} =  \hspace{-0.1cm}  0 \hspace{0.05cm}. </math>
 
  
In der Matrixschreibweise lautet dieser Gleichungssatz:
+
::<math>{ \boldsymbol{\rm H}} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T}  
 
 
:<math>{ \boldsymbol{\rm H}} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T}  
 
 
  \hspace{0.05cm}. </math>
 
  \hspace{0.05cm}. </math>
  
In dieser Gleichung werden verwendet:
+
In this equation are used:
*die Prüfmatrix <b>H</b> mit <i>m</i> = <i>n</i> &ndash; <i>k</i> = 3 Zeilen und <i>n</i> = 7 Spalten:
+
*the&nbsp; &raquo;'''parity-check matrix'''&laquo;&nbsp; ${ \boldsymbol{\rm H}}$&nbsp;  with&nbsp; $m = n-k = 3$&nbsp; rows and&nbsp; $n = 7$&nbsp; columns:
  
 
::<math>{ \boldsymbol{\rm H}} = \begin{pmatrix}
 
::<math>{ \boldsymbol{\rm H}} = \begin{pmatrix}
Line 76: Line 92:
 
       \end{pmatrix}\hspace{0.05cm},</math>
 
       \end{pmatrix}\hspace{0.05cm},</math>
  
*das Codewort <i><u>x</u></i> = (<i>x</i><sub>1</sub>, <i>x</i><sub>2</sub>, ... , <i>x</i><sub>7</sub>) der Länge <i>n</i> = 7,<br>
+
*the&nbsp; code word&nbsp; $\underline{x}= (x_1,\ x_2, \hspace{0.05cm}\text{...}\hspace{0.05cm},\ x_7)$&nbsp; of length&nbsp; $n = 7$,<br>
 
 
*das Nullvektor <u>0</u> = (0, 0, 0) der Länge <i>m</i> = 3.<br><br>
 
  
Durch Transponieren werden aus <i><u>x</u></i> und <u>0</u> die entsprechenden Spaltenvektoren <i><u>x</u></i><sup>T</sup> und <u>0</u><sup>T</sup>.<br>
+
*the&nbsp; all-zero vector&nbsp; $\underline{0} = (0,\ 0,\ 0)$&nbsp; of length&nbsp; $m = 3$.<br><br>
  
{{Beispiel}}''':'''
+
By&nbsp; "transposing",&nbsp; the&nbsp; row vectors &nbsp; $\underline{x}$ &nbsp;and &nbsp; $\underline{0}$ &nbsp; become the corresponding&nbsp; column vectors&nbsp; $\underline{x}^{\rm T}$&nbsp; and&nbsp; $\underline{0}^{\rm T}$.<br>
[[File:P ID2356 KC T 1 4 S2.png|rahmenlos|rechts|(6, 3, 3)–Blockcode]]
 
  
Die Grafik illustriert die <i>m</i>&nbsp;=&nbsp;3 Paritätsgleichungen eines Codes <i>C</i> mit den Codeparametern <i>n</i> = 6 und <i>k</i>&nbsp;=&nbsp;3 in der Reihenfolge rot, grün und blau. Entsprechend <b>H</b> &middot; <i><u>x</u></i><sup>T</sup> = <u>0</u><sup>T</sup> lautet die Prüfmatrix:
+
{{GraueBox|TEXT= 
 +
$\text{Example 3:}$&nbsp; The graph illustrates the&nbsp; $m = 3$&nbsp; parity-check equations of a code&nbsp; $\mathcal{C}$&nbsp; with code parameters&nbsp; $n = 6$&nbsp; and&nbsp; $k = 3$&nbsp; in the order red, green and blue.&nbsp; Thus,&nbsp;  $\mathcal{C}$&nbsp; is not a Hamming code&nbsp; $(n \ne 2^m-1)$.
 +
[[File:P ID2356 KC T 1 4 S2.png|right|frame|Chart for the &nbsp;$\text{(6, 3, 3)}$&nbsp; block code]]
  
:<math>{ \boldsymbol{\rm H}} = \begin{pmatrix}
+
According to the equation&nbsp; $\boldsymbol{\rm H} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T}$&nbsp; the parity-check matrix is:
 +
::<math> \boldsymbol{\rm H} = \begin{pmatrix}
 
1 &1 &0 &1 &0 & 0\\
 
1 &1 &0 &1 &0 & 0\\
 
1 &0 &1 &0 &1 & 0\\
 
1 &0 &1 &0 &1 & 0\\
Line 93: Line 109:
 
       \end{pmatrix}\hspace{0.05cm}.</math>
 
       \end{pmatrix}\hspace{0.05cm}.</math>
  
Die 2<sup><i>k</i></sup> = 8 Worte einer systematischen Realisierung dieses Codes lauten (mit den Prüfbits rechts vom kleinen Pfeil):
+
The&nbsp; $2^k = 8$&nbsp; code words in systematic realization are&nbsp; (with the parity bits to the right of the small arrow):
  
:<math>\underline{x}_0 \hspace{-0.1cm} = \hspace{-0.1cm} (0, 0, 0_{\hspace{0.01cm} \rightarrow} 0, 0, 0)\hspace{0.05cm}, \hspace{0.2cm} \underline{x}_1 = (0, 0, 1_{\hspace{0.01cm} \rightarrow}0, 1, 1)\hspace{0.05cm},\hspace{0.2cm}  
+
:<math>\underline{x}_0 = (0,\ 0,\ 0_{\hspace{0.01cm} \rightarrow} 0,\ 0,\ 0)\hspace{0.05cm}, \hspace{0.5cm} \underline{x}_1 = (0,\ 0,\ 1_{\hspace{0.01cm} \rightarrow}0,\ 1,\ 1)\hspace{0.05cm},\hspace{0.5cm}  
\underline{x}_2 = (0, 1, 0_{\hspace{0.01cm} \rightarrow}1, 0, 1)\hspace{0.05cm},</math>
+
\underline{x}_2 = (0,\ 1,\ 0_{\hspace{0.01cm} \rightarrow}1,\ 0,\ 1)\hspace{0.05cm},\hspace{0.5cm}\underline{x}_3 = (0, 1, 1_{\hspace{0.01cm} \rightarrow}1,\ 1,\ 0)\hspace{0.05cm}, </math>
:<math>\underline{x}_3 \hspace{-0.1cm} \hspace{-0.1cm} (0, 1, 1_{\hspace{0.01cm} \rightarrow}1, 1, 0)\hspace{0.05cm},\hspace{0.2cm}
+
:<math>\underline{x}_4 = (1,\ 0,\ 0_{\hspace{0.01cm} \rightarrow} 1,\ 1,\ 0)\hspace{0.05cm}, \hspace{0.5cm} \underline{x}_5 = (1,\ 0,\ 1_{\hspace{0.01cm} \rightarrow}1,\ 0,\ 1)\hspace{0.05cm},\hspace{0.5cm}  
\underline{x}_4 = (1, 0, 0_{\hspace{0.01cm} \rightarrow} 1, 1, 0)\hspace{0.05cm}, \hspace{0.2cm} \underline{x}_5 = (1, 0, 1_{\hspace{0.01cm} \rightarrow}1, 0, 1)\hspace{0.05cm},</math>
+
\underline{x}_6 = (1,\ 1,\ 0_{\hspace{0.01cm} \rightarrow}0,\ 1,\ 1)\hspace{0.05cm}, \hspace{0.5cm} \underline{x}_7 = (1,\ 1,\ 1_{\hspace{0.01cm} \rightarrow}0,\ 0,\ 0)\hspace{0.05cm}.</math>
:<math>\underline{x}_6 \hspace{-0.1cm} \hspace{-0.1cm} (1, 1, 0_{\hspace{0.01cm} \rightarrow}0, 1, 1)\hspace{0.05cm}, \hspace{0.2cm} \underline{x}_7 = (1, 1, 1_{\hspace{0.01cm} \rightarrow}0, 0, 0)\hspace{0.05cm}.</math>
 
  
Man erkennt aus diesen Angaben:
+
It can be seen from these specifications:
*Die Anzahl der Spalten von <b>H</b> ist gleich der Codelänge <i>n</i>.<br>
+
*The number of columns&nbsp; $\boldsymbol{\rm H}$&nbsp; is equal to the code length&nbsp; $n$.<br>
  
*Die Anzahl der Zeilen von <b>H</b> ist gleich der Anzahl <i>m</i> = <i>n</i> &ndash; <i>k</i> der Prüfgleichungen.<br>
+
*The number of lines of&nbsp; $\boldsymbol{\rm H}$&nbsp; is equal to the number&nbsp; $m = n-k$&nbsp; of parity-check equations.<br>
  
*Aus <b>H</b> &middot; <i><u>x</u></i><sup>T</sup> = <u>0</u> folgt nicht, dass alle Codeworte eine gerade Anzahl von Einsen beinhalten.{{end}}<br>
+
*From&nbsp; $\boldsymbol{\rm H} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T} $&nbsp; it therefore does not follow that all code words contain an even number of ones.}}<br>
  
== Codefestlegung durch die Generatormatrix ==
+
== Code definition by the generator matrix ==
 
<br>
 
<br>
Die Prüfmatrix <b>H</b> eines (<i>n</i>, <i>k</i>)&ndash;Blockcodes <i>C</i> hat <i>m</i> = <i>n</i> &ndash; <i>k</i> Zeilen und <i>n</i> Spalten. Den gleichen Code kann man aber auch durch die Generatormatrix <b>G</b> mit ebenfalls <i>n</i> Spalten, aber <i>k</i> Zeilen beschreiben:<br>
+
The check matrix&nbsp; $\boldsymbol{\rm H}$&nbsp; of a&nbsp; $(n, k)$&nbsp; block code has&nbsp;
 +
*$n$&nbsp; columns,
 +
*$m = n-k$&nbsp; rows.  
 +
 
  
{{Definition}}''':''' Ein linearer Blockcode <i>C</i> kann durch die Prüfmatrix <b>H</b> bzw. mit der Generatormatrix <b>G</b> wie folgt charakterisiert werden:
+
However,&nbsp; the same code can be described by the matrix&nbsp; $\boldsymbol{\rm G}$&nbsp; with
 +
*also&nbsp; $n$&nbsp; columns,
 +
*but&nbsp; $k$&nbsp; rows.<br>
  
:<math>\mathcal{C} \hspace{-0.1cm} =  \hspace{-0.1cm} \{ \underline{x} \in {\rm GF}(2^n): \hspace{0.2cm}{ \boldsymbol{\rm H}} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T} \}\hspace{0.05cm},</math>
 
:<math>\mathcal{C} \hspace{-0.1cm} =  \hspace{-0.1cm} \{ \underline{x} \in {\rm GF}(2^n)\hspace{0.05cm}, \hspace{0.1cm}\underline{u} \in {\rm GF}(2^k)
 
: \hspace{0.2cm}\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G}}  \}\hspace{0.05cm}.</math>{{end}}<br>
 
  
Bevor wir uns den Eigenschaften der Generatormatrix zuwenden, beschreiben wir an einem Beispiel die Erzeugung der Codeworte.<br>
+
{{BlaueBox|TEXT= 
 +
$\text{Definition:}$&nbsp; A linear binary block code&nbsp; $\mathcal{C}$&nbsp; can be characterized by the&nbsp; &raquo;'''check matrix'''&laquo;&nbsp; $\boldsymbol{\rm H}$&nbsp; or with the&nbsp; &raquo;'''generator matrix'''&laquo;&nbsp; $\boldsymbol{\rm G}$&nbsp; as follows:
  
{{Beispiel}}''':''' Wir betrachten einen linearen (5, 3)&ndash;Blockcode mit der Generatormatrix
+
::<math>\mathcal{C} = \{ \underline{x} \in {\rm GF}(2^n)\text{:} \hspace{0.2cm}{ \boldsymbol{\rm H} } \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T} \}\hspace{0.05cm},</math>
 +
::<math>\mathcal{C} = \{ \underline{x} \in {\rm GF}(2^n)\hspace{0.05cm}, \hspace{0.1cm}\underline{u} \in {\rm GF}(2^k)\text{:}
 +
\hspace{0.2cm}\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G} }  \}\hspace{0.05cm}.</math>}}<br>
  
:<math>{ \boldsymbol{\rm G}} = \begin{pmatrix}
+
Before we turn to the properties of the generator matrix,&nbsp;  we describe the generation of the code words with an example.<br>
 +
 
 +
{{GraueBox|TEXT= 
 +
$\text{Example 4:}$&nbsp; We consider a linear&nbsp; $(5, 3)$&nbsp; block code with the generator matrix (again:&nbsp; this is not a Hamming code!)
 +
 
 +
::<math> \boldsymbol{\rm G} = \begin{pmatrix}
 
1 &1 &0 &1 &1\\
 
1 &1 &0 &1 &1\\
 
0 &1 &0 &1 &0\\
 
0 &1 &0 &1 &0\\
Line 135: Line 160:
 
\hspace{0.05cm}.</math>
 
\hspace{0.05cm}.</math>
  
Damit werden die Informationsworte <i><u>u</u></i> = (<i>u</i><sub>1</sub>, <i>u</i><sub>2</sub>, <i>u</i><sub>3</sub>) den Codeworten <i><u>x</u></i>&nbsp;=&nbsp;(<i>x</i><sub>1</sub>,&nbsp;<i>x</i><sub>2</sub>,&nbsp;<i>x</i><sub>3</sub>,&nbsp;<i>x</i><sub>4</sub>,&nbsp;<i>x</i><sub>5</sub>) gemäß der folgenden Tabelle mit 8 Einträgen zugeordnet. Es gilt <i><u>x</u></i>&nbsp;=&nbsp;<i><u>u</u></i>&nbsp;&middot;&nbsp;<b>G</b>.
+
*Thus,&nbsp; the information words&nbsp; $\underline{u}= (u_1,\ u_2,\ u_3)$&nbsp; are assigned to the code words&nbsp; $\underline{x}= (x_1,\ x_2,\ x_3,\ x_4,\ x_5)$&nbsp; according to the following equations.  
 +
*The following always applies:&nbsp; $\underline{x} = \underline{u} \cdot  \boldsymbol{\rm G}$:
  
:<math>\underline{u}_0 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_0 = (0, 0, 0, 0, 0) \hspace{0.05cm},</math>
+
::<math>\underline{u}_0 = (0, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_0 = (0, 0, 0, 0, 0) \hspace{0.05cm},</math>
:<math>\underline{u}_1 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_1 = (0, 1, 1, 1, 0) \hspace{0.1cm}= \hspace{0.1cm}\underline{g}_3\hspace{0.05cm},</math>
+
::<math>\underline{u}_1 = (0, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_1 = (0, 1, 1, 1, 0) \hspace{0.1cm}= \hspace{0.1cm}\underline{g}_3\hspace{0.05cm},</math>
:<math>\underline{u}_2 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_2 = (0, 1, 0, 1, 0)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_2\hspace{0.05cm},</math>
+
::<math>\underline{u}_2 = (0, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_2 = (0, 1, 0, 1, 0)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_2\hspace{0.05cm},</math>
:<math>\underline{u}_3 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_3 = (0, 0, 1, 0, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{g}_2+\underline{g}_3\hspace{0.05cm},</math>
+
::<math>\underline{u}_3 = (0, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_3 = (0, 0, 1, 0, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{g}_2+\underline{g}_3\hspace{0.05cm},</math>
:<math>\underline{u}_4 \hspace{-0.15cm} = \hspace{-0.15cm} (1, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_4 = (1, 1, 0, 1, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1 \hspace{0.05cm},</math>
+
::<math>\underline{u}_4 = (1, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_4 = (1, 1, 0, 1, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1 \hspace{0.05cm},</math>
:<math>\underline{u}_5 \hspace{-0.15cm} = \hspace{-0.15cm}(1, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_5 = (1, 0, 1, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+\underline{g}_3\hspace{0.05cm},</math>
+
::<math>\underline{u}_5 =(1, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_5 = (1, 0, 1, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+\underline{g}_3\hspace{0.05cm},</math>
:<math>\underline{u}_6 \hspace{-0.15cm} = \hspace{-0.15cm} (1, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_6 = (1, 0, 0, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+\underline{g}_2\hspace{0.05cm},</math>
+
::<math>\underline{u}_6 = (1, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_6 = (1, 0, 0, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+\underline{g}_2\hspace{0.05cm},</math>
:<math>\underline{u}_7 \hspace{-0.15cm} = \hspace{-0.15cm} (1, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_7 = (1, 1, 1, 1, 1) \hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+ \underline{g}_2+\underline{g}_3\hspace{0.05cm}.</math>{{end}}<br>
+
::<math>\underline{u}_7 =(1, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_7 = (1, 1, 1, 1, 1) \hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+ \underline{g}_2+\underline{g}_3\hspace{0.05cm}.</math>}}<br>
  
Die hier zur Berechnung herangezogenen Basisvektoren <i><u>g</u></i><sub>1</sub>, <i><u>g</u></i><sub>2</sub>, <i><u>g</u></i><sub>3</sub> &ndash; jeweils mit der Länge <i>n</i> = 5 &ndash; entsprechen den <i>k</i> = 3 Zeilen der Generatormatrix <b>G</b>. Anzumerken ist ferner, dass dieser Code wegen <i>d</i><sub>min</sub> = 1 weder zur Fehlerkorrektur noch zur Fehlererkennung geeignet ist. Trotzdem wird er auch auf den nächsten Seiten beispielhaft weiter betrachtet.<br>
+
Notes:
 +
*The basis vectors used here for the calculation&nbsp; $\underline{g}_1$,&nbsp; $\underline{g}_2$&nbsp; and&nbsp; $\underline{g}_3$&nbsp; &ndash; each with length&nbsp; $n = 5$&nbsp; &ndash; correspond to the&nbsp; $k = 3$&nbsp; rows of the generator matrix&nbsp; $\boldsymbol{\rm G}$.
 +
 +
*This code is neither suitable for error correction nor for error detection because of&nbsp; $d_{\rm min} = 1$.&nbsp; Nevertheless,&nbsp; this code is also considered exemplarily in the next sections,&nbsp; because the coding results are well interpretable.<br>
  
<i>Hinweis</i>: An dieser Stelle möchten wir Sie auf ein Interaktionsmodul zum Buch &bdquo;Digitalsignalübertragung&rdquo; aufmerksam machen, das die Bedeutung und Berechnung von Basisfunktionen vermittelt, wenn auch in völlig anderem Zusammenhang als in diesem Buch:<br>
+
*At this point we would like to draw your attention to the applet&nbsp; [[Applets:Gram-Schmidt-Verfahren|$\text{Gram&ndash;Schmidt process}$]]&nbsp; for the book&nbsp; "Digital Signal Transmission",&nbsp; which teaches the calculation of basis functions,&nbsp; although in a different context than the one used here.<br>
  
[[Gram&ndash;Schmidt&ndash;Verfahren Please add link and do not upload flash files.]]
 
  
== Systematische Codes (1) ==
+
== Identical Codes ==
 
<br>
 
<br>
Die im Beispiel auf der letzten Seite verwendeten Vektoren <i><u>g</u></i><sub>1</sub>, <i><u>g</u></i><sub>2</sub>, ... , <i><u>g</u><sub>k</sub></i> sind die Basisvektoren des linearen Blockcodes <i>C</i>. Der Code selbst kann als <i>k</i>&ndash;dimensionaler <i>Untervektorraum</i> von GF(2<sup><i>n</i></sup>) angesehen werden. Die Basisvektoren <i><u>g</u></i><sub>1</sub>, <i><u>g</u></i><sub>2</sub>, ... , <i><u>g</u><sub>k</sub></i> sind linear unabhängig.<br>
+
The vectors&nbsp; $\underline{g}_1$,&nbsp; $\underline{g}_2$,&nbsp; ... &nbsp;,&nbsp; $\underline{g}_k$&nbsp; used in&nbsp; $\text{Example 4}$&nbsp; in the last section are the&nbsp; [[Digital_Signal_Transmission/Signals,_Basis_Functions_and_Vector_Spaces#Orthonormal_basis_functions|$\text{basis vectors}$]]&nbsp; of the linear block code&nbsp; $\mathcal{C}$.  
 +
*The code itself can be viewed as a&nbsp; $k$&ndash;dimensional&nbsp; subspace&nbsp; of&nbsp; $\text{GF}(2^n)$.
  
Der Untervektorraum <i>C</i> wird aber nicht nur durch die Basisvektoren
+
*The basis vectors&nbsp; $\underline{g}_1$,&nbsp; $\underline{g}_2$,&nbsp; ... &nbsp;, $\underline{g}_k$&nbsp; are linearly independent.<br>
  
:<math>\underline{g}_1 = (1, 1, 0, 1, 1) \hspace{0.05cm},\hspace{0.3cm}
+
 
 +
However,&nbsp; the subspace&nbsp; $\mathcal{C}$&nbsp; is not only spanned by the basis vectors
 +
 
 +
::<math>\underline{g}_1 = (1, 1, 0, 1, 1) \hspace{0.05cm},\hspace{0.3cm}
 
\underline{g}_2 = (0, 1, 0, 1, 0) \hspace{0.05cm},\hspace{0.3cm}
 
\underline{g}_2 = (0, 1, 0, 1, 0) \hspace{0.05cm},\hspace{0.3cm}
 
\underline{g}_3 = (0, 1, 1, 1, 0) \hspace{0.05cm}</math>
 
\underline{g}_3 = (0, 1, 1, 1, 0) \hspace{0.05cm}</math>
  
aufgespannt, sondern andere Basisvektoren <i><u>g</u></i>'<sub>1</sub>, <i><u>g</u></i>'<sub>2</sub> und <i><u>g</u></i>'<sub>3</sub> sind ebenso geeignet, so lange zwischen diesen die lineare Unabhängigkeit gewährleistet ist.<br>
+
but other basis vectors&nbsp; $\underline{g}\hspace{0.05cm}'_1$,&nbsp; $\underline{g}\hspace{0.05cm}'_2$&nbsp; and&nbsp; $\underline{g}\hspace{0.05cm}'_3$&nbsp; are equally suitable as long as linear independence is guaranteed between them.<br>
  
{{Beispiel}}''':''' Wir vergleichen die beiden Codes <i>C</i> und <i>C</i><sub>&nbsp;</sub>' mit den Generatormatrizen
+
{{GraueBox|TEXT= 
 +
$\text{Example 5:}$&nbsp; We compare the code&nbsp; $\mathcal{C}$&nbsp; of&nbsp; [[Channel_Coding/General_Description_of_Linear_Block_Codes#Code_definition_by_the_generator_matrix|$\text{Example 4}$]]&nbsp; with a second code&nbsp; $\mathcal{C}\hspace{0.05cm}'$.&nbsp; The generator matrices are:
  
:<math>{ \boldsymbol{\rm G}} = \begin{pmatrix}
+
::<math> \boldsymbol{\rm G} = \begin{pmatrix}
 
\underline{g}_1\\
 
\underline{g}_1\\
 
\underline{g}_2\\
 
\underline{g}_2\\
Line 176: Line 209:
 
0 &1 &1 &1 &0  
 
0 &1 &1 &1 &0  
 
\end{pmatrix}\hspace{0.05cm},\hspace{0.3cm}
 
\end{pmatrix}\hspace{0.05cm},\hspace{0.3cm}
{ \boldsymbol{\rm G}\hspace{0.05cm}'} = \begin{pmatrix}
+
\boldsymbol{\rm G}\hspace{0.05cm}' = \begin{pmatrix}
 
\underline{g}\hspace{0.05cm}'_1\\
 
\underline{g}\hspace{0.05cm}'_1\\
 
\underline{g}\hspace{0.05cm}'_2\\
 
\underline{g}\hspace{0.05cm}'_2\\
Line 187: Line 220:
 
\end{pmatrix}\hspace{0.05cm}.</math>
 
\end{pmatrix}\hspace{0.05cm}.</math>
  
Die beiden Codes sind identisch: Sie beinhalten die genau gleichen Codeworte; es gilt nur eine andere Zuordnung. Bei dem Übergang von <b>G</b> auf <b>G</b>' wurden folgende erlaubte Operationen ausgeführt:
+
*The two codes are identical: &nbsp; They contain the exact same code words; only a different assignment applies.
 +
 +
*During the transition from&nbsp; $\boldsymbol{\rm G}$&nbsp; to&nbsp; $\boldsymbol{\rm G}\hspace{0.05cm}'$,&nbsp; the following allowed operations were performed:
  
:<math>\underline{g}\hspace{0.05cm}'_1 = \underline{g}_1 + \underline{g}_2  \hspace{0.05cm},\hspace{0.3cm}
+
::<math>\underline{g}\hspace{0.05cm}'_1 = \underline{g}_1 + \underline{g}_2  \hspace{0.05cm},\hspace{0.3cm}
 
\underline{g}\hspace{0.05cm}'_2 = \underline{g}_2  \hspace{0.05cm},\hspace{0.3cm}
 
\underline{g}\hspace{0.05cm}'_2 = \underline{g}_2  \hspace{0.05cm},\hspace{0.3cm}
 
\underline{g}\hspace{0.05cm}'_3 = \underline{g}_2 + \underline{g}_3 \hspace{0.05cm}.</math>
 
\underline{g}\hspace{0.05cm}'_3 = \underline{g}_2 + \underline{g}_3 \hspace{0.05cm}.</math>
  
Zum entsprechenden Code <i>C</i><sub>&nbsp;</sub>' kommt man mit der Gleichung <i><u>x</u></i><sub>&nbsp;</sub>' = <u><i>u</i></u> &middot; <b>G</b>.
+
*The corresponding code &nbsp; $\mathcal{C}'$ &nbsp; is obtained by the equation&nbsp; $\underline{x}' = \underline{u} \cdot  \boldsymbol{\rm G}'$:
  
:<math>\underline{u}_0 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_0 =  
+
::<math>\underline{u}_0 = (0, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_0 =  
 
(0, 0, 0, 0, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_0 \hspace{0.05cm},</math>
 
(0, 0, 0, 0, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_0 \hspace{0.05cm},</math>
:<math>\underline{u}_1 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_1 =  
+
::<math>\underline{u}_1 = (0, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_1 =  
 
(0, 0, 1, 0, 0) \hspace{0.1cm}= \hspace{0.1cm}\underline{x}_3\hspace{0.05cm},</math>
 
(0, 0, 1, 0, 0) \hspace{0.1cm}= \hspace{0.1cm}\underline{x}_3\hspace{0.05cm},</math>
:<math>\underline{u}_2 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_2 =  
+
::<math>\underline{u}_2 = (0, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_2 =  
 
(0, 1, 0, 1, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_2\hspace{0.05cm},</math>
 
(0, 1, 0, 1, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_2\hspace{0.05cm},</math>
:<math>\underline{u}_3 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_3 =  
+
::<math>\underline{u}_3 = (0, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_3 =  
 
(0, 1, 1, 1, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_1\hspace{0.05cm},</math>
 
(0, 1, 1, 1, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_1\hspace{0.05cm},</math>
:<math>\underline{u}_4 \hspace{-0.15cm} = \hspace{-0.15cm} (1, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_4 =  
+
::<math>\underline{u}_4 = (1, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_4 =  
 
(1, 0, 0, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_6 \hspace{0.05cm},</math>
 
(1, 0, 0, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_6 \hspace{0.05cm},</math>
:<math>\underline{u}_5 \hspace{-0.15cm} = \hspace{-0.15cm}(1, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_5 =  
+
::<math>\underline{u}_5 =(1, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_5 =  
 
(1, 0, 1, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_5\hspace{0.05cm},</math>
 
(1, 0, 1, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_5\hspace{0.05cm},</math>
:<math>\underline{u}_6 \hspace{-0.15cm} = \hspace{-0.15cm} (1, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_6 =  
+
::<math>\underline{u}_6 = (1, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_6 =  
 
(1, 1, 0, 1, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_4\hspace{0.05cm},</math>
 
(1, 1, 0, 1, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_4\hspace{0.05cm},</math>
:<math>\underline{u}_7 \hspace{-0.15cm} = \hspace{-0.15cm} (1, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_7 =  
+
::<math>\underline{u}_7 = (1, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_7 =  
 
(1, 1, 1, 1, 1) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_7\hspace{0.05cm}.</math>
 
(1, 1, 1, 1, 1) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_7\hspace{0.05cm}.</math>
  
Die Codeworte <i><u>x</u></i><sub>i;</sub> beziehen sich auf die Generatormatrix <b>G</b>. Sie finden diese auf der letzten Seite.{{end}}<br>
+
*The corresponding code words&nbsp; $\underline{x}_i = \underline{u}_i \cdot  \boldsymbol{\rm G}$&nbsp; of the code &nbsp; $\mathcal{C}$ &nbsp; &rArr; &nbsp; generator matrix&nbsp$\boldsymbol{\rm G}$&nbsp; are give in&nbsp;  $\text{Example 4}$&nbsp; (previous section).}}<br>
  
Diese Codetabelle macht nochmals deutlich:
+
{{BlaueBox|TEXT= 
*<i>C</i> und <i>C</i><sub>&nbsp;</sub>' beinhalten die genau gleichen Codeworte. Sie sind damit <i>identische Codes</i> und besitzen beide die gleiche Korrekturfähigkeit (siehe nächste Seite).<br>
+
$\text{Conclusion:}$&nbsp; The code tables of&nbsp; $\text{Example 4}$&nbsp; and&nbsp; $\text{Example 5}$&nbsp; make clear:
 +
*$\mathcal{C}$&nbsp; and&nbsp; $\mathcal{C}\hspace{0.05cm}'$&nbsp; contain the same code words.&nbsp; They are thus&nbsp; "identical codes"&nbsp; and both have the same capability of correction&nbsp; (see next section).<br>
  
*<i>C</i><sub>&nbsp;</sub>' ist aber nun ein systematischer Code, da die ersten <i>k</i> Binärstellen eines jeden Codewortes <i><u>x</u></i>' mit den Binärstellen des Informationswortes <i><u>u</u></i> übereinstimmen.<br>
+
*$\mathcal{C}\hspace{0.05cm}'$&nbsp;  is now a&nbsp; "systematic code"&nbsp; since the first&nbsp; $k$&nbsp; binary digits of each code word&nbsp; $\underline{x}\hspace{0.05cm}'_i$&nbsp; match the binary digits of the information word.}}<br>
  
== Systematische Codes (2) ==
+
== Systematic Codes==
 
<br>
 
<br>
Die Eigenschaft &bdquo;systematisch&rdquo; soll nun noch in mathematischer Form angegeben werden.<br>
+
The property&nbsp; "systematic"&nbsp; is now to be specified in mathematical form.<br>
  
{{Definition}}''':''' Bei einem systematischen (n, k)&ndash;Blockcode <i>C</i><sub>sys</sub> beinhaltet jedes Codewort <i><u>x</u></i> explizit das Informationswort <i><u>u</u></i>, das heißt es gilt
+
{{BlaueBox|TEXT= 
 +
$\text{Definition:}$&nbsp; In a&nbsp; $\text{systematic }(n, k) \text{ block code} \ \ \mathcal{C}$&nbsp; each code word&nbsp; $\underline{x}$&nbsp; explicitly includes the information word&nbsp; $\underline{u}$.
 +
*That is,&nbsp; it applies: &nbsp; $\underline{u} =  (u_1,\ u_2, \hspace{0.05cm}\text{...} \hspace{0.05cm},\ u_k) \hspace{0.3cm} \Rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm} =
 +
(u_1,\ u_2,\ ... \hspace{0.05cm},\ u_k,\ x_{k+1}, \hspace{0.05cm}\text{...}\hspace{0.05cm},\ x_n)\hspace{0.05cm}.$
  
:<math>\underline{u} = (u_1, u_2, ... \hspace{0.05cm}, u_k) \hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm} =
+
*The generator matrix in this case has the form &nbsp; $\boldsymbol{\rm G_{\rm sys} } =\left({ \boldsymbol{\rm I}_{\rm k} \ ; \ \boldsymbol{\rm P} }\right)$ &nbsp; with the&nbsp; $k&times;k$&nbsp; "identity matrix" &nbsp; $\boldsymbol{\rm I}_{\rm k}$ &nbsp; and a suitably chosen&nbsp; $(n-1)&times;k$&nbsp; matrix &nbsp; $\boldsymbol{\rm P}$.}}<br>
(u_1, u_2, ... \hspace{0.05cm}, u_k, x_{k+1}, ... \hspace{0.05cm}, x_n)\hspace{0.05cm},</math>
 
  
und die Generatormatrix hat die spezifische Form
+
So,&nbsp; for &nbsp; $\text{Example 5}$&nbsp; in the last section can also be written:
  
:<math>{ \boldsymbol{\rm G_{sys}}} =\left({ \boldsymbol{\rm I}}_k \: ; \: { \boldsymbol{\rm P}}\right)</math>
+
::<math> \boldsymbol{\rm G_{sys}} =\left({ \boldsymbol{\rm I}}_3 \: ; \: { \boldsymbol{\rm P}}\right)\hspace{0.3cm}{\rm with}\hspace{0.3cm}
 
 
mit der <i>k</i>&times;<i>k</i>&ndash;Einheitsmatrix <b>I</b><sub><i>k</i></sub> und einer geeignet zu wählenden (<i>n</i> &ndash; <i>k</i>)&times;<i>k</i>&ndash;Matrix <b>P</b>.{{end}}<br>
 
 
 
Für das Beispiel auf der letzten Seite kann also auch geschrieben werden:
 
 
 
:<math>{ \boldsymbol{\rm G_{sys}}} =\left({ \boldsymbol{\rm I}}_3 \: ; \: { \boldsymbol{\rm P}}\right)\hspace{0.3cm}{\rm mit}\hspace{0.3cm}
 
 
{ \boldsymbol{\rm I_{3}}} = \begin{pmatrix}  
 
{ \boldsymbol{\rm I_{3}}} = \begin{pmatrix}  
 
1 &0 &0 \\
 
1 &0 &0 \\
 
0 &1 &0 \\
 
0 &1 &0 \\
 
0 &0 &1   
 
0 &0 &1   
\end{pmatrix}\hspace{0.3cm}{\rm und}\hspace{0.3cm}
+
\end{pmatrix}\hspace{0.3cm}{\rm and}\hspace{0.3cm}
 
{ \boldsymbol{\rm P}} = \begin{pmatrix}  
 
{ \boldsymbol{\rm P}} = \begin{pmatrix}  
 
0 &1  \\
 
0 &1  \\
Line 248: Line 280:
 
\end{pmatrix}\hspace{0.05cm}.</math>
 
\end{pmatrix}\hspace{0.05cm}.</math>
  
Erfreulich aus Sicht der Kanalcodierung ist, dass für jeden Code <i>C</i> ein systematischer (identischer oder zumindest äquivalenter) Code <i>C</i><sub>sys</sub> gefunden werden kann.<br>
+
It is gratifying from the point of view of channel coding,&nbsp; that for each code&nbsp; $\mathcal{C}$&nbsp; a systematic&nbsp; $($identical or at least equivalent$)$&nbsp; code&nbsp; $\mathcal{C}_{\rm sys}$&nbsp; can be found.<br>
  
Zum identischen Code (das heißt <i><u>x</u></i> und <i><u>x</u></i><sub>sys</sub> haben die gleichen Codeworte, nur die Zuordnung <i><u>u</u></i>&nbsp;&#8594;&nbsp;<i><u>x</u></i> ist unterschiedlich) kommt man durch folgende Manipulationen bezüglich <b>G</b>:
+
In an&nbsp; &raquo;'''identical systematic code'''&laquo;,&nbsp;&nbsp; $\underline{x}$&nbsp; and&nbsp; $\underline{x}_{\rm sys}$&nbsp; contain the same code words,&nbsp; only the mapping&nbsp; $\underline{u&nbsp; &#8594; &nbsp; \underline{x}$&nbsp; is different.&nbsp; One gets from a block code&nbsp; $\mathcal{C}$&nbsp; to the identical systematic code&nbsp; $\mathcal{C}_{\rm sys}$&nbsp; by the following manipulations with respect to the generator matrix&nbsp; $\mathcal{\rm G}$:
*Vertauschen oder Permutieren der Zeilen,<br>
+
*Swap or permute the rows,<br>
  
*Multiplizieren aller Zeilen mit einem konstanten Vektor ungleich <u>0</u>,<br>
+
*Multiply all rows by a constant vector not equal to&nbsp; $\underline{0}$,<br>
  
*Ersetzen einer Zeile durch eine Linearkombination zwischen dieser Zeile und einer anderen.<br><br>
+
*Replace a row with a linear combination between this row and another one.<br>
  
Ein identischer systematischer Code kann immer dann gefunden werden, wenn zu einer Generatormatrix <b>G</b> eine Matrix <b>A</b> existiert, so dass <b>G</b><sub>sys</sub> = <b>A</b> &middot; <b>G</b> gilt. Ist dies nicht möglich, so findet man zumindest durch Vertauschen oder Permutieren der Spalten von <b>G</b> einen äquivalenten systematischen Code:
 
  
:<math>\mathcal{C}_{\rm sys} = {\rm \pi} (\mathcal{C})\hspace{0.3cm}{\rm mit}\hspace{0.3cm}{\rm \pi}():\hspace{0.15cm}{\rm Permutationsoperator}\hspace{0.05cm}.</math>
+
{{BlaueBox|TEXT= 
 +
$\text{Without proof:}$&nbsp; An&nbsp; $\text{identical systematic code  }\mathcal{C}_{\rm sys}$&nbsp; can be found whenever to a generator matrix&nbsp; $\boldsymbol{\rm G}$&nbsp; there exists a matrix&nbsp; $\boldsymbol{\rm A}$&nbsp; such that&nbsp; $\boldsymbol{\rm G}_{\rm sys} = \boldsymbol{\rm A} \cdot \boldsymbol{\rm G}$&nbsp; holds.}}
  
Die Codes <i>C</i> und <i>C</i><sub>sys</sub> beinhalten dann zwar andere Codeworte, aber sie zeigen gleiche Eigenschaften. Beispielsweise weist <i>C</i><sub>sys</sub> die gleiche minimale Hamming&ndash;Distanz <i>d</i><sub>min</sub> auf wie der Code <i>C</i>.<br>
 
  
{{Beispiel}}''':''' Wir betrachten die Generatormatrizen
+
If this is not possible,&nbsp; one can at least find an&nbsp; &raquo;'''equivalent systematic code'''&laquo;&nbsp; by swapping or permuting the columns of&nbsp; $\boldsymbol{\rm G}$&nbsp;:
 +
::<math>\mathcal{C}_{\rm sys} = {\rm \pi} (\mathcal{C})\hspace{0.3cm}{\rm with}\hspace{0.3cm}{\rm \pi}():\hspace{0.15cm}{\rm permutation\:operator}\hspace{0.05cm}.</math>
  
:<math>{ \boldsymbol{\rm G}} = \begin{pmatrix}  
+
*The codes&nbsp; $\mathcal{C}$&nbsp; and&nbsp; $\mathcal{C}_{\rm sys}$&nbsp; then contain different code words,&nbsp; but they exhibit the same properties.
 +
*For example,&nbsp; in this case&nbsp; $\mathcal{C}_{\rm sys}$&nbsp;  exhibits the same minimum Hamming distance&nbsp; $d_{\rm min}$&nbsp; as the code&nbsp; $\mathcal{C}$.<br>
 +
 
 +
 
 +
{{GraueBox|TEXT= 
 +
$\text{Example 6:}$&nbsp; We consider the generator matrices
 +
 
 +
::<math> \boldsymbol{\rm G} = \begin{pmatrix}  
 
1 &1 &0 &0 \\
 
1 &1 &0 &0 \\
 
0 &0 &1 &1   
 
0 &0 &1 &1   
\end{pmatrix}\hspace{0.3cm}{\rm und}\hspace{0.3cm}
+
\end{pmatrix},\hspace{0.3cm}
{ \boldsymbol{\rm G_{sys}}} = \begin{pmatrix}  
+
  \boldsymbol{\rm G_{sys} } = \begin{pmatrix}  
 
1 &0 &1 &0 \\
 
1 &0 &1 &0 \\
 
0 &1 &0 &1
 
0 &1 &0 &1
 
\end{pmatrix}\hspace{0.05cm}.</math>
 
\end{pmatrix}\hspace{0.05cm}.</math>
  
<b>G</b><sub>sys</sub> ergibt sich aus <b>G</b> durch Vertauschen der zweiten und dritten Spalte. Die zugehörigen Codes beinhalten unterschiedliche Codeworte und sind somit auch <i>nicht identisch</i>. Aber sie sind <i>äquivalent</i>: Es handelt sich in beiden Fällen um einen (4, 2, 2)&ndash;Blockcode &nbsp;&nbsp;&#8658;&nbsp;&nbsp; <i>d</i><sub>min</sub> = 2:
+
The analysis shows:
 +
*The corresponding codes&nbsp; $\mathcal{C}$&nbsp; and&nbsp; $\mathcal{C}_{\rm sys}$&nbsp; contain different code words and are thus&nbsp; &raquo;'''not identical'''&laquo;:
 +
::<math>\mathcal{C} = \big \{ (0, 0, 0, 0) \hspace{0.05cm}, (0, 0, 1, 1) \hspace{0.05cm},(1, 1, 0, 0) \hspace{0.05cm},(1, 1, 1, 1) \big \}\hspace{0.05cm},</math>
 +
::<math>\mathcal{C}_{\rm sys}= \big \{ (0, 0, 0, 0) \hspace{0.05cm}, (0, 1, 0, 1) \hspace{0.05cm},(1, 0, 1, 0) \hspace{0.05cm},(1, 1, 1, 1) \big \}\hspace{0.05cm}.</math>
 +
*But they are&nbsp; &raquo;'''equivalent'''&laquo;:&nbsp; $\boldsymbol{\rm G}_{\rm sys}$&nbsp; is obtained from&nbsp; $\boldsymbol{\rm G}$&nbsp; by swapping the second and third columns.&nbsp;
 +
 
 +
*It is a&nbsp; $\text{(4, 2, 2)}$ block code in both cases &nbsp;&nbsp;&#8658;&nbsp;&nbsp; $d_{\rm min} = 2$.}}
 +
 
  
:<math>\mathcal{C} \hspace{-0.15cm} =  \hspace{-0.15cm} \{ (0, 0, 0, 0) \hspace{0.05cm}, (0, 0, 1, 1) \hspace{0.05cm},(1, 1, 0, 0) \hspace{0.05cm},(1, 1, 1, 1) \}\hspace{0.05cm},</math>
 
:<math>cal{C}_{\rm sys} \hspace{-0.15cm} =  \hspace{-0.15cm} \{ (0, 0, 0, 0) \hspace{0.05cm}, (0, 1, 0, 1) \hspace{0.05cm},(1, 0, 1, 0) \hspace{0.05cm},(1, 1, 1, 1) \}\hspace{0.05cm}.</math>{{end}}<br>
 
  
== Zusammenhang zwischen Generator– und Prüfmatrix (1) ==
+
== Relationship between generator and parity-check matrix==
 
<br>
 
<br>
Zur Definition dieser beiden Beschreibungsmatrizen gehen wir von folgenden Definitionsgleichungen aus:
+
To define these two description matrices,&nbsp; we assume the following equations:
 
 
:<math>\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G}} \hspace{0.3cm} \Rightarrow \hspace{0.3cm}
 
\underline{x}^{\rm T} =  { \boldsymbol{\rm G}}^{\rm T} \cdot \underline{u}^{\rm T} \hspace{0.05cm},</math>
 
  
:<math>{ \boldsymbol{\rm H}}  \cdot  \underline{x}^{\rm T} = { \boldsymbol{\rm 0}}\hspace{0.05cm}.</math>
+
::<math>\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G}} \hspace{0.3cm} \Rightarrow \hspace{0.3cm}
 +
\underline{x}^{\rm T} =  { \boldsymbol{\rm G}}^{\rm T} \cdot \underline{u}^{\rm T} \hspace{0.05cm}, \hspace{0.8cm}
 +
{ \boldsymbol{\rm H}}  \cdot  \underline{x}^{\rm T} = { \boldsymbol{\rm 0}}\hspace{0.05cm}.</math>
  
Verknüpft man diese zwei Gleichungen, so erhält man:
+
Linking these two equations,&nbsp; we get:
  
:<math>{ \boldsymbol{\rm H}}  \cdot  { \boldsymbol{\rm G}}^{\rm T} \cdot \underline{u}^{\rm T}  = \underline{0}\hspace{0.5cm}
+
::<math>{ \boldsymbol{\rm H}}  \cdot  { \boldsymbol{\rm G}}^{\rm T} \cdot \underline{u}^{\rm T}  = \underline{0}\hspace{0.5cm}
 
  \forall \hspace{0.15cm}\underline{u} \in {\rm GF}(2^k)\hspace{0.3cm}  
 
  \forall \hspace{0.15cm}\underline{u} \in {\rm GF}(2^k)\hspace{0.3cm}  
 
\Rightarrow \hspace{0.3cm} { \boldsymbol{\rm H}}  \cdot  { \boldsymbol{\rm G}}^{\rm T} = { \boldsymbol{\rm 0}} \hspace{0.05cm}.</math>
 
\Rightarrow \hspace{0.3cm} { \boldsymbol{\rm H}}  \cdot  { \boldsymbol{\rm G}}^{\rm T} = { \boldsymbol{\rm 0}} \hspace{0.05cm}.</math>
  
Anzumerken ist, dass in diesen Gleichungen <u>0</u> einen Zeilenvektor mit <i>k</i> Elementen bezeichnet und <b>0</b> eine Matrix mit <i>m</i> Zeilen und <i>k</i> Spalten. Alle Elemente von <u>0</u> und <b>0</b> sind identisch 0.<br>
+
Note that in these equations.
 +
*$\underline{0}$ &nbsp; denotes a row vector with&nbsp; $k$&nbsp; elements, and
 +
*$\boldsymbol{\rm 0}$ &nbsp; denotes a matrix with&nbsp; $m$&nbsp; rows and&nbsp; $k$&nbsp; columns,
 +
 
  
{{Beispiel}}''':''' Wir betrachten wie im Beispiel auf der dritten Seite dieses Kapitels den (5, 3)&ndash;Blockcode
+
where all elements of&nbsp; $\underline{0}$&nbsp; and&nbsp; $\boldsymbol{\rm 0}$&nbsp; are zero.<br>
  
:<math>\mathcal{C}  = \{  \hspace{0.35cm} ( \hspace{0.05cm}  0, 0, 0, 0, 0) \hspace{0.05cm},</math>
+
{{GraueBox|TEXT=   
::<math>  \hspace{0.8cm}(  \hspace{0.05cm}  0, 1, 1, 1, 0) \hspace{0.05cm},</math>
+
$\text{Example 7:}$&nbsp; We consider as in&nbsp; [[Channel_Coding/General_Description_of_Linear_Block_Codes#Code_definition_by_the_generator_matrix|$\text{Example 4}$]]&nbsp; the&nbsp; $\text{(5, 3)}$ block code
::<math>  \hspace{0.8cm}( \hspace{0.05cm}0, 1, 0, 1, 0) \hspace{0.05cm},</math>
 
::<math> \hspace{0.8cm}( \hspace{0.05cm}0, 0, 1, 0, 0) \hspace{0.05cm},</math>
 
::<math> \hspace{0.8cm}( \hspace{0.05cm} 1, 1, 0, 1, 1) \hspace{0.05cm},</math>
 
::<math> \hspace{0.8cm}( \hspace{0.05cm}1, 0, 1, 0, 1) \hspace{0.05cm},</math>
 
::<math> \hspace{0.8cm}( \hspace{0.05cm}1, 0, 0, 0, 1) \hspace{0.05cm},</math>
 
::<math> \hspace{0.8cm}(\hspace{0.05cm}1, 1, 1, 1, 1) \}\hspace{0.05cm}.</math>
 
  
Aus <i>n</i> = 5 und <i>k</i> = 3 folgt für die Anzahl der Prüfgleichungen <i>m</i> = 2. Durch Analyse der möglichen Codeworte erhält man folgende Ergebnisse:
+
:<math>\mathcal{C}  = \big \{  \hspace{0.15cm} (  \hspace{0.05cm}  0, 0, 0, 0, 0) \hspace{0.05cm},</math>
 +
::<math>  \hspace{0.6cm}(  \hspace{0.05cm}  0, 1, 1, 1, 0) \hspace{0.05cm},</math>
 +
::<math>  \hspace{0.6cm}( \hspace{0.05cm}0, 1, 0, 1, 0) \hspace{0.05cm},</math>
 +
::<math> \hspace{0.6cm}( \hspace{0.05cm}0, 0, 1, 0, 0) \hspace{0.05cm},</math>
 +
::<math> \hspace{0.6cm}( \hspace{0.05cm} 1, 1, 0, 1, 1) \hspace{0.05cm},</math>
 +
::<math> \hspace{0.6cm}( \hspace{0.05cm}1, 0, 1, 0, 1) \hspace{0.05cm},</math>
 +
::<math> \hspace{0.6cm}( \hspace{0.05cm}1, 0, 0, 0, 1) \hspace{0.05cm},</math>
 +
::<math> \hspace{0.6cm}(\hspace{0.05cm}1, 1, 1, 1, 1) \big \}\hspace{0.05cm}.</math>
  
:<math>x_1 \oplus x_5 \hspace{-0.15cm} = \hspace{-0.15cm} 0 \hspace{0.05cm},</math>
+
From&nbsp; $n= 5$&nbsp; and&nbsp; $k = 3$&nbsp; follows for the number of parity-check equations&nbsp; $m = 2$.&nbsp; By analyzing the possible code words,&nbsp; the following results are obtained:
:<math>x_2 \oplus x_4 \hspace{-0.15cm} =  \hspace{-0.15cm} 0</math>
 
  
:<math>\Rightarrow \hspace{0.3cm}{ \boldsymbol{\rm H}} =  \begin{pmatrix}
+
::<math>x_1 \oplus x_5 = 0 \hspace{0.05cm},\hspace{0.5cm}
 +
x_2 \oplus x_4 = 0\hspace{1cm}
 +
\Rightarrow \hspace{0.3cm}{ \boldsymbol{\rm H} } =  \begin{pmatrix}
 
1 &0 &0 &0 &1\\
 
1 &0 &0 &0 &1\\
 
0 &1 &0 &1 &0
 
0 &1 &0 &1 &0
 
\end{pmatrix}</math>
 
\end{pmatrix}</math>
  
:<math>\Rightarrow \hspace{0.3cm} { \boldsymbol{\rm H}}  \cdot  { \boldsymbol{\rm G}}^{\rm T} =  
+
::<math>\Rightarrow \hspace{0.3cm} { \boldsymbol{\rm H} }  \cdot  { \boldsymbol{\rm G} }^{\rm T} =  
 
     \begin{pmatrix}
 
     \begin{pmatrix}
 
1 &0 &0 &0 &1\\
 
1 &0 &0 &0 &1\\
Line 334: Line 382:
 
\end{pmatrix}\hspace{0.05cm}.</math>
 
\end{pmatrix}\hspace{0.05cm}.</math>
  
Die Nullmatrix besteht hier aus <i>m</i> = 2 Zeilen und <i>k</i> = 3 Spalten. Beispielsweise gilt für das Element in der ersten Zeile und der ersten Spalte:
+
The zero matrix here consists of&nbsp; $m = 2$&nbsp; rows and&nbsp; $k = 3$&nbsp; columns.&nbsp; For example,&nbsp; for the element in the first row and the first column:
  
:<math>1 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm}
+
::<math>1 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm}
 
0 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm}
 
0 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm}
 
0 \cdot 0 \hspace{0.05cm}\oplus \hspace{0.05cm}
 
0 \cdot 0 \hspace{0.05cm}\oplus \hspace{0.05cm}
 
0 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm}
 
0 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm}
 
1 \cdot 1  = 0
 
1 \cdot 1  = 0
\hspace{0.05cm}.</math>{{end}}<br>
+
\hspace{0.05cm}.</math>}}<br>
  
Im allgemeinen Fall können <b>H</b> und <b>G</b> nicht direkt ineinander umgerechnet werden, schon allein aufgrund der unterschiedlichen Dimensionen von Prüfmatrix (<i>m</i> x <i>n</i>) und Generatormatrix  (<i>k</i> x <i>n</i>).<br>
 
  
== Zusammenhang zwischen Generator– und Prüfmatrix (2) ==
+
 
 +
== Generator matrix vs. parity-check matrix for systematic codes ==
 
<br>
 
<br>
Der Rechengang vereinfacht sich, wenn die <i>k</i>&times<i>n</i>&ndash;Generatormatrix in systematischer Form vorliegt:
+
Generally,&nbsp; $\boldsymbol{\rm G}$&nbsp; and&nbsp; $\boldsymbol{\rm H}$&nbsp; cannot be directly converted into each other,&nbsp; because of the different dimensions of generator matrix&nbsp;  $(k \times n)$&nbsp; and parity-check matrix&nbsp; $(m \times n)$.<br>
  
:<math>{ \boldsymbol{\rm G_{sys}}} =\left({ \boldsymbol{\rm I}}_k \: ; \: { \boldsymbol{\rm P}}\right)\hspace{0.05cm}.</math>
+
{{BlaueBox|TEXT= 
 +
$\text{Without proof:}$&nbsp;
 +
The calculation process is simplified if the&nbsp; $(k \times n)$&nbsp;  generator matrix is in systematic form: &nbsp;
 +
:$$ \boldsymbol{\rm G_{sys} } =\left({ \boldsymbol{\rm I} }_k \: ; \: { \boldsymbol{\rm P} }\right).$$
 +
*Then it follows from&nbsp; $\boldsymbol{\rm H} \cdot \boldsymbol{\rm G}^{\rm T} = \boldsymbol{\rm 0}$&nbsp; for the&nbsp;  $(m \times n)$&nbsp; parity-check matrix with&nbsp; $m = n-k$:
  
Dann folgt aus <b>H</b> &middot; <b>G</b><sup>T</sup> = <b>0</b> für die <i>m</i>&times<i>n</i>&ndash;Prüfmatrix mit <i>m</i> = <i>n</i> &ndash; <i>k</i>:
+
::<math>{ \boldsymbol{\rm H} } =\left( - { \boldsymbol{\rm P} }^{\rm T}  \: ; \: { \boldsymbol{\rm I} }_m \right)
 +
\hspace{0.05cm}.</math>
  
:<math>{ \boldsymbol{\rm H}} =\left(-{ \boldsymbol{\rm P}}^{\rm T}  \: ; \: { \boldsymbol{\rm I}}_m \right)
+
*This equation holds in general,&nbsp; i.e.,&nbsp; also in the non-binary case.&nbsp; Since we restrict ourselves to binary codes &#8658; &nbsp; $\mathcal{C} \in \text{GF}(2^n)$ &nbsp; &rArr;&nbsp; $ - \boldsymbol{\rm P} = +\boldsymbol{\rm P}$.
= \left [ \left({ \boldsymbol{\rm P}}^{\rm T} \: ; \: { \boldsymbol{\rm I}}_m \right)\right ]_{{\rm bin\ddot{a}r}} \hspace{0.05cm}.</math>
+
   
 +
*Thus we obtain the form we will use in the remainder of this chapter.<br>
  
Die erste der beiden Gleichungen gilt allgemein. Da wir uns im gesamten Kapitel 1 auf binäre Codes beschränken &#8658;&nbsp;<i>C</i> &nbsp;&#8712;&nbsp;&nbsp;GF(2<sup><i>n</i></sup>), gilt &ndash;<b>P</b> = +<b>P</b>, und man erhält die Form, die wir im Weiteren verwenden.<br>
+
::<math>{ \boldsymbol{\rm H} } =\left(  { \boldsymbol{\rm P} }^{\rm T}  \: ; \: { \boldsymbol{\rm I} }_m \right)\hspace{0.05cm}.
 +
</math>}}
  
{{Beispiel}}''':''' Wir betrachten weiterhin den beispielhaften  (5,&nbsp;3)&ndash;Blockcode,  gehen aber nun von der systematischen Generatormatrix <i>G</i><sub>sys</sub> aus:
 
  
:<math>{ \boldsymbol{\rm G_{sys}}} = \begin{pmatrix}
+
{{GraueBox|TEXT= 
 +
$\text{Example 8:}$&nbsp; We continue to consider the example&nbsp;  $\text{(5,&nbsp;3)}$&nbsp; block code,&nbsp; but now assume the systematic generator matrix&nbsp; $\boldsymbol{\rm G}_{\rm sys}$&nbsp; that we determined the&nbsp;  [[Channel_Coding/General_Description_of_Linear_Block_Codes#Identical_Codes|$\text{Example 5}$]]:
 +
 
 +
::<math> \boldsymbol{\rm G_{sys} } = \begin{pmatrix}
 
1 &0 &0 &0 &1\\
 
1 &0 &0 &0 &1\\
 
0 &1 &0 &1 &0\\
 
0 &1 &0 &1 &0\\
 
0 &0 &1 &0 &0  
 
0 &0 &1 &0 &0  
\end{pmatrix} =\left({ \boldsymbol{\rm I}}_3 \: ; \: { \boldsymbol{\rm P}}\right)</math>
+
\end{pmatrix} =\left({ \boldsymbol{\rm I} }_3 \: ; \: { \boldsymbol{\rm P} }\right)
 
+
\hspace{0.3cm} \Rightarrow
:<math>\Rightarrow
+
\hspace{0.3cm} { \boldsymbol{\rm I_3} }= \begin{pmatrix}
\hspace{0.3cm} { \boldsymbol{\rm I_3}}= \begin{pmatrix}
 
 
1 &0 &0 \\
 
1 &0 &0 \\
 
0 &1 &0\\
 
0 &1 &0\\
 
0 &0 &1   
 
0 &0 &1   
 
\end{pmatrix},  
 
\end{pmatrix},  
\hspace{0.3cm} { \boldsymbol{\rm P}}= \begin{pmatrix}
+
\hspace{0.3cm} { \boldsymbol{\rm P} }= \begin{pmatrix}
 
0 &1 \\
 
0 &1 \\
 
1 &0\\
 
1 &0\\
Line 378: Line 434:
 
\end{pmatrix}  
 
\end{pmatrix}  
 
\hspace{0.3cm}\Rightarrow\hspace{0.3cm}
 
\hspace{0.3cm}\Rightarrow\hspace{0.3cm}
{ \boldsymbol{\rm P}^{\rm T}} = \begin{pmatrix}
+
{ \boldsymbol{\rm P}^{\rm T} } = \begin{pmatrix}
 
0 &1 &0\\
 
0 &1 &0\\
 
1 &0 &0
 
1 &0 &0
 
\end{pmatrix}\hspace{0.05cm}.</math>
 
\end{pmatrix}\hspace{0.05cm}.</math>
  
Damit erhält man für die Prüfmatrix
+
*This gives the following for the parity-check matrix
  
:<math>{ \boldsymbol{\rm H}} =\left({ \boldsymbol{\rm P}}^{\rm T}  \: ; \: { \boldsymbol{\rm I}}_2 \right)
+
::<math>{ \boldsymbol{\rm H} } =\left({ \boldsymbol{\rm P} }^{\rm T}  \: ; \: { \boldsymbol{\rm I} }_2 \right)
 
=  \begin{pmatrix}
 
=  \begin{pmatrix}
 
0 &1 &0 &1 &0\\
 
0 &1 &0 &1 &0\\
 
1 &0 &0 &0 &1
 
1 &0 &0 &0 &1
 
\end{pmatrix}
 
\end{pmatrix}
\hspace{0.05cm},</math>
+
\hspace{0.05cm}.</math>
  
und es ergibt sich folgende Codetabelle:
+
*The following code table results:
  
:<math>\underline{u}_0 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 0, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_0 =  
+
::<math>\underline{u}_0 = (0, 0, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_0 =  
 
(0, 0, 0, 0, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_4 = (1, 0, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_4 =  
 
(0, 0, 0, 0, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_4 = (1, 0, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_4 =  
 
(1, 0, 0, 0, 1) \hspace{0.05cm},</math>
 
(1, 0, 0, 0, 1) \hspace{0.05cm},</math>
:<math>\underline{u}_1 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 0, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_1 =  
+
::<math>\underline{u}_1 = (0, 0, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_1 =  
 
(0, 0, 1, 0, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_5 =(1, 0, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_5 =  
 
(0, 0, 1, 0, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_5 =(1, 0, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_5 =  
 
(1, 0, 1, 0, 1)\hspace{0.05cm},</math>
 
(1, 0, 1, 0, 1)\hspace{0.05cm},</math>
:<math>\underline{u}_2 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 1, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_2 =  
+
::<math>\underline{u}_2 =(0, 1, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_2 =  
 
(0, 1, 0, 1, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_6 =(1, 1, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_6 =  
 
(0, 1, 0, 1, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_6 =(1, 1, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_6 =  
 
(1, 1, 0, 1, 1)\hspace{0.05cm},</math>
 
(1, 1, 0, 1, 1)\hspace{0.05cm},</math>
:<math>\underline{u}_3 \hspace{-0.15cm} = \hspace{-0.15cm} (0, 1, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_3 =  
+
::<math>\underline{u}_3 = (0, 1, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_3 =  
 
(0, 1, 1, 1, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_7 = (1, 1, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_7 =  
 
(0, 1, 1, 1, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_7 = (1, 1, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_7 =  
 
(1, 1, 1, 1, 1) \hspace{0.05cm}.</math>
 
(1, 1, 1, 1, 1) \hspace{0.05cm}.</math>
  
Zusammen mit dem Vektor <i><u>x</u></i> = (<i>u</i><sub>1</sub>, <i>u</i><sub>2</sub>, <i>u</i><sub>3</sub>, <i>p</i><sub>1</sub>, <i>p</i><sub>2</sub>) = (<i>x</i><sub>1</sub>, <i>x</i><sub>2</sub>, <i>x</i><sub>3</sub>, <i>x</i><sub>4</sub>, <i>x</i><sub>5</sub>) lauten dann die Prüfbits
+
*Together with the vector&nbsp; $\underline{x} = (u_1,\ u_2,\ u_3,\ p_1,\ p_2) = (x_1,\ x_2,\ x_3,\ x_4,\ x_5)$&nbsp; the parity bits are then:
  
:<math>p_1 = u_2 \hspace{0.05cm},\hspace{0.2cm}p_2 = u_1 \hspace{0.05cm},</math>
+
::<math>p_1 = u_2 \hspace{0.05cm},\hspace{0.2cm}p_2 = u_1 \hspace{0.05cm},</math>
  
und die entsprechenden Prüfgleichungen des Decoders:
+
and the corresponding parity-check equations of the decoder:
  
:<math>x_2 + x_4 = 0 \hspace{0.05cm},\hspace{0.2cm}x_1 + x_5 = 0 \hspace{0.05cm}.</math>
+
::<math>x_2 + x_4 = 0 \hspace{0.05cm},\hspace{0.2cm}x_1 + x_5 = 0 \hspace{0.05cm}.</math>
  
Man erkennt aus diesen Gleichungen und auch aus obiger Codetabelle, dass dieser Code gegenüber einem Übertragungsfehler hinsichtlich des dritten Bits (<i>x</i><sub>3</sub> = <i>u</i><sub>3</sub>) keinen Schutz bieten. Damit ist natürlich weder eine Fehlererkennung und noch weniger Fehlerkorrektur möglich. Gleiches gilt aber auch für den nichtsystematischen Code auf der letzten Seite.{{end}}<br>
+
You can see from these equations and from the above code table:
 +
#This code offers no protection against a transmission error with respect to the third bit&nbsp; $(x_3 = u_3)$&nbsp;.
 +
#This,&nbsp; of course,&nbsp; does not allow for error detection,&nbsp; and much less error correction.
 +
#But the same is true for the non-systematic code according to&nbsp; [[Channel_Coding/General_Description_of_Linear_Block_Codes#Relationship_between_generator_and_parity-check_matrix|$\text{Example 7}$]]&nbsp; in the last section.}}<br>
  
== Darstellung von SPC und RC als duale Codes ==
+
== Representation of SPC and RC as dual codes ==
 
<br>
 
<br>
Nun sollen für die bereits in Kapitel 1.3 behandelten Codes noch jeweils die Generatormatrix <b>G</b> und die Prüfmatrix <b>H</b> angegeben werden. Die Codelänge sei für die folgenden Beispiele stets <i>n</i> = 5, doch lassen sich die Ergebnisse auch für andere Codelängen in gleicher Weise interpretieren. Es gilt für
+
For the codes already dealt with in the chapter&nbsp;  [[Channel_Coding/Examples_of_Binary_Block_Codes|$\text{Examples of binary block codes}$]],&nbsp;  the generator matrix&nbsp; $\boldsymbol{\rm G}$&nbsp; and the parity-check matrix&nbsp; $\boldsymbol{\rm H}$&nbsp; are to be given in each case.&nbsp; Let the code length always be&nbsp; $n = 5$ for the following examples,&nbsp; but the results can be interpreted in the same way for other code lengths.&nbsp; It applies to
*den Single&ndash;Parity&ndash;check Code &#8658; SPC (5, 4):
+
*the&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Single_Parity-check_Codes|$\text{single parity&ndash;check code}$]] &nbsp; &#8658; &nbsp; $\text{SPC (5, 4)}$:
  
 
::<math>{ \boldsymbol{\rm H}}  
 
::<math>{ \boldsymbol{\rm H}}  
Line 433: Line 492:
 
0 &0 &0 &1 &1
 
0 &0 &0 &1 &1
 
\end{pmatrix}
 
\end{pmatrix}
\hspace{0.05cm}.</math>
+
\hspace{0.05cm};</math>
  
*den Wiederholungscode (<i>Repetition Code</i>) &#8658; RC (5,1):
+
*the&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Repetition_Codes|$\text{repetition code}$]]  &nbsp; &#8658; &nbsp; $\text{RC (5, 1)}$:
  
 
::<math>{ \boldsymbol{\rm G}}  
 
::<math>{ \boldsymbol{\rm G}}  
Line 450: Line 509:
 
\hspace{0.05cm}.</math>
 
\hspace{0.05cm}.</math>
  
Die jeweils erste Gleichung lässt sich einfach aus der jeweiligen Definition herleiten und die abgeleitete Gleichung folgt aus der Beziehung <b>H</b> &middot; <b>G</b><sup>T</sup> = <b>0</b>. Aus den obigen Matrizen kann verallgemeinert werden:
+
The first equation can be easily derived from the respective definition and the derived equation follows from the relation&nbsp; $\boldsymbol{\rm H} \cdot \boldsymbol{\rm G}^{\rm T} = \boldsymbol{\rm 0}$.  
*Die Generatormatrix des RC (5, 1) ist identisch mit der Prüfmatrix des SPC (5, 4). Es handelt sich jeweils um (5, 1)&ndash;Matrizen.<br>
 
  
*Die Prüfmatrix des RC (5, 1) ist identisch mit der Generatormatrix des SPC (5, 4). Die beiden Matrizen haben jeweils 5 Spalten und 4 Zeilen.<br>
+
From the above matrices can be generalized:
 +
*The generator matrix of the&nbsp; $\text{RC (5, 1)}$&nbsp; is identical to the parity-check matrix of the&nbsp; $\text{SPC (5, 4)}$.&nbsp; In each case they are&nbsp; $(5 \times 1)$ matrices.<br>
  
*Dieser Sachverhalt ergibt sich, weil es sich bei den hier betrachteten Beispielen um duale Codes  handelt. Zur Erklärung benötigen wir noch zwei Definitionen:<br>
+
*The parity-check matrix of the&nbsp; $\text{RC (5, 1)}$&nbsp; is identical to the generator matrix of the&nbsp; $\text{SPC (5, 4)}$. These two matrices each have&nbsp; $5$&nbsp; columns and&nbsp; $4$&nbsp; rows.<br>
  
{{Definition}} '''1:''' Zwei lineare Codes <i>C</i> und <i>C</i><sup>&nbsp;</sup>', beide aus GF(2<sup><i>n</i></sup>), sind orthogonal, wenn alle Codeworte <i><u>x</u></i> &#8712; <i>C</i> zu allen Codeworten <i><u>x</u></i>' &#8712; <i>C</i><sup>&nbsp;</sup>' orthogonal sind. Man bezeichnet <i>C</i> und <i>C</i><sup>&nbsp;</sup>' als duale Codes.{{end}}<br><br>
+
*This situation arises because we are dealing here with so-called&nbsp; "dual codes".&nbsp; For explanation we need two more definitions:<br>
  
{{Definition}} '''2:''' Zwei Codeworte <i><u>x</u></i> &#8712; GF(2<sup><i>n</i></sup>) und <i>x</i>' &#8712; GF(2<sup><i>n</i></sup>) sind immer dann zueinander orthogonal, wenn das innere Produkt verschwindet:
 
  
::<math>\left \langle \underline{x} \cdot \underline{x}' \right \rangle =  \sum_{i=1  }^{n} x_i \cdot x_i' = 0 \hspace{0.05cm}, \hspace{0.5cm}
+
{{BlaueBox|TEXT= 
\left \langle \underline{x} \cdot \underline{x}' \right \rangle \in {\rm GF}(2^n)
+
$\text{Definition:}$&nbsp; Two linear codes&nbsp; $\mathcal{C}$&nbsp; and&nbsp; $\mathcal{C}\hspace{0.05cm}'$,&nbsp; both made of&nbsp; ${\rm GF}(2^n)$,&nbsp; are&nbsp; &raquo;'''orthogonal'''&laquo;&nbsp; if all code words&nbsp; $\underline{x} \in \mathcal{C}$&nbsp; to all code words&nbsp; $\underline{x}\hspace{0.05cm}' \in \mathcal{C}\hspace{0.05cm}'$&nbsp; are orthogonal.
\hspace{0.05cm}.</math>{{end}}<br>
+
*One then refers to&nbsp; $\mathcal{C}$&nbsp; and&nbsp; $\mathcal{C}\hspace{0.05cm}'$&nbsp; as&nbsp; &raquo;'''dual codes'''&laquo;.}}<br>
  
Wegen der Produktbildung in GF(2<sup><i>n</i></sup>) sind auch folgende Codewort&ndash;Paare zueinander orthogonal:
+
{{BlaueBox|TEXT= 
 +
$\text{Definition:}$&nbsp; Two code words&nbsp; $\underline{x} \in{\rm GF}(2^n)$&nbsp; and&nbsp; $\underline{x\hspace{0.05cm}'} \in {\rm GF}(2^n)$&nbsp; are&nbsp; &raquo;'''orthogonal'''&laquo;&nbsp; to each other whenever the&nbsp; [[Digital_Signal_Transmission/Signals,_Basis_Functions_and_Vector_Spaces#Nomenclature_in_the_fourth_chapter|$\text{inner product}$]]&nbsp; disappears:
  
:<math>\left \langle \hspace{0.1cm}(0, 1, 1, 0) \hspace{0.05cm}, \hspace{0.2cm} (1, 1, 1, 0) \hspace{0.1cm} \right \rangle = 0\hspace{0.05cm},\hspace{0.2cm}
+
::<math>\big \langle \underline{x} \cdot \underline{x}\hspace{0.05cm}' \big \rangle =  \sum_{i=1  }^{n} x_i \cdot x\hspace{0.05cm}'_i = 0 \hspace{0.05cm}, \hspace{0.5cm}
 +
\left \langle \underline{x} \cdot \underline{x}\hspace{0.05cm}' \right \rangle \in {\rm GF}(2^n)
 +
\hspace{0.05cm}.</math>}}<br>
 +
 
 +
Because of the product  in&nbsp; ${\rm GF}(2^n)$,&nbsp; the following code word pairs are also orthogonal to each other:
 +
 
 +
::<math>\left \langle \hspace{0.05cm}(0, 1, 1, 0) \hspace{0.05cm}, \hspace{0.2cm} (1, 1, 1, 0) \hspace{0.05cm} \right \rangle = 0\hspace{0.05cm},\hspace{0.8cm}
 
\left \langle \hspace{0.1cm}(0, 1, 1, 0) \hspace{0.05cm}, \hspace{0.2cm} (0, 1, 1, 0) \hspace{0.1cm}\right \rangle = 0\hspace{0.05cm}.</math>
 
\left \langle \hspace{0.1cm}(0, 1, 1, 0) \hspace{0.05cm}, \hspace{0.2cm} (0, 1, 1, 0) \hspace{0.1cm}\right \rangle = 0\hspace{0.05cm}.</math>
  
Der Code <i>C</i> spannt einen <i>k</i>&ndash;dimensionalen Untervektorraum in GF(2<sup><i>n</i></sup>) auf. Der Untervektorraum des dualen Codes <i>C</i><sup>&nbsp;</sup>' ist zu diesem orthogonal und weist die Dimension <i>n</i> &ndash; <i>k</i> auf. Damit gilt:
+
*The code&nbsp; $\mathcal{C}$&nbsp; spans a&nbsp; $k$&ndash;dimensional subvector space in&nbsp; ${\rm GF}(2^n)$.
 +
 +
*The subspace of the dual code&nbsp; $\mathcal{C}\hspace{0.05cm}'$&nbsp; is orthogonal to it and has dimension&nbsp; $n-k$.
  
:<math>{\rm dim} \{ \mathcal{C} \} + {\rm dim} \{ \mathcal{C}' \} = n\hspace{0.05cm}.</math><br>
+
*Thus follows: &nbsp; ${\rm dim} \{ \mathcal{C} \} + {\rm dim} \{ \mathcal{C}\hspace{0.05cm}' \} = n\hspace{0.05cm}.$<br>
  
== Einige Eigenschaften des (7, 4, 3)–Hamming–Codes ==
+
== Some properties of the (7, 4, 3) Hamming code ==
 
<br>
 
<br>
Fassen wir die bisherigen Ergebnisse dieses Kapitels am Beispiel des systematischen Hamming&ndash;Codes nochmals zusammen, der bereits im Kapitel 1.3 ausführlich beschrieben wurde. Dieser (7,&nbsp;4,&nbsp;3)&ndash;Code ist gekennzeichnet durch
+
Let us summarize again the previous results of this chapter using the example of the systematic Hamming code, which has already been described in detail in the chapter&nbsp; [[Channel_Coding/Examples_of_Binary_Block_Codes#Hamming_Codes|$\text{Examples of Binary Block Codes}$]]&nbsp;. This&nbsp; $\text{(7, 4, 3)}$ code is characterized by
*die Anzahl der Prüfgleichungen: <i>m</i> = 3,<br>
+
[[File:P ID2359 KC T 1 4 S7.png|right|frame|Code words of the&nbsp; $\text{HC (7, 4, 3)}$|class=fit]]
 +
*the number of parity-check equations&nbsp; $m = 3$,<br>
 +
*the code length&nbsp; $n = 2^m-1 = 7$,<br>
 +
*the information word length&nbsp; $k = n-m = 4$,<br>
 +
*the number of code words (dimension)&nbsp; $2^k =16$&nbsp;,<br>
 +
*the rate&nbsp; $R= k/n = 4/7$,<br>
 +
*the minimum distance&nbsp; $d_{\rm min} = 3$&nbsp; $($independent of&nbsp; $m$,&nbsp; $n$&nbsp; and&nbsp; $k)$.<br>
  
*die Codelänge: <i>n</i> = 2<sup><i>m</i></sup> &ndash; 1 = 7,<br>
 
  
*die Informationswortlänge: <i>k</i> = <i>n</i> &ndash; <i>m</i> = 4,<br>
+
In the above table the&nbsp; $2^4 = 16$&nbsp; code words are given <br>(black:&nbsp; four information bits, red:&nbsp; three parity bits).
  
*die Anzahl der Codeworte (Dimension): 2<sup><i>k</i></sup> = 16,<br>
+
One can see from this:
 +
*The code includes both the all zero word&nbsp; "$0000000$"&nbsp; and the all one word&nbsp; "$1111111$".
  
*die Rate <i>R</i> = <i>k</i>/<i>n</i> = 4/7,<br>
+
*There are seven code words resulting from&nbsp; "$0001011$"&nbsp; each by cyclic shift&nbsp; (all highlighted in yellow).
  
*die minimale Distanz <i>d</i><sub>min</sub> = 3 (unabhängig von <i>m</i>, <i>n</i> und <i>k</i>).<br>
+
*There are seven code words resulting from&nbsp; "$0011101$"&nbsp; each by cyclic shift&nbsp; (all highlighted in green).
:
 
[[File:P ID2359 KC T 1 4 S7.png|Codeworte des (7, 4, 3)–Hamming–Codes|class=fit]]<br>
 
  
In der obigen Tabelle sind die 2<sup><i>k</i></sup> = 16 Codeworte angegeben (Informationsbit schwarz, Prüfbit rot). Man erkennt daraus, dass
+
*For each code word also exists the "negated" code word, for example, besides&nbsp; "$0001011$"&nbsp; there is also the code word&nbsp; "$1110100$".
*der Code sowohl das <u>0</u>&ndash;Wort (0000000) als auch das <u>1</u>&ndash;Wort  (1111111) beinhaltet,
 
  
*es sieben Codeworte gibt, die sich aus (0001011) jeweils durch zyklische Verschiebung ergeben (alle gelb hinterlegt),
+
*The parity-check matrix can be written as follows:
 
 
*es sieben Codeworte gibt, die sich aus (0011101) jeweils durch zyklische Verschiebung ergeben (alle grün hinterlegt),
 
 
 
*zu jedem Codewort auch das &bdquo;negierte&rdquo; Codewort existiert, zum Beispiel neben (0001011) auch das Codewort (1110100),
 
 
 
*die Prüfmatrix wie folgt geschrieben werden kann:
 
  
 
::<math>{ \boldsymbol{\rm H}} =  \begin{pmatrix}
 
::<math>{ \boldsymbol{\rm H}} =  \begin{pmatrix}
Line 506: Line 570:
 
0 &1 &1 &1 &0 &1 &0\\
 
0 &1 &1 &1 &0 &1 &0\\
 
1 &1 &0 &1 &0 &0 &1
 
1 &1 &0 &1 &0 &0 &1
\end{pmatrix}=\left({ \boldsymbol{\rm P}}^{\rm T}  \: ; \: { \boldsymbol{\rm I}}_3 \right)</math>
+
\end{pmatrix}=\left({ \boldsymbol{\rm P}}^{\rm T}  \: ; \: { \boldsymbol{\rm I}}_3 \right)\hspace{0.8cm}
 
+
\Rightarrow\hspace{0.8cm}{ \boldsymbol{\rm P}}^{\rm T} =  \begin{pmatrix}
::<math>\Rightarrow\hspace{0.3cm}{ \boldsymbol{\rm P}}^{\rm T} =  \begin{pmatrix}
 
 
1 &1 &1 &0 \\
 
1 &1 &1 &0 \\
 
0 &1 &1 &1 \\
 
0 &1 &1 &1 \\
Line 517: Line 580:
 
0 &1 &0  \\
 
0 &1 &0  \\
 
0 &0 &1  
 
0 &0 &1  
\end{pmatrix}\hspace{0.05cm},</math>
+
\end{pmatrix}\hspace{0.05cm}.</math>
  
*dementsprechend für die Generatormatrix gilt:
+
*Accordingly, the following applies to the generator matrix:
  
 
::<math>{ \boldsymbol{\rm G}} =\left({ \boldsymbol{\rm I}}_4 \: ; \: { \boldsymbol{\rm P}}\right)
 
::<math>{ \boldsymbol{\rm G}} =\left({ \boldsymbol{\rm I}}_4 \: ; \: { \boldsymbol{\rm P}}\right)
Line 529: Line 592:
 
\end{pmatrix}\hspace{0.05cm}.</math><br>
 
\end{pmatrix}\hspace{0.05cm}.</math><br>
  
 +
== Exercises for the chapter ==
 +
<br>
 +
[[Aufgaben:Exercise_1.07:_Check_and_Generator_Matrix_of_the_HC_(7,_4,_3)|Exercise 1.7:  Check and Generator Matrix of the HC (7, 4, 3)]]
  
 +
[[Aufgaben:Aufgabe_1.07Z:_Klassifizierung_von_Blockcodes|Exercise 1.7Z: Classification of Block Codes]]
  
 +
[[Aufgaben:Aufgabe_1.08:_Identische_Codes|Exercise 1.8: Identical Codes]]
  
 +
[[Aufgaben:Aufgabe_1.08Z:_Äquivalente_Codes|Exercise 1.8Z: Equivalent Codes]]
  
 +
[[Aufgaben:Aufgabe_1.09:_Erweiterter_Hamming–Code|Exercise 1.9: Extended Hamming Code]]
  
 +
[[Aufgaben:Aufgabe_1.09Z:_Erweiterung_und/oder_Punktierung|Exercise 1.9Z: Extension and/or Puncturing]]
  
 
+
[[Aufgaben:Aufgabe_1.10:_Einige_Generatormatrizen|Exercise 1.10: Some Generator Matrices]]
 
 
 
 
 
 
  
 
{{Display}}
 
{{Display}}

Latest revision as of 10:32, 22 November 2022

Linear codes and cyclic codes


All codes mentioned so far are  »linear«:


Now the definition of  "linearity"  valid for binary block codes is added.

$\text{Definition:}$  A  »linear binary block code«  $\mathcal{C}$   is a set of  $2^k$  code words  $\underline{x}= (x_1, x_2, \hspace{0.05cm}\text{...}\hspace{0.05cm}, x_n)$,  where the  (modulo 2)  sum of any two code words  $\underline{x}$  and  $\underline{x}\hspace{0.05cm}'$  again gives a valid code word:

\[\underline{x}, \underline{x}\hspace{0.05cm}' \in {\rm GF}(2^n),\hspace{0.3cm} \underline{x}, \underline{x}\hspace{0.05cm}' \in \mathcal{C} \hspace{0.3cm} \Rightarrow \hspace{0.3cm}\underline{x} + \underline{x}\hspace{0.05cm}' \in \mathcal{C} \hspace{0.05cm}.\]
  • This condition must also be satisfied for  $\underline{x} = \underline{x}\hspace{0.05cm}'$ .
  • For the remainder of this book,  modulo addition will no longer be expressed by the  "modulo sign"  to simplify notation, but by the conventional  "plus sign".


$\text{Example 1:}$  We consider two  $\text{(3, 2)}$  block codes:

\[\mathcal{C}_1 = \{ (0, 0, 0) \hspace{0.05cm}, (0, 1, 1) \hspace{0.05cm},(1, 0, 1) \hspace{0.05cm},(1, 1, 0) \}\hspace{0.05cm},\]
\[\mathcal{C}_2 = \{ (0, 0, 0) \hspace{0.05cm}, (0, 1, 1) \hspace{0.05cm},(1, 1, 0) \hspace{0.05cm},(1, 1, 1) \hspace{0.05cm}.\]

You can see:

  • The code  $\mathcal{C}_1$  is linear,  since the modulo 2 addition of any two code words always yields also a valid code word, e.g.  $(0, 1, 1) + (1, 0, 1) = (1, 1, 0)$.
  • The above definition also applies to the modulo 2 addition of a code word with itself, e.g.  $(0, 1, 1) + (0, 1, 1) = (0, 0, 0)$.
  • From this follows:  Each linear code contains the all-zero word  $\underline{0}$.
  • Although the last condition is satisfied,  $\mathcal{C}_2$  is not a linear code.  Indeed,  for this code:   $(0, 1, 1) + (1, 1, 0) = (1, 0, 1)$.  This is not a valid code word of  $\mathcal{C}_2$.


In the following,  we restrict ourselves exclusively to linear codes,  since non-linear codes are of secondary importance for practical use.

$\text{Definition:}$  A linear block code  $\mathcal{C}$  is called  »cyclic«  if every cyclic shift of a code word  $\underline{x}$   $($to the left or right$)$   results in a valid code word:

\[\underline{x}= (x_1, x_2, \hspace{0.05cm}\text{...} \hspace{0.05cm}, x_n) \in \mathcal{C} \hspace{0.3cm} \Rightarrow \hspace{0.3cm}\underline{x}\hspace{0.05cm}'= (x_n, x_1, \hspace{0.05cm}\text{...} \hspace{0.05cm} \hspace{0.05cm}, x_{n-1}) \in \mathcal{C} \hspace{0.05cm}.\]



Code table of the systematic  $\text{(7, 4, 3)}$  Hamming code;
black:   $k= 4$  information bits, red:   $n-k = 3$  parity bits

$\text{Example 2:}$  You can see from the table for the  $\text{HC (7, 4, 3)}$ that it is linear and cyclic.


  • A valid code word results even if all bits are inverted:   $0 ↔ 1$.
  • Also the  $\underline{0}$  word  $(n$  times a "zero"$)$  and the  $\underline{1}$  word  $(n$  times a "one"$)$  are allowed with this code.


Code definition by the parity-check matrix


Chart for the  $\text{(7, 4, 3)}$  Hamming code

We consider the  $\text{(7, 4, 3)}$  Hamming code  with code words  $\underline{x}$  of length  $n=7$, consisting of

  • $k = 4$  information bits  $x_1$,  $x_2$,  $x_3$,  $x_4$, and
  • $m = n-k = 3$  parity bits $x_5$,  $x_6$,  $x_7$.

The parity-check equations are  (see graphic on the right):

\[x_1 + x_2 + x_3 + x_5 = 0 \hspace{0.05cm},\]
\[x_2 + x_3 + x_4 + x_6 = 0 \hspace{0.05cm},\]
\[x_1 + x_2 + x_4 + x_7 = 0 \hspace{0.05cm}. \]

In matrix notation, this set of equations reads:

\[{ \boldsymbol{\rm H}} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T} \hspace{0.05cm}. \]

In this equation are used:

  • the  »parity-check matrix«  ${ \boldsymbol{\rm H}}$  with  $m = n-k = 3$  rows and  $n = 7$  columns:
\[{ \boldsymbol{\rm H}} = \begin{pmatrix} 1 &1 &1 &0 &1 & 0 & 0\\ 0 &1 &1 &1 &0 & 1 & 0\\ 1 &1 &0 &1 &0 & 0 & 1 \end{pmatrix}\hspace{0.05cm},\]
  • the  code word  $\underline{x}= (x_1,\ x_2, \hspace{0.05cm}\text{...}\hspace{0.05cm},\ x_7)$  of length  $n = 7$,
  • the  all-zero vector  $\underline{0} = (0,\ 0,\ 0)$  of length  $m = 3$.

By  "transposing",  the  row vectors   $\underline{x}$  and   $\underline{0}$   become the corresponding  column vectors  $\underline{x}^{\rm T}$  and  $\underline{0}^{\rm T}$.

$\text{Example 3:}$  The graph illustrates the  $m = 3$  parity-check equations of a code  $\mathcal{C}$  with code parameters  $n = 6$  and  $k = 3$  in the order red, green and blue.  Thus,  $\mathcal{C}$  is not a Hamming code  $(n \ne 2^m-1)$.

Chart for the  $\text{(6, 3, 3)}$  block code

According to the equation  $\boldsymbol{\rm H} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T}$  the parity-check matrix is:

\[ \boldsymbol{\rm H} = \begin{pmatrix} 1 &1 &0 &1 &0 & 0\\ 1 &0 &1 &0 &1 & 0\\ 0 &1 &1 &0 &0 & 1 \end{pmatrix}\hspace{0.05cm}.\]

The  $2^k = 8$  code words in systematic realization are  (with the parity bits to the right of the small arrow):

\[\underline{x}_0 = (0,\ 0,\ 0_{\hspace{0.01cm} \rightarrow} 0,\ 0,\ 0)\hspace{0.05cm}, \hspace{0.5cm} \underline{x}_1 = (0,\ 0,\ 1_{\hspace{0.01cm} \rightarrow}0,\ 1,\ 1)\hspace{0.05cm},\hspace{0.5cm} \underline{x}_2 = (0,\ 1,\ 0_{\hspace{0.01cm} \rightarrow}1,\ 0,\ 1)\hspace{0.05cm},\hspace{0.5cm}\underline{x}_3 = (0, 1, 1_{\hspace{0.01cm} \rightarrow}1,\ 1,\ 0)\hspace{0.05cm}, \] \[\underline{x}_4 = (1,\ 0,\ 0_{\hspace{0.01cm} \rightarrow} 1,\ 1,\ 0)\hspace{0.05cm}, \hspace{0.5cm} \underline{x}_5 = (1,\ 0,\ 1_{\hspace{0.01cm} \rightarrow}1,\ 0,\ 1)\hspace{0.05cm},\hspace{0.5cm} \underline{x}_6 = (1,\ 1,\ 0_{\hspace{0.01cm} \rightarrow}0,\ 1,\ 1)\hspace{0.05cm}, \hspace{0.5cm} \underline{x}_7 = (1,\ 1,\ 1_{\hspace{0.01cm} \rightarrow}0,\ 0,\ 0)\hspace{0.05cm}.\]

It can be seen from these specifications:

  • The number of columns  $\boldsymbol{\rm H}$  is equal to the code length  $n$.
  • The number of lines of  $\boldsymbol{\rm H}$  is equal to the number  $m = n-k$  of parity-check equations.
  • From  $\boldsymbol{\rm H} \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T} $  it therefore does not follow that all code words contain an even number of ones.


Code definition by the generator matrix


The check matrix  $\boldsymbol{\rm H}$  of a  $(n, k)$  block code has 

  • $n$  columns,
  • $m = n-k$  rows.


However,  the same code can be described by the matrix  $\boldsymbol{\rm G}$  with

  • also  $n$  columns,
  • but  $k$  rows.


$\text{Definition:}$  A linear binary block code  $\mathcal{C}$  can be characterized by the  »check matrix«  $\boldsymbol{\rm H}$  or with the  »generator matrix«  $\boldsymbol{\rm G}$  as follows:

\[\mathcal{C} = \{ \underline{x} \in {\rm GF}(2^n)\text{:} \hspace{0.2cm}{ \boldsymbol{\rm H} } \cdot \underline{x}^{\rm T}= \underline{0}^{\rm T} \}\hspace{0.05cm},\]
\[\mathcal{C} = \{ \underline{x} \in {\rm GF}(2^n)\hspace{0.05cm}, \hspace{0.1cm}\underline{u} \in {\rm GF}(2^k)\text{:} \hspace{0.2cm}\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G} } \}\hspace{0.05cm}.\]


Before we turn to the properties of the generator matrix,  we describe the generation of the code words with an example.

$\text{Example 4:}$  We consider a linear  $(5, 3)$  block code with the generator matrix (again:  this is not a Hamming code!)

\[ \boldsymbol{\rm G} = \begin{pmatrix} 1 &1 &0 &1 &1\\ 0 &1 &0 &1 &0\\ 0 &1 &1 &1 &0 \end{pmatrix} = \begin{pmatrix} \underline{g}_1\\ \underline{g}_2\\ \underline{g}_3\\ \end{pmatrix} \hspace{0.05cm}.\]
  • Thus,  the information words  $\underline{u}= (u_1,\ u_2,\ u_3)$  are assigned to the code words  $\underline{x}= (x_1,\ x_2,\ x_3,\ x_4,\ x_5)$  according to the following equations.
  • The following always applies:  $\underline{x} = \underline{u} \cdot \boldsymbol{\rm G}$:
\[\underline{u}_0 = (0, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_0 = (0, 0, 0, 0, 0) \hspace{0.05cm},\]
\[\underline{u}_1 = (0, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_1 = (0, 1, 1, 1, 0) \hspace{0.1cm}= \hspace{0.1cm}\underline{g}_3\hspace{0.05cm},\]
\[\underline{u}_2 = (0, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_2 = (0, 1, 0, 1, 0)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_2\hspace{0.05cm},\]
\[\underline{u}_3 = (0, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_3 = (0, 0, 1, 0, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{g}_2+\underline{g}_3\hspace{0.05cm},\]
\[\underline{u}_4 = (1, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_4 = (1, 1, 0, 1, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1 \hspace{0.05cm},\]
\[\underline{u}_5 =(1, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_5 = (1, 0, 1, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+\underline{g}_3\hspace{0.05cm},\]
\[\underline{u}_6 = (1, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_6 = (1, 0, 0, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+\underline{g}_2\hspace{0.05cm},\]
\[\underline{u}_7 =(1, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}_7 = (1, 1, 1, 1, 1) \hspace{0.1cm}= \hspace{0.1cm} \underline{g}_1+ \underline{g}_2+\underline{g}_3\hspace{0.05cm}.\]


Notes:

  • The basis vectors used here for the calculation  $\underline{g}_1$,  $\underline{g}_2$  and  $\underline{g}_3$  – each with length  $n = 5$  – correspond to the  $k = 3$  rows of the generator matrix  $\boldsymbol{\rm G}$.
  • This code is neither suitable for error correction nor for error detection because of  $d_{\rm min} = 1$.  Nevertheless,  this code is also considered exemplarily in the next sections,  because the coding results are well interpretable.
  • At this point we would like to draw your attention to the applet  $\text{Gram–Schmidt process}$  for the book  "Digital Signal Transmission",  which teaches the calculation of basis functions,  although in a different context than the one used here.


Identical Codes


The vectors  $\underline{g}_1$,  $\underline{g}_2$,  ...  ,  $\underline{g}_k$  used in  $\text{Example 4}$  in the last section are the  $\text{basis vectors}$  of the linear block code  $\mathcal{C}$.

  • The code itself can be viewed as a  $k$–dimensional  subspace  of  $\text{GF}(2^n)$.
  • The basis vectors  $\underline{g}_1$,  $\underline{g}_2$,  ...  , $\underline{g}_k$  are linearly independent.


However,  the subspace  $\mathcal{C}$  is not only spanned by the basis vectors

\[\underline{g}_1 = (1, 1, 0, 1, 1) \hspace{0.05cm},\hspace{0.3cm} \underline{g}_2 = (0, 1, 0, 1, 0) \hspace{0.05cm},\hspace{0.3cm} \underline{g}_3 = (0, 1, 1, 1, 0) \hspace{0.05cm}\]

but other basis vectors  $\underline{g}\hspace{0.05cm}'_1$,  $\underline{g}\hspace{0.05cm}'_2$  and  $\underline{g}\hspace{0.05cm}'_3$  are equally suitable as long as linear independence is guaranteed between them.

$\text{Example 5:}$  We compare the code  $\mathcal{C}$  of  $\text{Example 4}$  with a second code  $\mathcal{C}\hspace{0.05cm}'$.  The generator matrices are:

\[ \boldsymbol{\rm G} = \begin{pmatrix} \underline{g}_1\\ \underline{g}_2\\ \underline{g}_3\\ \end{pmatrix}= \begin{pmatrix} 1 &1 &0 &1 &1\\ 0 &1 &0 &1 &0\\ 0 &1 &1 &1 &0 \end{pmatrix}\hspace{0.05cm},\hspace{0.3cm} \boldsymbol{\rm G}\hspace{0.05cm}' = \begin{pmatrix} \underline{g}\hspace{0.05cm}'_1\\ \underline{g}\hspace{0.05cm}'_2\\ \underline{g}\hspace{0.05cm}'_3\\ \end{pmatrix}= \begin{pmatrix} 1 &0 &0 &0 &1\\ 0 &1 &0 &1 &0\\ 0 &0 &1 &0 &0 \end{pmatrix}\hspace{0.05cm}.\]
  • The two codes are identical:   They contain the exact same code words; only a different assignment applies.
  • During the transition from  $\boldsymbol{\rm G}$  to  $\boldsymbol{\rm G}\hspace{0.05cm}'$,  the following allowed operations were performed:
\[\underline{g}\hspace{0.05cm}'_1 = \underline{g}_1 + \underline{g}_2 \hspace{0.05cm},\hspace{0.3cm} \underline{g}\hspace{0.05cm}'_2 = \underline{g}_2 \hspace{0.05cm},\hspace{0.3cm} \underline{g}\hspace{0.05cm}'_3 = \underline{g}_2 + \underline{g}_3 \hspace{0.05cm}.\]
  • The corresponding code   $\mathcal{C}'$   is obtained by the equation  $\underline{x}' = \underline{u} \cdot \boldsymbol{\rm G}'$:
\[\underline{u}_0 = (0, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_0 = (0, 0, 0, 0, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_0 \hspace{0.05cm},\]
\[\underline{u}_1 = (0, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_1 = (0, 0, 1, 0, 0) \hspace{0.1cm}= \hspace{0.1cm}\underline{x}_3\hspace{0.05cm},\]
\[\underline{u}_2 = (0, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_2 = (0, 1, 0, 1, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_2\hspace{0.05cm},\]
\[\underline{u}_3 = (0, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_3 = (0, 1, 1, 1, 0) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_1\hspace{0.05cm},\]
\[\underline{u}_4 = (1, 0, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_4 = (1, 0, 0, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_6 \hspace{0.05cm},\]
\[\underline{u}_5 =(1, 0, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_5 = (1, 0, 1, 0, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_5\hspace{0.05cm},\]
\[\underline{u}_6 = (1, 1, 0)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_6 = (1, 1, 0, 1, 1)\hspace{0.1cm}= \hspace{0.1cm} \underline{x}_4\hspace{0.05cm},\]
\[\underline{u}_7 = (1, 1, 1)\hspace{0.3cm} \rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm}'_7 = (1, 1, 1, 1, 1) \hspace{0.1cm}= \hspace{0.1cm} \underline{x}_7\hspace{0.05cm}.\]
  • The corresponding code words  $\underline{x}_i = \underline{u}_i \cdot \boldsymbol{\rm G}$  of the code   $\mathcal{C}$   ⇒   generator matrix  $\boldsymbol{\rm G}$  are give in  $\text{Example 4}$  (previous section).


$\text{Conclusion:}$  The code tables of  $\text{Example 4}$  and  $\text{Example 5}$  make clear:

  • $\mathcal{C}$  and  $\mathcal{C}\hspace{0.05cm}'$  contain the same code words.  They are thus  "identical codes"  and both have the same capability of correction  (see next section).
  • $\mathcal{C}\hspace{0.05cm}'$  is now a  "systematic code"  since the first  $k$  binary digits of each code word  $\underline{x}\hspace{0.05cm}'_i$  match the binary digits of the information word.


Systematic Codes


The property  "systematic"  is now to be specified in mathematical form.

$\text{Definition:}$  In a  $\text{systematic }(n, k) \text{ block code} \ \ \mathcal{C}$  each code word  $\underline{x}$  explicitly includes the information word  $\underline{u}$.

  • That is,  it applies:   $\underline{u} = (u_1,\ u_2, \hspace{0.05cm}\text{...} \hspace{0.05cm},\ u_k) \hspace{0.3cm} \Rightarrow\hspace{0.3cm} \underline{x}\hspace{0.05cm} = (u_1,\ u_2,\ ... \hspace{0.05cm},\ u_k,\ x_{k+1}, \hspace{0.05cm}\text{...}\hspace{0.05cm},\ x_n)\hspace{0.05cm}.$
  • The generator matrix in this case has the form   $\boldsymbol{\rm G_{\rm sys} } =\left({ \boldsymbol{\rm I}_{\rm k} \ ; \ \boldsymbol{\rm P} }\right)$   with the  $k×k$  "identity matrix"   $\boldsymbol{\rm I}_{\rm k}$   and a suitably chosen  $(n-1)×k$  matrix   $\boldsymbol{\rm P}$.


So,  for   $\text{Example 5}$  in the last section can also be written:

\[ \boldsymbol{\rm G_{sys}} =\left({ \boldsymbol{\rm I}}_3 \: ; \: { \boldsymbol{\rm P}}\right)\hspace{0.3cm}{\rm with}\hspace{0.3cm} { \boldsymbol{\rm I_{3}}} = \begin{pmatrix} 1 &0 &0 \\ 0 &1 &0 \\ 0 &0 &1 \end{pmatrix}\hspace{0.3cm}{\rm and}\hspace{0.3cm} { \boldsymbol{\rm P}} = \begin{pmatrix} 0 &1 \\ 1 &0 \\ 0 &0 \end{pmatrix}\hspace{0.05cm}.\]

It is gratifying from the point of view of channel coding,  that for each code  $\mathcal{C}$  a systematic  $($identical or at least equivalent$)$  code  $\mathcal{C}_{\rm sys}$  can be found.

In an  »identical systematic code«,   $\underline{x}$  and  $\underline{x}_{\rm sys}$  contain the same code words,  only the mapping  $\underline{u}   →   \underline{x}$  is different.  One gets from a block code  $\mathcal{C}$  to the identical systematic code  $\mathcal{C}_{\rm sys}$  by the following manipulations with respect to the generator matrix  $\mathcal{\rm G}$:

  • Swap or permute the rows,
  • Multiply all rows by a constant vector not equal to  $\underline{0}$,
  • Replace a row with a linear combination between this row and another one.


$\text{Without proof:}$  An  $\text{identical systematic code }\mathcal{C}_{\rm sys}$  can be found whenever to a generator matrix  $\boldsymbol{\rm G}$  there exists a matrix  $\boldsymbol{\rm A}$  such that  $\boldsymbol{\rm G}_{\rm sys} = \boldsymbol{\rm A} \cdot \boldsymbol{\rm G}$  holds.


If this is not possible,  one can at least find an  »equivalent systematic code«  by swapping or permuting the columns of  $\boldsymbol{\rm G}$ :

\[\mathcal{C}_{\rm sys} = {\rm \pi} (\mathcal{C})\hspace{0.3cm}{\rm with}\hspace{0.3cm}{\rm \pi}():\hspace{0.15cm}{\rm permutation\:operator}\hspace{0.05cm}.\]
  • The codes  $\mathcal{C}$  and  $\mathcal{C}_{\rm sys}$  then contain different code words,  but they exhibit the same properties.
  • For example,  in this case  $\mathcal{C}_{\rm sys}$  exhibits the same minimum Hamming distance  $d_{\rm min}$  as the code  $\mathcal{C}$.


$\text{Example 6:}$  We consider the generator matrices

\[ \boldsymbol{\rm G} = \begin{pmatrix} 1 &1 &0 &0 \\ 0 &0 &1 &1 \end{pmatrix},\hspace{0.3cm} \boldsymbol{\rm G_{sys} } = \begin{pmatrix} 1 &0 &1 &0 \\ 0 &1 &0 &1 \end{pmatrix}\hspace{0.05cm}.\]

The analysis shows:

  • The corresponding codes  $\mathcal{C}$  and  $\mathcal{C}_{\rm sys}$  contain different code words and are thus  »not identical«:
\[\mathcal{C} = \big \{ (0, 0, 0, 0) \hspace{0.05cm}, (0, 0, 1, 1) \hspace{0.05cm},(1, 1, 0, 0) \hspace{0.05cm},(1, 1, 1, 1) \big \}\hspace{0.05cm},\]
\[\mathcal{C}_{\rm sys}= \big \{ (0, 0, 0, 0) \hspace{0.05cm}, (0, 1, 0, 1) \hspace{0.05cm},(1, 0, 1, 0) \hspace{0.05cm},(1, 1, 1, 1) \big \}\hspace{0.05cm}.\]
  • But they are  »equivalent«:  $\boldsymbol{\rm G}_{\rm sys}$  is obtained from  $\boldsymbol{\rm G}$  by swapping the second and third columns. 
  • It is a  $\text{(4, 2, 2)}$ block code in both cases   ⇒   $d_{\rm min} = 2$.


Relationship between generator and parity-check matrix


To define these two description matrices,  we assume the following equations:

\[\underline{x} = \underline{u} \cdot { \boldsymbol{\rm G}} \hspace{0.3cm} \Rightarrow \hspace{0.3cm} \underline{x}^{\rm T} = { \boldsymbol{\rm G}}^{\rm T} \cdot \underline{u}^{\rm T} \hspace{0.05cm}, \hspace{0.8cm} { \boldsymbol{\rm H}} \cdot \underline{x}^{\rm T} = { \boldsymbol{\rm 0}}\hspace{0.05cm}.\]

Linking these two equations,  we get:

\[{ \boldsymbol{\rm H}} \cdot { \boldsymbol{\rm G}}^{\rm T} \cdot \underline{u}^{\rm T} = \underline{0}\hspace{0.5cm} \forall \hspace{0.15cm}\underline{u} \in {\rm GF}(2^k)\hspace{0.3cm} \Rightarrow \hspace{0.3cm} { \boldsymbol{\rm H}} \cdot { \boldsymbol{\rm G}}^{\rm T} = { \boldsymbol{\rm 0}} \hspace{0.05cm}.\]

Note that in these equations.

  • $\underline{0}$   denotes a row vector with  $k$  elements, and
  • $\boldsymbol{\rm 0}$   denotes a matrix with  $m$  rows and  $k$  columns,


where all elements of  $\underline{0}$  and  $\boldsymbol{\rm 0}$  are zero.

$\text{Example 7:}$  We consider as in  $\text{Example 4}$  the  $\text{(5, 3)}$ block code

\[\mathcal{C} = \big \{ \hspace{0.15cm} ( \hspace{0.05cm} 0, 0, 0, 0, 0) \hspace{0.05cm},\]

\[ \hspace{0.6cm}( \hspace{0.05cm} 0, 1, 1, 1, 0) \hspace{0.05cm},\]
\[ \hspace{0.6cm}( \hspace{0.05cm}0, 1, 0, 1, 0) \hspace{0.05cm},\]
\[ \hspace{0.6cm}( \hspace{0.05cm}0, 0, 1, 0, 0) \hspace{0.05cm},\]
\[ \hspace{0.6cm}( \hspace{0.05cm} 1, 1, 0, 1, 1) \hspace{0.05cm},\]
\[ \hspace{0.6cm}( \hspace{0.05cm}1, 0, 1, 0, 1) \hspace{0.05cm},\]
\[ \hspace{0.6cm}( \hspace{0.05cm}1, 0, 0, 0, 1) \hspace{0.05cm},\]
\[ \hspace{0.6cm}(\hspace{0.05cm}1, 1, 1, 1, 1) \big \}\hspace{0.05cm}.\]

From  $n= 5$  and  $k = 3$  follows for the number of parity-check equations  $m = 2$.  By analyzing the possible code words,  the following results are obtained:

\[x_1 \oplus x_5 = 0 \hspace{0.05cm},\hspace{0.5cm} x_2 \oplus x_4 = 0\hspace{1cm} \Rightarrow \hspace{0.3cm}{ \boldsymbol{\rm H} } = \begin{pmatrix} 1 &0 &0 &0 &1\\ 0 &1 &0 &1 &0 \end{pmatrix}\]
\[\Rightarrow \hspace{0.3cm} { \boldsymbol{\rm H} } \cdot { \boldsymbol{\rm G} }^{\rm T} = \begin{pmatrix} 1 &0 &0 &0 &1\\ 0 &1 &0 &1 &0 \end{pmatrix} \begin{pmatrix} 1 &0 &0 \\ 1 &1 &1 \\ 0 &0 &1 \\ 1 &1 &1 \\ 1 &0 &0 \end{pmatrix} = \begin{pmatrix} 0 &0 &0 \\ 0 &0 &0 \end{pmatrix}\hspace{0.05cm}.\]

The zero matrix here consists of  $m = 2$  rows and  $k = 3$  columns.  For example,  for the element in the first row and the first column:

\[1 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm} 0 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm} 0 \cdot 0 \hspace{0.05cm}\oplus \hspace{0.05cm} 0 \cdot 1 \hspace{0.05cm}\oplus \hspace{0.05cm} 1 \cdot 1 = 0 \hspace{0.05cm}.\]



Generator matrix vs. parity-check matrix for systematic codes


Generally,  $\boldsymbol{\rm G}$  and  $\boldsymbol{\rm H}$  cannot be directly converted into each other,  because of the different dimensions of generator matrix  $(k \times n)$  and parity-check matrix  $(m \times n)$.

$\text{Without proof:}$  The calculation process is simplified if the  $(k \times n)$  generator matrix is in systematic form:  

$$ \boldsymbol{\rm G_{sys} } =\left({ \boldsymbol{\rm I} }_k \: ; \: { \boldsymbol{\rm P} }\right).$$
  • Then it follows from  $\boldsymbol{\rm H} \cdot \boldsymbol{\rm G}^{\rm T} = \boldsymbol{\rm 0}$  for the  $(m \times n)$  parity-check matrix with  $m = n-k$:
\[{ \boldsymbol{\rm H} } =\left( - { \boldsymbol{\rm P} }^{\rm T} \: ; \: { \boldsymbol{\rm I} }_m \right) \hspace{0.05cm}.\]
  • This equation holds in general,  i.e.,  also in the non-binary case.  Since we restrict ourselves to binary codes ⇒   $\mathcal{C} \in \text{GF}(2^n)$   ⇒  $ - \boldsymbol{\rm P} = +\boldsymbol{\rm P}$.
  • Thus we obtain the form we will use in the remainder of this chapter.
\[{ \boldsymbol{\rm H} } =\left( { \boldsymbol{\rm P} }^{\rm T} \: ; \: { \boldsymbol{\rm I} }_m \right)\hspace{0.05cm}. \]


$\text{Example 8:}$  We continue to consider the example  $\text{(5, 3)}$  block code,  but now assume the systematic generator matrix  $\boldsymbol{\rm G}_{\rm sys}$  that we determined the  $\text{Example 5}$:

\[ \boldsymbol{\rm G_{sys} } = \begin{pmatrix} 1 &0 &0 &0 &1\\ 0 &1 &0 &1 &0\\ 0 &0 &1 &0 &0 \end{pmatrix} =\left({ \boldsymbol{\rm I} }_3 \: ; \: { \boldsymbol{\rm P} }\right) \hspace{0.3cm} \Rightarrow \hspace{0.3cm} { \boldsymbol{\rm I_3} }= \begin{pmatrix} 1 &0 &0 \\ 0 &1 &0\\ 0 &0 &1 \end{pmatrix}, \hspace{0.3cm} { \boldsymbol{\rm P} }= \begin{pmatrix} 0 &1 \\ 1 &0\\ 0 &0 \end{pmatrix} \hspace{0.3cm}\Rightarrow\hspace{0.3cm} { \boldsymbol{\rm P}^{\rm T} } = \begin{pmatrix} 0 &1 &0\\ 1 &0 &0 \end{pmatrix}\hspace{0.05cm}.\]
  • This gives the following for the parity-check matrix
\[{ \boldsymbol{\rm H} } =\left({ \boldsymbol{\rm P} }^{\rm T} \: ; \: { \boldsymbol{\rm I} }_2 \right) = \begin{pmatrix} 0 &1 &0 &1 &0\\ 1 &0 &0 &0 &1 \end{pmatrix} \hspace{0.05cm}.\]
  • The following code table results:
\[\underline{u}_0 = (0, 0, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_0 = (0, 0, 0, 0, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_4 = (1, 0, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_4 = (1, 0, 0, 0, 1) \hspace{0.05cm},\]
\[\underline{u}_1 = (0, 0, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_1 = (0, 0, 1, 0, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_5 =(1, 0, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_5 = (1, 0, 1, 0, 1)\hspace{0.05cm},\]
\[\underline{u}_2 =(0, 1, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_2 = (0, 1, 0, 1, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_6 =(1, 1, 0)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_6 = (1, 1, 0, 1, 1)\hspace{0.05cm},\]
\[\underline{u}_3 = (0, 1, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_3 = (0, 1, 1, 1, 0) \hspace{0.05cm},\hspace{0.8cm}\underline{u}_7 = (1, 1, 1)\hspace{0.2cm} \rightarrow\hspace{0.2cm} \underline{x}\hspace{0.05cm}_7 = (1, 1, 1, 1, 1) \hspace{0.05cm}.\]
  • Together with the vector  $\underline{x} = (u_1,\ u_2,\ u_3,\ p_1,\ p_2) = (x_1,\ x_2,\ x_3,\ x_4,\ x_5)$  the parity bits are then:
\[p_1 = u_2 \hspace{0.05cm},\hspace{0.2cm}p_2 = u_1 \hspace{0.05cm},\]

and the corresponding parity-check equations of the decoder:

\[x_2 + x_4 = 0 \hspace{0.05cm},\hspace{0.2cm}x_1 + x_5 = 0 \hspace{0.05cm}.\]

You can see from these equations and from the above code table:

  1. This code offers no protection against a transmission error with respect to the third bit  $(x_3 = u_3)$ .
  2. This,  of course,  does not allow for error detection,  and much less error correction.
  3. But the same is true for the non-systematic code according to  $\text{Example 7}$  in the last section.


Representation of SPC and RC as dual codes


For the codes already dealt with in the chapter  $\text{Examples of binary block codes}$,  the generator matrix  $\boldsymbol{\rm G}$  and the parity-check matrix  $\boldsymbol{\rm H}$  are to be given in each case.  Let the code length always be  $n = 5$ for the following examples,  but the results can be interpreted in the same way for other code lengths.  It applies to

\[{ \boldsymbol{\rm H}} = \begin{pmatrix} 1 &1 &1 &1 &1 \end{pmatrix} \hspace{0.05cm},\hspace{0.5cm}{ \boldsymbol{\rm G}} = \begin{pmatrix} 1 &0 &0 &0 &1\\ 0 &1 &0 &0 &1\\ 0 &0 &1 &0 &1\\ 0 &0 &0 &1 &1 \end{pmatrix} \hspace{0.05cm};\]
\[{ \boldsymbol{\rm G}} = \begin{pmatrix} 1 &1 &1 &1 &1 \end{pmatrix} \hspace{0.05cm},\hspace{0.5cm}{ \boldsymbol{\rm H}} = \begin{pmatrix} 1 &0 &0 &0 &1\\ 0 &1 &0 &0 &1\\ 0 &0 &1 &0 &1\\ 0 &0 &0 &1 &1 \end{pmatrix} \hspace{0.05cm}.\]

The first equation can be easily derived from the respective definition and the derived equation follows from the relation  $\boldsymbol{\rm H} \cdot \boldsymbol{\rm G}^{\rm T} = \boldsymbol{\rm 0}$.

From the above matrices can be generalized:

  • The generator matrix of the  $\text{RC (5, 1)}$  is identical to the parity-check matrix of the  $\text{SPC (5, 4)}$.  In each case they are  $(5 \times 1)$ matrices.
  • The parity-check matrix of the  $\text{RC (5, 1)}$  is identical to the generator matrix of the  $\text{SPC (5, 4)}$. These two matrices each have  $5$  columns and  $4$  rows.
  • This situation arises because we are dealing here with so-called  "dual codes".  For explanation we need two more definitions:


$\text{Definition:}$  Two linear codes  $\mathcal{C}$  and  $\mathcal{C}\hspace{0.05cm}'$,  both made of  ${\rm GF}(2^n)$,  are  »orthogonal«  if all code words  $\underline{x} \in \mathcal{C}$  to all code words  $\underline{x}\hspace{0.05cm}' \in \mathcal{C}\hspace{0.05cm}'$  are orthogonal.

  • One then refers to  $\mathcal{C}$  and  $\mathcal{C}\hspace{0.05cm}'$  as  »dual codes«.


$\text{Definition:}$  Two code words  $\underline{x} \in{\rm GF}(2^n)$  and  $\underline{x\hspace{0.05cm}'} \in {\rm GF}(2^n)$  are  »orthogonal«  to each other whenever the  $\text{inner product}$  disappears:

\[\big \langle \underline{x} \cdot \underline{x}\hspace{0.05cm}' \big \rangle = \sum_{i=1 }^{n} x_i \cdot x\hspace{0.05cm}'_i = 0 \hspace{0.05cm}, \hspace{0.5cm} \left \langle \underline{x} \cdot \underline{x}\hspace{0.05cm}' \right \rangle \in {\rm GF}(2^n) \hspace{0.05cm}.\]


Because of the product in  ${\rm GF}(2^n)$,  the following code word pairs are also orthogonal to each other:

\[\left \langle \hspace{0.05cm}(0, 1, 1, 0) \hspace{0.05cm}, \hspace{0.2cm} (1, 1, 1, 0) \hspace{0.05cm} \right \rangle = 0\hspace{0.05cm},\hspace{0.8cm} \left \langle \hspace{0.1cm}(0, 1, 1, 0) \hspace{0.05cm}, \hspace{0.2cm} (0, 1, 1, 0) \hspace{0.1cm}\right \rangle = 0\hspace{0.05cm}.\]
  • The code  $\mathcal{C}$  spans a  $k$–dimensional subvector space in  ${\rm GF}(2^n)$.
  • The subspace of the dual code  $\mathcal{C}\hspace{0.05cm}'$  is orthogonal to it and has dimension  $n-k$.
  • Thus follows:   ${\rm dim} \{ \mathcal{C} \} + {\rm dim} \{ \mathcal{C}\hspace{0.05cm}' \} = n\hspace{0.05cm}.$

Some properties of the (7, 4, 3) Hamming code


Let us summarize again the previous results of this chapter using the example of the systematic Hamming code, which has already been described in detail in the chapter  $\text{Examples of Binary Block Codes}$ . This  $\text{(7, 4, 3)}$ code is characterized by

Code words of the  $\text{HC (7, 4, 3)}$
  • the number of parity-check equations  $m = 3$,
  • the code length  $n = 2^m-1 = 7$,
  • the information word length  $k = n-m = 4$,
  • the number of code words (dimension)  $2^k =16$ ,
  • the rate  $R= k/n = 4/7$,
  • the minimum distance  $d_{\rm min} = 3$  $($independent of  $m$,  $n$  and  $k)$.


In the above table the  $2^4 = 16$  code words are given
(black:  four information bits, red:  three parity bits).

One can see from this:

  • The code includes both the all zero word  "$0000000$"  and the all one word  "$1111111$".
  • There are seven code words resulting from  "$0001011$"  each by cyclic shift  (all highlighted in yellow).
  • There are seven code words resulting from  "$0011101$"  each by cyclic shift  (all highlighted in green).
  • For each code word also exists the "negated" code word, for example, besides  "$0001011$"  there is also the code word  "$1110100$".
  • The parity-check matrix can be written as follows:
\[{ \boldsymbol{\rm H}} = \begin{pmatrix} 1 &1 &1 &0 &1 &0 &0\\ 0 &1 &1 &1 &0 &1 &0\\ 1 &1 &0 &1 &0 &0 &1 \end{pmatrix}=\left({ \boldsymbol{\rm P}}^{\rm T} \: ; \: { \boldsymbol{\rm I}}_3 \right)\hspace{0.8cm} \Rightarrow\hspace{0.8cm}{ \boldsymbol{\rm P}}^{\rm T} = \begin{pmatrix} 1 &1 &1 &0 \\ 0 &1 &1 &1 \\ 1 &1 &0 &1 \end{pmatrix}\hspace{0.05cm},\hspace{0.2cm}{ \boldsymbol{\rm I}}_3 = \begin{pmatrix} 1 &0 &0 \\ 0 &1 &0 \\ 0 &0 &1 \end{pmatrix}\hspace{0.05cm}.\]
  • Accordingly, the following applies to the generator matrix:
\[{ \boldsymbol{\rm G}} =\left({ \boldsymbol{\rm I}}_4 \: ; \: { \boldsymbol{\rm P}}\right) = \begin{pmatrix} 1 &0 &0 &0 &1 &0 &1\\ 0 &1 &0 &0 &1 &1 &1\\ 0 &0 &1 &0 &1 &1 &0\\ 0 &0 &0 &1 &0 &1 &1 \end{pmatrix}\hspace{0.05cm}.\]

Exercises for the chapter


Exercise 1.7: Check and Generator Matrix of the HC (7, 4, 3)

Exercise 1.7Z: Classification of Block Codes

Exercise 1.8: Identical Codes

Exercise 1.8Z: Equivalent Codes

Exercise 1.9: Extended Hamming Code

Exercise 1.9Z: Extension and/or Puncturing

Exercise 1.10: Some Generator Matrices