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

From LNTwww
Line 3: Line 3:
 
}}
 
}}
  
[[File:P_ID2320__Inf_A_2_1.png|right|frame|Schlagworte zur "Codierung"]]
+
[[File:P_ID2320__Inf_A_2_1.png|right|frame|Keywords for "coding"]]
Man unterscheidet  drei Arten von Codierverfahren, nämlich:
+
Three types of coding methods are distinguished, namely:
*Leitungscodierung   ⇒   Kapitel "Codierte und mehrstufige Übertragung" im Buch  [[Digital_Signal_Transmission]],
+
*Line Coding   ⇒   Chapter "Coded and Multilevel Transmission" in the book  [[Digital_Signal_Transmission]],
*Kanalcodierung   ⇒   Buch  [[Channel_Coding]],
+
*Channel Coding   ⇒     [[Channel_Coding]] book,
*Quellencodierung   ⇒   Kapitel "Quellencodierung - Datenkomprimierung" im Buch  [[Information_Theory]].
+
*Source Coding   ⇒   Chapter "Source Coding - Data Compression" in the book  [[Information_Theory]].
  
  
Alle diese grundlegenden Codierverfahren haben gemeinsam, dass das Quellensignal  $q(t)$  durch eine Codesymbolfolge  $\langle c_\nu \rangle $  dargestellt wird.  Bei einer digitalen Quelle  (mit oder ohne Gedächtnis)  kann das Quellensignal  $q(t)$  auch durch die Quellensymbolfolge  $\langle q_\nu \rangle $  beschrieben werden.
+
All these basic coding methods have in common that the source signal   $q(t)$  is represented by a code symbol sequence  $\langle c_\nu \rangle $ .  With a digital source  (with or without memory)  the source signal  $q(t)$  can also be described by the source symbol sequence  $\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; gewonnen.&nbsp; This is called <i>decoding</i>, sometimes also <i>signal reconstruktion</i>.
  
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 coded transmission 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 <i>lossless coding procedure</i>, if after decoding&nbsp; $\langle v_\nu \rangle  = \langle q_\nu \rangle$&nbsp; applies.&nbsp; Otherwise, the coding procedure is <i>lossy</i>.
  
* 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 task 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 diagram.
 
   
 
   
  
  
===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,
+
+ Procedure for line coding,
+ Verfahren zur Kanalcodierung,
+
+ Channel coding method,
- Verfahren zur Quellencodierung.
+
- Source coding method.
  
  
{Welche Codierverfahren können durchaus verlustbehaftet sein?
+
{Which coding methods can be lossy?
 
|type="[]"}
 
|type="[]"}
- Verfahren zur Leitungscodierung,
+
- Line coding method,
- Verfahren zur Kanalcodierung,
+
- Channel coding method,
+ Verfahren zur Quellencodierung.
+
+ Source coding method.
  
  
{Wieviele der in der Grafik angegebenen Begriffe zählt man zur Leitungscodierung?
+
{How many of the terms given in the diagram are counted as 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 channel coding?
 
|type="{}"}
 
|type="{}"}
 
$N_\text{KC}\ =  \ $ { 4 }
 
$N_\text{KC}\ =  \ $ { 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 lossless source coding?
 
|type="{}"}
 
|type="{}"}
$N_\text{QC (verlustlos)} \ =  \ $ { 4 }
+
$N_\text{QC (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, on the other hand, is to reduce redundancy as much as possible in order to be able to store or transmit the information of the message 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 analogue 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 (symbolic: &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 "Channel Coding" 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{KC}\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. <br>Lossless source coding schemes include
*der Huffman&ndash;Code,
+
*the Huffman code,
*die verschiedenen Varianten des Lempel-Ziv-Algorithmus,
+
*the different variants of the Lempel-Ziv algorithm,
*die so genannten Run-Length-Codes,
+
*the so-called run-length codes,
*das bekannte Komprimierungsprogramm "Winzip".
+
*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{QC (verlustlos)}\hspace{0.15cm}\underline{ = 4}$.  
  
  
  
'''(6)'''&nbsp; Richtig sind die <u>Aussagen 1 und 3</u>:
+
'''(6)'''&nbsp; <u>Statements 1 and 3</u> are correct:
* Nur GIF und JPG wendet man auf Bilder an.&nbsp; MP3 ist seit Jahren das am weitesten verbreitete Audio&ndash;Komprimierungsprogramm.
+
* Only GIF and JPG are applied to pictures.&nbsp; MP3 has been the most widely used audio compression programme for years.
*Der AMR-Codec und der EFR-Codec finden Anwendung bei GSM und UMTS.
+
*The AMR codec and the EFR codec are used for GSM and UMTS.
  
 
{{ML-Fuß}}
 
{{ML-Fuß}}

Revision as of 14:44, 28 June 2021

Keywords for "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 code symbol sequence  $\langle c_\nu \rangle $ .  With a digital source  (with or without memory)  the source signal  $q(t)$  can also 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 $  gewonnen.  This is called decoding, sometimes also signal reconstruktion.

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 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?

Procedure for line coding,
Channel coding method,
Source coding method.

2

Which coding methods can be lossy?

Line coding method,
Channel coding method,
Source coding method.

3

How many of the terms given in the diagram are counted as line coding?

$N_\text{LC} \ = \ $

4

How many of the terms in the graph are counted as channel coding?

$N_\text{KC}\ = \ $

5

How many of the terms given in the graph are counted as lossless source coding?

$N_\text{QC (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, on the other hand, is to reduce redundancy as much as possible in order to be able to store or transmit the information of the message 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 analogue 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 (symbolic:   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{KC}\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 so-called run-length codes,
  • the well-known compression programme "Winzip".


All these procedures can only be used with digital input   ⇒   $N_\text{QC (verlustlos)}\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 programme for years.
  • The AMR codec and the EFR codec are used for GSM and UMTS.