Difference between revisions of "Aufgaben:Exercise 2.1: Coding with and without Loss"

From LNTwww
m (Text replacement - "”" to """)
m (Text replacement - "code symbol sequence" to "encoded sequence")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Informationstheorie/Allgemeine Beschreibung
+
{{quiz-Header|Buchseite=Information_Theory/General_Description
 
}}
 
}}
  
[[File:P_ID2320__Inf_A_2_1.png|right|frame|Schlagworte zur "Codierung"]]
+
[[File:EN_Inf_A_2_1.png|right|frame|Keywords related to <br>the topic&nbsp; "Coding"]]
Man unterscheidet  drei Arten von Codierverfahren, nämlich:
+
Three types of coding methods are distinguished, namely:
*Leitungscodierung &nbsp; &rArr; &nbsp; Kapitel "Codierte und mehrstufige Übertragung" im Buch&nbsp; [[Digital_Signal_Transmission]],
+
*Line Coding &nbsp; &rArr; &nbsp; Chapter&nbsp; "Coded and Multilevel Transmission"&nbsp; in the book&nbsp; "[[Digital_Signal_Transmission]]",
*Kanalcodierung &nbsp; &rArr; &nbsp; Buch&nbsp; [[Channel_Coding]],
+
*Channel Coding &nbsp; &rArr; &nbsp; &nbsp; book&nbsp; "[[Channel_Coding]]",
*Quellencodierung &nbsp; &rArr; &nbsp; Kapitel "Quellencodierung - Datenkomprimierung" im Buch&nbsp; [[Information_Theory]].
+
*Source Coding &nbsp; &rArr; &nbsp; Chapter&nbsp; "Source Coding - Data Compression"&nbsp; in the book&nbsp; "[[Information_Theory]]".
  
  
Alle diese grundlegenden Codierverfahren haben gemeinsam, dass das Quellensignal&nbsp; $q(t)$&nbsp; durch eine Codesymbolfolge&nbsp; $\langle c_\nu \rangle $&nbsp; dargestellt wird.&nbsp; Bei einer digitalen Quelle&nbsp; (mit oder ohne Gedächtnis)&nbsp; kann das Quellensignal&nbsp; $q(t)$&nbsp; auch durch die Quellensymbolfolge&nbsp; $\langle q_\nu \rangle $&nbsp; beschrieben werden.
+
All these basic coding methods have in common that the source signal&nbsp; $q(t)$&nbsp; is represented by a encoded sequence&nbsp; $\langle c_\nu \rangle $.&nbsp; With a digital source&nbsp; (with or w/o memory)&nbsp; the source signal&nbsp; $q(t)$&nbsp; can be described by the source symbol sequence&nbsp; $\langle q_\nu \rangle $.
  
Beim Empfänger wird aus der regenerierten Symbolfolge&nbsp; $\langle r_\nu \rangle $&nbsp; die Sinkensymbolfolge&nbsp; $\langle v_\nu \rangle $&nbsp; bzw. das Sinkensignal&nbsp; $v(t)$&nbsp; gewonnen.&nbsp; Man spricht hier von  <i>Decodierung</i>, manchmal auch von <i>Signalrekonstruktion</i>.
+
At the receiver, the sink symbol sequence&nbsp; $\langle v_\nu \rangle $&nbsp; or the sink signal&nbsp; $v(t)$&nbsp; is obtained from the regenerated symbol sequence&nbsp; $\langle r_\nu \rangle $.&nbsp; This is called&nbsp; "decoding",&nbsp; sometimes also "signal reconstruction".
  
Alle rechts aufgeführten Begriffe gehören zu einer der drei oben aufgeführten Disziplinen, zwischen denen zwar eine gewisse Verwandtschaft besteht, die sich aber in Zielrichtung und mathematischer Handhabung durchaus unterscheiden.
+
All the terms listed on the right belong to one of the three disciplines listed above, between which there is a certain affinity, but which are quite different in terms of objective and mathematical handling.
  
Ein weiteres Unterscheidungsmerkmal bei codierter Übertragung ist:
+
A further distinguishing feature in&nbsp; "coded transmission"&nbsp; is:
  
* Man spricht dann von einem <i>verlustlosen Codierverfahren</i>, wenn nach der Decodierung&nbsp; $\langle v_\nu \rangle  = \langle q_\nu \rangle$&nbsp; gilt.&nbsp; Andernfalls ist das Codierverfahren <i>verlustbehaftet</i>.
+
* One speaks of a&nbsp; "lossless coding procedure", if after decoding&nbsp; $\langle v_\nu \rangle  = \langle q_\nu \rangle$&nbsp; applies.&nbsp; <br>Otherwise, the coding procedure is called&nbsp; "lossy".
  
* Voraussetzung für diese Klassifizierung ist eine fehlerfreie Übertragung: &nbsp; $\langle r_\nu \rangle  = \langle c_\nu \rangle$.
+
* The prerequisite for this classification is error-free transmission: &nbsp; $\langle r_\nu \rangle  = \langle c_\nu \rangle$.
  
  
Line 29: Line 29:
  
  
''Hinweise:''
+
Hints:
*Die Aufgabe gehört zum  Kapitel&nbsp; [[Information_Theory/Allgemeine_Beschreibung|Allgemeine Beschreibung der Quellencodierung]].
+
*The exercise belongs to the chapter&nbsp; [[Information_Theory/Allgemeine_Beschreibung|General Description of Source Coding]].
*Die folgenden Fragen&nbsp; '''(3)'''&nbsp; bis&nbsp; '''(6)'''&nbsp; beziehen sich auf die Schlagworte in obiger Grafik.
+
*The following questions&nbsp; '''(3)'''&nbsp; to&nbsp; '''(6)'''&nbsp; refer to the keywords in the above graphic.
 
   
 
   
  
  
===Fragebogen===
+
===Questions===
  
 
<quiz display=simple>
 
<quiz display=simple>
{Bei welchen Codierverfahren wird Redundanz hinzugefügt?
+
{In which coding procedures is redundancy added?
 
|type="[]"}
 
|type="[]"}
+ Verfahren zur Leitungscodierung,
+
+ Line coding  methods,
+ Verfahren zur Kanalcodierung,
+
+ Channel coding methods,
- Verfahren zur Quellencodierung.
+
- Source coding methods.
  
  
{Welche Codierverfahren können durchaus verlustbehaftet sein?
+
{Which coding methods can be lossy?
 
|type="[]"}
 
|type="[]"}
- Verfahren zur Leitungscodierung,
+
- Line coding methods,
- Verfahren zur Kanalcodierung,
+
- Channel coding methods,
+ Verfahren zur Quellencodierung.
+
+ Source coding methods.
  
  
{Wieviele der in der Grafik angegebenen Begriffe zählt man zur Leitungscodierung?
+
{How many of the terms given in the chart are counted as&nbsp; "Line Coding"?
 
|type="{}"}
 
|type="{}"}
 
$N_\text{LC} \ = \ $ { 2 }
 
$N_\text{LC} \ = \ $ { 2 }
  
  
{Wieviele der in der Grafik angegebenen Begriffe  zählt man zur Kanalcodierung?
+
{How many of the terms in the graph are counted as&nbsp; "Channel Coding"?
 
|type="{}"}
 
|type="{}"}
$N_\text{KC}\ =  \ $ { 4 }
+
$N_\text{ChC}\ =  \ $ { 4 }
  
  
{Wieviele der in der Grafik angegebenen Begriffe sind der verlustlosen Quellencodierung zuzuordnen?
+
{How many of the terms given in the graph are counted as&nbsp; "lossless Source Coding"?
 
|type="{}"}
 
|type="{}"}
$N_\text{QC (verlustlos)} \ =  \ $ { 4 }
+
$N_\text{SC (lossless)} \ =  \ $ { 4 }
  
  
  
{Welche Aussagen gelten für die verlustbehafteten Quellencodierverfahren?
+
{Which statements apply to the lossy source coding methods?
 
|type="[]"}
 
|type="[]"}
+ AMR und EFR verwendet man im zellularen Mobilfunk.
+
+ AMR and EFR are used in cellular mobile radio.
- GIF, JPG und MP3 sind Komprimierungsverfahren für Bilder.
+
- GIF, JPG and MP3 are compression methods for pictures.
+ MP3 wird zur Komprimierung von Audiodateien verwendet.
+
+ MP3 is used to compress audio files.
  
  
Line 78: Line 78:
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp; Richtig sind die <u>Lösungsvorschläge 1 und 2</u>:
+
'''(1)'''&nbsp; <u>Proposed solutions 1 and 2</u> are correct:
* Bei der Leitungscodierung fügt man Redundanz hinzu, um das Sendesignal an die Spektraleigenschaften des Kanals anzupassen.  
+
* In line coding, redundancy is added to adapt the transmitted signal to the spectral characteristics of the channel.  
*Auch bei der Kanalcodierung fügt man gezielt Redundanz hinzu, hier, um diese beim Empfänger zur Fehlererkennung und/oder Fehlerkorrektur nutzen zu können.  
+
*With channel coding, redundancy is also added specifically, in this case to be able to use it at the receiver for error detection and/or error correction.
*Ziel von Quellencodierung ist dagegen eine größtmögliche Redundanzverminderung, um die Information der Nachrichtenquelle möglichst effizient speichern oder übertragen zu können.
+
*The aim of source coding is to reduce redundancy as much as possible in order to be able to store or transmit the information of the source as efficiently as possible.
  
  
  
'''(2)'''&nbsp; Richtig ist die <u>Antwort 3</u>:  
+
'''(2)'''&nbsp; Correct <u>answer is 3</u>:  
*Bei Leitungs&ndash; und Kanalcodierung wären verlustbehaftete Verfahren kontraproduktiv.  
+
*In line and channel coding, lossy techniques would be counterproductive.
*Dagegen ist die Quellencodierung bei analogem Eingangssignal (Audio, Video, usw.) per se verlustbehaftet.
+
*In contrast, source coding for analog input signals (audio, video, etc.) is lossy per se.
  
  
  
'''(3)'''&nbsp; Zu den Leitungscodierverfahren zählt man
+
'''(3)'''&nbsp; The following are line coding methods:
*die 4B3T&ndash;Codes (es gibt mehrere Varianten hiervon, die alle blockweise arbeiten),
+
*the 4B3T codes (there are several variants of this, all of which work in blocks),
*den AMI&ndash;Code (symbolweise: &nbsp; Bei jedem Codierschritt wird ein Binärzeichen eingelesen und ein Ternärzeichen ausgegeben).
+
*the AMI code (symbol-wise &nbsp; &rArr; &nbsp; at each coding step, a binary character is read in and a ternary character is output).
  
  
Demzufolge gilt $N_\text{LC}\hspace{0.15cm}\underline{ = 2}$.
+
Consequently, $N_\text{LC}\hspace{0.15cm}\underline{ = 2}$.
  
  
  
'''(4)'''&nbsp; Im Buch "Kanalcodierung" werden behandelt:
+
'''(4)'''&nbsp; In the book&nbsp; "Channel Coding"&nbsp; are dealt with:
*die Hamming&ndash;Codes,
+
*the Hamming codes,
*die Reed&ndash;Solomon&ndash;Codes,
+
*the Reed-Solomon codes,
*die Faltungscodes,
+
*the convolutional codes,
*die Turbocodes.
+
*the turbo codes.
  
  
Das richtige Ergebnis lautet dementsprechend $N_\text{KC}\hspace{0.15cm}\underline{ = 4}$.
+
The correct result is accordingly $N_\text{ChC}\hspace{0.15cm}\underline{ = 4}$.
  
  
  
'''(5)'''&nbsp; Bei verlustloser Quellencodierung kann der Empfänger die Nachricht der Quelle vollständig rekonstruieren, wenn kein Übertragungsfehler aufgetreten ist. <br>Zu den verlustlosen Quellencodierverfahren gehören
+
'''(5)'''&nbsp; In lossless source coding, the receiver can completely reconstruct the message of the source if no transmission error has occurred.  
*der Huffman&ndash;Code,
 
*die verschiedenen Varianten des Lempel-Ziv-Algorithmus,
 
*die so genannten Run-Length-Codes,
 
*das bekannte Komprimierungsprogramm "Winzip".
 
  
 +
Lossless source coding schemes include
 +
*the Huffman code,
 +
*the different variants of the Lempel-Ziv algorithm,
 +
*the run-length code,
 +
*the well-known compression programme "Winzip".
  
Alle diese Verfahren kann man nur bei digitalem Eingang anwenden &nbsp; &rArr; &nbsp;  $N_\text{QC (verlustlos)}\hspace{0.15cm}\underline{ = 4}$.
 
  
 +
All these procedures can only be used with digital input &nbsp; &rArr; &nbsp;  $N_\text{SC (lossless)}\hspace{0.15cm}\underline{ = 4}$.
  
  
'''(6)'''&nbsp; Richtig sind die <u>Aussagen 1 und 3</u>:
+
 
* Nur GIF und JPG wendet man auf Bilder an.&nbsp; MP3 ist seit Jahren das am weitesten verbreitete Audio&ndash;Komprimierungsprogramm.
+
'''(6)'''&nbsp; <u>Statements 1 and 3</u> are correct:
*Der AMR-Codec und der EFR-Codec finden Anwendung bei GSM und UMTS.
+
* Only GIF and JPG are applied to pictures.&nbsp; MP3 has been the most widely used audio compression program for years.
 +
*The AMR codec and the EFR codec are used for GSM and UMTS in Mobile Communication.
  
 
{{ML-Fuß}}
 
{{ML-Fuß}}
Line 132: Line 134:
  
  
[[Category:Information Theory: Exercises|^2.1 Allgemeine Beschreibung^]]
+
[[Category:Information Theory: Exercises|^2.1 General Description^]]

Latest revision as of 14:07, 16 August 2021

Keywords related to
the topic  "Coding"

Three types of coding methods are distinguished, namely:


All these basic coding methods have in common that the source signal  $q(t)$  is represented by a encoded sequence  $\langle c_\nu \rangle $.  With a digital source  (with or w/o memory)  the source signal  $q(t)$  can be described by the source symbol sequence  $\langle q_\nu \rangle $.

At the receiver, the sink symbol sequence  $\langle v_\nu \rangle $  or the sink signal  $v(t)$  is obtained from the regenerated symbol sequence  $\langle r_\nu \rangle $.  This is called  "decoding",  sometimes also "signal reconstruction".

All the terms listed on the right belong to one of the three disciplines listed above, between which there is a certain affinity, but which are quite different in terms of objective and mathematical handling.

A further distinguishing feature in  "coded transmission"  is:

  • One speaks of a  "lossless coding procedure", if after decoding  $\langle v_\nu \rangle = \langle q_\nu \rangle$  applies. 
    Otherwise, the coding procedure is called  "lossy".
  • The prerequisite for this classification is error-free transmission:   $\langle r_\nu \rangle = \langle c_\nu \rangle$.





Hints:


Questions

1

In which coding procedures is redundancy added?

Line coding methods,
Channel coding methods,
Source coding methods.

2

Which coding methods can be lossy?

Line coding methods,
Channel coding methods,
Source coding methods.

3

How many of the terms given in the chart are counted as  "Line Coding"?

$N_\text{LC} \ = \ $

4

How many of the terms in the graph are counted as  "Channel Coding"?

$N_\text{ChC}\ = \ $

5

How many of the terms given in the graph are counted as  "lossless Source Coding"?

$N_\text{SC (lossless)} \ = \ $

6

Which statements apply to the lossy source coding methods?

AMR and EFR are used in cellular mobile radio.
GIF, JPG and MP3 are compression methods for pictures.
MP3 is used to compress audio files.


Solution

(1)  Proposed solutions 1 and 2 are correct:

  • In line coding, redundancy is added to adapt the transmitted signal to the spectral characteristics of the channel.
  • With channel coding, redundancy is also added specifically, in this case to be able to use it at the receiver for error detection and/or error correction.
  • The aim of source coding is to reduce redundancy as much as possible in order to be able to store or transmit the information of the source as efficiently as possible.


(2)  Correct answer is 3:

  • In line and channel coding, lossy techniques would be counterproductive.
  • In contrast, source coding for analog input signals (audio, video, etc.) is lossy per se.


(3)  The following are line coding methods:

  • the 4B3T codes (there are several variants of this, all of which work in blocks),
  • the AMI code (symbol-wise   ⇒   at each coding step, a binary character is read in and a ternary character is output).


Consequently, $N_\text{LC}\hspace{0.15cm}\underline{ = 2}$.


(4)  In the book  "Channel Coding"  are dealt with:

  • the Hamming codes,
  • the Reed-Solomon codes,
  • the convolutional codes,
  • the turbo codes.


The correct result is accordingly $N_\text{ChC}\hspace{0.15cm}\underline{ = 4}$.


(5)  In lossless source coding, the receiver can completely reconstruct the message of the source if no transmission error has occurred.

Lossless source coding schemes include

  • the Huffman code,
  • the different variants of the Lempel-Ziv algorithm,
  • the run-length code,
  • the well-known compression programme "Winzip".


All these procedures can only be used with digital input   ⇒   $N_\text{SC (lossless)}\hspace{0.15cm}\underline{ = 4}$.


(6)  Statements 1 and 3 are correct:

  • Only GIF and JPG are applied to pictures.  MP3 has been the most widely used audio compression program for years.
  • The AMR codec and the EFR codec are used for GSM and UMTS in Mobile Communication.