Aufgaben:Exercise 2.5Z: Some Calculations about GF(2 power 3): Difference between revisions

From LNTwww
No edit summary
Noah (talk | contribs)
No edit summary
Line 1: Line 1:
{{quiz-Header|Buchseite=Kanalcodierung/Erweiterungskörper}}
{{quiz-Header|Buchseite=Channel_Coding/Extension_Field}}


[[File:EN_KC_Z_2_5.png|right|frame|Elemente von  $\rm GF(2^3)$  für das Polynom  $p(x) = x^3 + x + 1$]]
[[File:EN_KC_Z_2_5.png|right|frame|Elements of  $\rm GF(2^3)$  for the polynomial  $p(x) = x^3 + x + 1$]
Wir betrachten nun den Erweiterungskörper (englisch: &nbsp; <i>Extension Field</i>&nbsp;) mit acht Elementen &nbsp; &#8658; &nbsp; $\rm GF(2^3)$&nbsp; gemäß der nebenstehenden Tabelle. Da das zugrunde liegende Polynom
We now consider the extension field with eight elements &nbsp; &#8658; &nbsp; $\rm GF(2^3)$&nbsp; according to the adjacent table. Since the underlying polynomial
:$$p(x) = x^3 + x +1 $$
:$$p(x) = x^3 + x +1 $$


sowohl irreduzibel als auch primitiv ist, kann das vorliegende Galoisfeld in folgender Form angegeben werden:
is both irreducible and primitive, the Galois field at hand can be stated in the following form:
:$${\rm GF}(2^3) = \{\hspace{0.1cm}0\hspace{0.05cm},\hspace{0.1cm} 1,\hspace{0.05cm}\hspace{0.1cm}
:$${\rm GF}(2^3) = \{\hspace{0.1cm}0\hspace{0.05cm},\hspace{0.1cm} 1,\hspace{0.05cm}\hspace{0.1cm}
\alpha\hspace{0.05cm},\hspace{0.1cm} \alpha^{2}\hspace{0.05cm},\hspace{0.1cm} \alpha^{3}\hspace{0.05cm},\hspace{0.1cm} \alpha^{4}\hspace{0.05cm},\hspace{0.1cm} \alpha^{5}\hspace{0.05cm},\hspace{0.1cm} \alpha^{6}\hspace{0.1cm}\}\hspace{0.05cm}. $$
\alpha\hspace{0.05cm},\hspace{0.1cm} \alpha^{2}\hspace{0.05cm},\hspace{0.1cm} \alpha^{3}\hspace{0.05cm},\hspace{0.1cm} \alpha^{4}\hspace{0.05cm},\hspace{0.1cm} \alpha^{5}\hspace{0.05cm},\hspace{0.1cm} \alpha^{6}\hspace{0.1cm}\}\hspace{0.05cm}. $$


Das Element&nbsp; $\alpha$&nbsp; ergibt sich dabei als Lösung der Gleichung&nbsp; $p(\alpha) = 0$&nbsp; im Galoisfeld&nbsp; $\rm GF(2)$.  
The element&nbsp; $\alpha$&nbsp; results thereby as solution of the equation&nbsp; $p(\alpha) = 0$&nbsp; in the Galois field&nbsp; $\rm GF(2)$.  
*Damit erhält man folgende Nebenbedingung:
*This gives the following constraint:
:$$\alpha^3 + \alpha +1 = 0\hspace{0.3cm} \Rightarrow\hspace{0.3cm} \alpha^3 = \alpha +1\hspace{0.05cm}.$$
:$$\alpha^3 + \alpha +1 = 0\hspace{0.3cm} \Rightarrow\hspace{0.3cm} \alpha^3 = \alpha +1\hspace{0.05cm}.$$


*Für die weiteren Elemente gelten folgende Berechnungen:
*The following calculations apply to the other elements:
:$$\alpha^4 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^3 = \alpha \cdot (\alpha + 1) = \alpha^2 + \alpha \hspace{0.05cm},$$
:$$\alpha^4 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^3 = \alpha \cdot (\alpha + 1) = \alpha^2 + \alpha \hspace{0.05cm},$$
:$$\alpha^5 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^4 = \alpha \cdot (\alpha^2 +\alpha) = \alpha^3 + \alpha^2 = \alpha^2  + \alpha + 1\hspace{0.05cm},$$
:$$\alpha^5 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^4 = \alpha \cdot (\alpha^2 +\alpha) = \alpha^3 + \alpha^2 = \alpha^2  + \alpha + 1\hspace{0.05cm},$$
:$$\alpha^6 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^5 = \alpha \cdot (\alpha^2 +\alpha + 1)= \alpha^3 + \alpha^2 + \alpha=  \alpha + 1 + \alpha^2  + \alpha = \alpha^2+ 1\hspace{0.05cm}.$$
:$$\alpha^6 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^5 = \alpha \cdot (\alpha^2 +\alpha + 1)= \alpha^3 + \alpha^2 + \alpha=  \alpha + 1 + \alpha^2  + \alpha = \alpha^2+ 1\hspace{0.05cm}.$$


In dieser Aufgabe sollen Sie einige algebraische Umformungen im&nbsp; Galoisfeld $\rm GF(2^3)$&nbsp; vornehmen. Unter anderem ist nach der multiplikativen Inversen des Elementes&nbsp; $\alpha^4$&nbsp; gefragt. Dann muss gelten:
In this exercise you are to do some algebraic transformations in the&nbsp; Galois field $\rm GF(2^3)$&nbsp;. Among other things you are asked for the multiplicative inverse of the element&nbsp; $\alpha^4$&nbsp;. Then it must hold:
:$$\alpha^4 \cdot {\rm Inv_M}( \alpha^4) = 1 \hspace{0.05cm}.$$
:$$\alpha^4 \cdot {\rm Inv_M}( \alpha^4) = 1 \hspace{0.05cm}.$$


Line 28: Line 28:




''Hinweise:''
Hints:
* Die Aufgabe gehört zum Kapitel&nbsp; [[Channel_Coding/Erweiterungsk%C3%B6rper| Erweiterungskörper]].
* This exercise belongs to the chapter&nbsp; [[Channel_Coding/Extension_Field| "extension field"]].
* Diese Aufgabe ist als Ergänzung zur etwas schwierigeren&nbsp; [[Aufgaben:Aufgabe_2.5:_Drei_Varianten_von_GF(2_hoch_4)|Aufgabe 2.5]]&nbsp; gedacht.
* This exercise is intended as a supplement to the slightly more difficult&nbsp; [[Aufgaben:Exercise_2.5:_Three_Variants_of_GF(2_power_4)|"Exercise 2.5"]]&nbsp;.








===Fragebogen===
===Questions===
<quiz display=simple>
<quiz display=simple>
{Welche der Aussagen treffen für die höheren Potenzen von&nbsp; $\alpha^{i} \ (i &#8805; 7)$&nbsp; zu?
{Which of the statements are true for the higher powers of&nbsp; $\alpha^{i} \ (i &#8805; 7)$&nbsp; true?
|type="[]"}
|type="[]"}
+ $\alpha^7 = 1$,
+ $\alpha^7 = 1$,
Line 44: Line 44:
+ $\alpha^i = \alpha^{i \ \rm mod \, 7}$.
+ $\alpha^i = \alpha^{i \ \rm mod \, 7}$.


{Welche Umformung ist für&nbsp; $A = \alpha^8 + \alpha^6 - \alpha^2 + 1$&nbsp; zulässig?
{Which transformation is allowed for&nbsp; $A = \alpha^8 + \alpha^6 - \alpha^2 + 1$&nbsp;?
|type="()"}
|type="()"}
- $A = 1$,
- $A = 1$,
Line 52: Line 52:
- $A = \alpha^4$.
- $A = \alpha^4$.


{Welche Umformung ist für&nbsp; $B = \alpha^{16} - \alpha^{12} \cdot \alpha^3$&nbsp; zulässig?
{Which transformation is allowed for&nbsp; $B = \alpha^{16} - \alpha^{12} \cdot \alpha^3$&nbsp; permissible?
|type="()"}
|type="()"}
- $B = 1$,
- $B = 1$,
Line 60: Line 60:
+ $B = \alpha^4$.
+ $B = \alpha^4$.


{Welche Umformung ist für&nbsp; $C = \alpha^3 + \alpha$&nbsp; zulässig?
{What transformation is allowed for&nbsp; $C = \alpha^3 + \alpha$&nbsp;?
|type="()"}
|type="()"}
+ $C = 1$,
+ $C = 1$,
Line 68: Line 68:
- $C = \alpha^4$.
- $C = \alpha^4$.


{Welche Umformung ist für&nbsp; $D = \alpha^4 + \alpha$&nbsp; zulässig?
{What transformation is allowed for&nbsp; $D = \alpha^4 + \alpha$&nbsp;?
|type="()"}
|type="()"}
- $D = 1$,
- $D = 1$,
Line 76: Line 76:
- $D = \alpha^4$.
- $D = \alpha^4$.


{Welche Umformung ist für&nbsp; $E = A \cdot B \cdot C/D$&nbsp; zulässig?
{Which transformation is allowed for&nbsp; $E = A \cdot B \cdot C/D$&nbsp;?
|type="()"}
|type="()"}
- $E = 1$,  
- $E = 1$,  
Line 84: Line 84:
- $E = \alpha^4$.
- $E = \alpha^4$.


{Welche Aussagen gelten für die multiplikative Inverse zu&nbsp; $\alpha^2 + \alpha$?
{What statements hold for the multiplicative inverse to&nbsp; $\alpha^2 + \alpha$?
|type="[]"}
|type="[]"}
- ${\rm Inv_M}(\alpha^2 + \alpha) = 1$,
- ${\rm Inv_M}(\alpha^2 + \alpha) = 1$,
Line 92: Line 92:
</quiz>
</quiz>


===Musterlösung===
===Solution===
{{ML-Kopf}}
{{ML-Kopf}}
'''(1)'''&nbsp; Beispielsweise findet man mit Hilfe der vorne angegebenen Tabelle:
'''(1)'''&nbsp; For example, using the table given in the front, you can find:
:$$\alpha^7 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^6 = \alpha \cdot (\alpha^2 + 1) = \alpha^3 + \alpha = (\alpha + 1) + \alpha = 1 \hspace{0.05cm},$$
:$$\alpha^7 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^6 = \alpha \cdot (\alpha^2 + 1) = \alpha^3 + \alpha = (\alpha + 1) + \alpha = 1 \hspace{0.05cm},$$
:$$\alpha^8 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^7 = \alpha \cdot 1 = \alpha\hspace{0.05cm},$$
:$$\alpha^8 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^7 = \alpha \cdot 1 = \alpha\hspace{0.05cm},$$
:$$\alpha^{13} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha^7 \cdot \alpha^6 = 1 \cdot \alpha^6 = \alpha^2 +  1\hspace{0.05cm}.$$
:$$\alpha^{13} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha^7 \cdot \alpha^6 = 1 \cdot \alpha^6 = \alpha^2 +  1\hspace{0.05cm}.$$


Die Tabelle lässt sich also modulo $7$ fortsetzen. Das bedeutet: <u>Alle Lösungsvorschläge</u> sind richtig.
The table can therefore be continued modulo $7$. This means: <u>All proposed solutions</u> are correct.






'''(2)'''&nbsp; Richtig ist der <u>Lösungsvorschlag 2</u> wegen
'''(2)'''&nbsp; Correct is the <u>proposed solution 2</u> because of.
*$\alpha^8 = \alpha$ entsprechend Teilaufgabe (1),  
*$\alpha^8 = \alpha$ according to subtask (1),  
*$\alpha^6 = \alpha^2 + 1$ (gemäß Tabelle), und
*$\alpha^6 = \alpha^2 + 1$ (according to table), and
*$-\alpha^2 = \alpha^2$ (Operationen im binären Galoisfeld).
*$-\alpha^2 = \alpha^2$ (operations in the binary Galois field).


 
So applies:
Also gilt:
:$$A = \alpha^8 + \alpha^6 - \alpha^2 + 1 = \alpha + (\alpha^2 + 1) + \alpha^2 + 1 = \alpha
:$$A = \alpha^8 + \alpha^6 - \alpha^2 + 1 = \alpha + (\alpha^2 + 1) + \alpha^2 + 1 = \alpha
\hspace{0.05cm}.$$
\hspace{0.05cm}.$$
Line 115: Line 114:




'''(3)'''&nbsp; Mit $\alpha^{16} = \alpha^{16-14} = \alpha^2$ sowie $\alpha^{12} \cdot \alpha^3 = \alpha^{15} = \alpha^{15-14} = \alpha$ erhält man den <u>Lösungsvorschlag 5</u>:
'''(3)'''&nbsp; With $\alpha^{16} = \alpha^{16-14} = \alpha^2$ sowie $\alpha^{12} \cdot \alpha^3 = \alpha^{15} = \alpha^{15-14} = \alpha$ we obtain the <u>proposed solution 5</u>:
:$$B = \alpha^2 + \alpha= \alpha^4
:$$B = \alpha^2 + \alpha= \alpha^4
\hspace{0.05cm}.$$
\hspace{0.05cm}.$$
Line 121: Line 120:




'''(4)'''&nbsp; Es gilt $\alpha^3 = \alpha + 1$ und damit $C = \alpha^3 + \alpha = \alpha + 1 + \alpha = 1$ &nbsp; &#8658; &nbsp; <u>Lösungsvorschlag 1</u>.
'''(4)'''&nbsp; It holds $\alpha^3 = \alpha + 1$ und damit $C = \alpha^3 + \alpha = \alpha + 1 + \alpha = 1$ &nbsp; &#8658; &nbsp; <u>Proposed solution 1</u>.






'''(5)'''&nbsp; Mit $\alpha^4 = \alpha^2 + \alpha$ erhält man $D = \alpha^4 + \alpha = \alpha^2$ &nbsp; &#8658; &nbsp; <u>Lösungsvorschlag 3</u>.
'''(5)'''&nbsp; With $\alpha^4 = \alpha^2 + \alpha$ we obtain $D = \alpha^4 + \alpha = \alpha^2$ &nbsp; &#8658; &nbsp; <u>Proposed solution 3</u>.






'''(6)'''&nbsp; Richtig ist der <u>Lösungsvorschlag 4</u>:
'''(6)'''&nbsp; Correct is the <u>proposed solution 4</u>:
:$$E = A \cdot B \cdot C/D = \alpha \cdot  \alpha^4 \cdot 1/\alpha^2 = \alpha^3
:$$E = A \cdot B \cdot C/D = \alpha \cdot  \alpha^4 \cdot 1/\alpha^2 = \alpha^3
\hspace{0.05cm}.$$
\hspace{0.05cm}.$$




 
'''(7)'''&nbsp; According to the table, $\alpha^2 + \alpha = \alpha^4$ holds. Therefore must be valid:
'''(7)'''&nbsp; Laut Tabelle gilt $\alpha^2 + \alpha = \alpha^4$. Deshalb muss gelten:
:$$\alpha^4 \cdot {\rm Inv_M}( \alpha^4) = 1 \hspace{0.3cm} \Rightarrow\hspace{0.3cm}
:$$\alpha^4 \cdot {\rm Inv_M}( \alpha^4) = 1 \hspace{0.3cm} \Rightarrow\hspace{0.3cm}
{\rm Inv_M}( \alpha^2 + \alpha) = {\rm Inv_M}( \alpha^4) = \alpha^{-4} = \alpha^3
{\rm Inv_M}( \alpha^2 + \alpha) = {\rm Inv_M}( \alpha^4) = \alpha^{-4} = \alpha^3
\hspace{0.05cm}.$$
\hspace{0.05cm}.$$


Wegen $\alpha^3 = \alpha + 1$ sind somit die <u>Lösungsvorschläge 2 und 3</u> richtig.
Because of $\alpha^3 = \alpha + 1$ the <u>proposed solutions 2 and 3</u> are correct.
{{ML-Fuß}}
{{ML-Fuß}}




[[Category:Channel Coding: Exercises|^2.2 Extension Field^]]
[[Category:Channel Coding: Exercises|^2.2 Extension Field^]]

Revision as of 23:06, 31 August 2022

[[File:EN_KC_Z_2_5.png|right|frame|Elements of  $\rm GF(2^3)$  for the polynomial  $p(x) = x^3 + x + 1$] We now consider the extension field with eight elements   ⇒   $\rm GF(2^3)$  according to the adjacent table. Since the underlying polynomial

$$p(x) = x^3 + x +1 $$

is both irreducible and primitive, the Galois field at hand can be stated in the following form:

$${\rm GF}(2^3) = \{\hspace{0.1cm}0\hspace{0.05cm},\hspace{0.1cm} 1,\hspace{0.05cm}\hspace{0.1cm}

\alpha\hspace{0.05cm},\hspace{0.1cm} \alpha^{2}\hspace{0.05cm},\hspace{0.1cm} \alpha^{3}\hspace{0.05cm},\hspace{0.1cm} \alpha^{4}\hspace{0.05cm},\hspace{0.1cm} \alpha^{5}\hspace{0.05cm},\hspace{0.1cm} \alpha^{6}\hspace{0.1cm}\}\hspace{0.05cm}. $$

The element  $\alpha$  results thereby as solution of the equation  $p(\alpha) = 0$  in the Galois field  $\rm GF(2)$.

  • This gives the following constraint:
$$\alpha^3 + \alpha +1 = 0\hspace{0.3cm} \Rightarrow\hspace{0.3cm} \alpha^3 = \alpha +1\hspace{0.05cm}.$$
  • The following calculations apply to the other elements:
$$\alpha^4 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^3 = \alpha \cdot (\alpha + 1) = \alpha^2 + \alpha \hspace{0.05cm},$$
$$\alpha^5 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^4 = \alpha \cdot (\alpha^2 +\alpha) = \alpha^3 + \alpha^2 = \alpha^2 + \alpha + 1\hspace{0.05cm},$$
$$\alpha^6 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^5 = \alpha \cdot (\alpha^2 +\alpha + 1)= \alpha^3 + \alpha^2 + \alpha= \alpha + 1 + \alpha^2 + \alpha = \alpha^2+ 1\hspace{0.05cm}.$$

In this exercise you are to do some algebraic transformations in the  Galois field $\rm GF(2^3)$ . Among other things you are asked for the multiplicative inverse of the element  $\alpha^4$ . Then it must hold:

$$\alpha^4 \cdot {\rm Inv_M}( \alpha^4) = 1 \hspace{0.05cm}.$$





Hints:



Questions

1 Which of the statements are true for the higher powers of  $\alpha^{i} \ (i ≥ 7)$  true?

$\alpha^7 = 1$,
$\alpha^8 = \alpha$,
$\alpha^{13} = \alpha^2 + 1$,
$\alpha^i = \alpha^{i \ \rm mod \, 7}$.

2 Which transformation is allowed for  $A = \alpha^8 + \alpha^6 - \alpha^2 + 1$ ?

$A = 1$,
$A = \alpha$,
$A = \alpha^2$,
$A = \alpha^3$,
$A = \alpha^4$.

3 Which transformation is allowed for  $B = \alpha^{16} - \alpha^{12} \cdot \alpha^3$  permissible?

$B = 1$,
$B = \alpha$,
$B = \alpha^2$,
$B = \alpha^3$,
$B = \alpha^4$.

4 What transformation is allowed for  $C = \alpha^3 + \alpha$ ?

$C = 1$,
$C = \alpha$,
$C = \alpha^2$,
$C = \alpha^3$,
$C = \alpha^4$.

5 What transformation is allowed for  $D = \alpha^4 + \alpha$ ?

$D = 1$,
$D = \alpha$,
$D = \alpha^2$,
$D = \alpha^3$,
$D = \alpha^4$.

6 Which transformation is allowed for  $E = A \cdot B \cdot C/D$ ?

$E = 1$,
$E = \alpha$,
$E = \alpha^2$,
$E = \alpha^3$,
$E = \alpha^4$.

7 What statements hold for the multiplicative inverse to  $\alpha^2 + \alpha$?

${\rm Inv_M}(\alpha^2 + \alpha) = 1$,
${\rm Inv_M}(\alpha^2 + \alpha) = \alpha + 1$,
${\rm Inv_M}(\alpha^2 + \alpha) = \alpha^3$,
${\rm Inv_M}(\alpha^2 + \alpha) = \alpha^4$.


Solution

(1)  For example, using the table given in the front, you can find:

$$\alpha^7 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^6 = \alpha \cdot (\alpha^2 + 1) = \alpha^3 + \alpha = (\alpha + 1) + \alpha = 1 \hspace{0.05cm},$$
$$\alpha^8 \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha \cdot \alpha^7 = \alpha \cdot 1 = \alpha\hspace{0.05cm},$$
$$\alpha^{13} \hspace{-0.15cm} \ = \ \hspace{-0.15cm} \alpha^7 \cdot \alpha^6 = 1 \cdot \alpha^6 = \alpha^2 + 1\hspace{0.05cm}.$$

The table can therefore be continued modulo $7$. This means: All proposed solutions are correct.


(2)  Correct is the proposed solution 2 because of.

  • $\alpha^8 = \alpha$ according to subtask (1),
  • $\alpha^6 = \alpha^2 + 1$ (according to table), and
  • $-\alpha^2 = \alpha^2$ (operations in the binary Galois field).

So applies:

$$A = \alpha^8 + \alpha^6 - \alpha^2 + 1 = \alpha + (\alpha^2 + 1) + \alpha^2 + 1 = \alpha

\hspace{0.05cm}.$$


(3)  With $\alpha^{16} = \alpha^{16-14} = \alpha^2$ sowie $\alpha^{12} \cdot \alpha^3 = \alpha^{15} = \alpha^{15-14} = \alpha$ we obtain the proposed solution 5:

$$B = \alpha^2 + \alpha= \alpha^4

\hspace{0.05cm}.$$


(4)  It holds $\alpha^3 = \alpha + 1$ und damit $C = \alpha^3 + \alpha = \alpha + 1 + \alpha = 1$   ⇒   Proposed solution 1.


(5)  With $\alpha^4 = \alpha^2 + \alpha$ we obtain $D = \alpha^4 + \alpha = \alpha^2$   ⇒   Proposed solution 3.


(6)  Correct is the proposed solution 4:

$$E = A \cdot B \cdot C/D = \alpha \cdot \alpha^4 \cdot 1/\alpha^2 = \alpha^3

\hspace{0.05cm}.$$


(7)  According to the table, $\alpha^2 + \alpha = \alpha^4$ holds. Therefore must be valid:

$$\alpha^4 \cdot {\rm Inv_M}( \alpha^4) = 1 \hspace{0.3cm} \Rightarrow\hspace{0.3cm}

{\rm Inv_M}( \alpha^2 + \alpha) = {\rm Inv_M}( \alpha^4) = \alpha^{-4} = \alpha^3 \hspace{0.05cm}.$$

Because of $\alpha^3 = \alpha + 1$ the proposed solutions 2 and 3 are correct.