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

From LNTwww
m (Text replacement - "code symbol sequence" to "encoded sequence")
 
(5 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:EN_Inf_A_2_1.png|right|frame|Keywords for "coding"]]
+
[[File:EN_Inf_A_2_1.png|right|frame|Keywords related to <br>the topic&nbsp; "Coding"]]
 
Three types of coding methods are distinguished, namely:
 
Three types of coding methods are distinguished, namely:
*Line Coding &nbsp; &rArr; &nbsp; Chapter "Coded and Multilevel Transmission" in the book&nbsp; [[Digital_Signal_Transmission]],
+
*Line Coding &nbsp; &rArr; &nbsp; Chapter&nbsp; "Coded and Multilevel Transmission"&nbsp; in the book&nbsp; "[[Digital_Signal_Transmission]]",
*Channel Coding &nbsp; &rArr; &nbsp; &nbsp; [[Channel_Coding]] book,
+
*Channel Coding &nbsp; &rArr; &nbsp; &nbsp; book&nbsp; "[[Channel_Coding]]",
*Source Coding &nbsp; &rArr; &nbsp; Chapter "Source Coding - Data Compression" in the book&nbsp; [[Information_Theory]].
+
*Source Coding &nbsp; &rArr; &nbsp; Chapter&nbsp; "Source Coding - Data Compression"&nbsp; in the book&nbsp; "[[Information_Theory]]".
  
  
All these basic coding methods have in common that the source signal &nbsp; $q(t)$&nbsp; is represented by a code symbol sequence&nbsp; $\langle c_\nu \rangle $&nbsp;.&nbsp; With a digital source&nbsp; (with or without memory)&nbsp; the source signal&nbsp; $q(t)$&nbsp; can also be described by the source symbol sequence&nbsp; $\langle q_\nu \rangle $&nbsp;.
+
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 $.
  
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>.
+
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".
  
 
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.
 
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:
+
A further distinguishing feature in&nbsp; "coded transmission"&nbsp; is:
  
* 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>.
+
* 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".
  
 
* The prerequisite for this classification is error-free transmission: &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:
  
  
''Hints:''
+
Hints:
*The task belongs to the chapter&nbsp; [[Information_Theory/Allgemeine_Beschreibung|General description of source coding]].
+
*The exercise belongs to the chapter&nbsp; [[Information_Theory/Allgemeine_Beschreibung|General Description of Source Coding]].
*The following questions&nbsp; '''(3)'''&nbsp; to&nbsp; '''(6)'''&nbsp; refer to the keywords in the above diagram.
+
*The following questions&nbsp; '''(3)'''&nbsp; to&nbsp; '''(6)'''&nbsp; refer to the keywords in the above graphic.
 
   
 
   
  
Line 40: Line 40:
 
{In which coding procedures is redundancy added?
 
{In which coding procedures is redundancy added?
 
|type="[]"}
 
|type="[]"}
+ Procedure for line coding,
+
+ Line coding methods,
+ Channel coding method,
+
+ Channel coding methods,
- Source coding method.
+
- Source coding methods.
  
  
 
{Which coding methods can be lossy?
 
{Which coding methods can be lossy?
 
|type="[]"}
 
|type="[]"}
- Line coding method,
+
- Line coding methods,
- Channel coding method,
+
- Channel coding methods,
+ Source coding method.
+
+ Source coding methods.
  
  
{How many of the terms given in the diagram are counted as line coding?
+
{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 }
  
  
{How many of the terms in the graph are counted as channel coding?
+
{How many of the terms in the graph are counted as&nbsp; "Channel Coding"?
 
|type="{}"}
 
|type="{}"}
$N_\text{KC}\ =  \ $ { 4 }
+
$N_\text{ChC}\ =  \ $ { 4 }
  
  
{How many of the terms given in the graph are counted as lossless source coding?
+
{How many of the terms given in the graph are counted as&nbsp; "lossless Source Coding"?
 
|type="{}"}
 
|type="{}"}
$N_\text{QC (lossless)} \ =  \ $ { 4 }
+
$N_\text{SC (lossless)} \ =  \ $ { 4 }
  
  
Line 83: Line 83:
 
* In line coding, redundancy is added to adapt the transmitted signal to the spectral characteristics of the channel.  
 
* 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.
 
*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.
+
*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.
  
  
Line 89: Line 89:
 
'''(2)'''&nbsp; Correct <u>answer is 3</u>:  
 
'''(2)'''&nbsp; Correct <u>answer is 3</u>:  
 
*In line and channel coding, lossy techniques would be counterproductive.
 
*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.
+
*In contrast, source coding for analog input signals (audio, video, etc.) is lossy per se.
  
  
  
'''(3)'''&nbsp; The following are line coding methods
+
'''(3)'''&nbsp; The following are line coding methods:
 
*the 4B3T codes (there are several variants of this, all of which work in blocks),
 
*the 4B3T codes (there are several variants of this, all of which work in blocks),
*the AMI code (symbolic: &nbsp; At each coding step, a binary character is read in and a ternary character is output).
+
*the AMI code (symbol-wise &nbsp; &rArr; &nbsp; at each coding step, a binary character is read in and a ternary character is output).
  
  
Line 102: Line 102:
  
  
'''(4)'''&nbsp; In the book "Channel Coding" are dealt with:
+
'''(4)'''&nbsp; In the book&nbsp; "Channel Coding"&nbsp; are dealt with:
 
*the Hamming codes,
 
*the Hamming codes,
 
*the Reed-Solomon codes,
 
*the Reed-Solomon codes,
Line 109: Line 109:
  
  
The correct result is accordingly $N_\text{KC}\hspace{0.15cm}\underline{ = 4}$.
+
The correct result is accordingly $N_\text{ChC}\hspace{0.15cm}\underline{ = 4}$.
  
  
  
'''(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
+
'''(5)'''&nbsp; 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 Huffman code,
 
*the different variants of the Lempel-Ziv algorithm,
 
*the different variants of the Lempel-Ziv algorithm,
*the so-called run-length codes,
+
*the run-length code,
 
*the well-known compression programme "Winzip".
 
*the well-known compression programme "Winzip".
  
  
All these procedures can only be used with digital input &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; <u>Statements 1 and 3</u> are correct:
 
'''(6)'''&nbsp; <u>Statements 1 and 3</u> are correct:
* Only GIF and JPG are applied to pictures.&nbsp; MP3 has been the most widely used audio compression programme for years.
+
* 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.
+
*The AMR codec and the EFR codec are used for GSM and UMTS in Mobile Communication.
  
 
{{ML-Fuß}}
 
{{ML-Fuß}}

Latest revision as of 13: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.