Difference between revisions of "Information Theory/Further Source Coding Methods"

From LNTwww
 
(20 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
{{Header
 
{{Header
 
|Untermenü=Source coding - Data compression
 
|Untermenü=Source coding - Data compression
|Vorherige Seite=Entropy coding according to Huffman
+
|Vorherige Seite=Entropy Coding According to Huffman
|Nächste Seite=Information_Theory/Some_Preliminary_Remarks_on_Two-Dimensional_Random_Variables
+
|Nächste Seite=Some_Preliminary_Remarks_on_Two-Dimensional_Random_Variables
 
}}
 
}}
  
Line 16: Line 16:
 
Since  $-{\rm log}_2\hspace{0.15cm}(p_{\mu})$   is in contrast to  $L_μ$  not always an integer, this does not succeed in any case.
 
Since  $-{\rm log}_2\hspace{0.15cm}(p_{\mu})$   is in contrast to  $L_μ$  not always an integer, this does not succeed in any case.
  
Already three years before David A. Huffman,  [https://en.wikipedia.org/wiki/Claude_Shannon Claude E. Shannon]  and  [https://en.wikipedia.org/wiki/Robert_Fano Robert Fano] gave a similar algorithm, namely:
+
Already three years before David A. Huffman,  [https://en.wikipedia.org/wiki/Claude_Shannon $\text{Claude E. Shannon}$]  and  [https://en.wikipedia.org/wiki/Robert_Fano $\text{Robert Fano}$] gave a similar algorithm, namely:
 
:#   Order the source symbols according to decreasing symbol probabilities (identical to Huffman).
 
:#   Order the source symbols according to decreasing symbol probabilities (identical to Huffman).
 
:#   Divide the sorted characters into two groups of equal probability.
 
:#   Divide the sorted characters into two groups of equal probability.
Line 23: Line 23:
  
 
{{GraueBox|TEXT=
 
{{GraueBox|TEXT=
$\text{Example 1:}$  As in the  [[Information_Theory/Entropiecodierung_nach_Huffman#The_Huffman_algorithm|introductory example for the Huffman algorithm]]  in the last chapter, we assume  $M = 6$  symbols and the following probabilities:
+
$\text{Example 1:}$  As in the  [[Information_Theory/Entropiecodierung_nach_Huffman#The_Huffman_algorithm|"introductory example for the Huffman algorithm"]]  in the last chapter, we assume  $M = 6$  symbols and the following probabilities:
 
   
 
   
 
:$$p_{\rm A} = 0.30 \hspace{0.05cm},\hspace{0.2cm}p_{\rm B} = 0.24 \hspace{0.05cm},\hspace{0.2cm}p_{\rm C} = 0.20 \hspace{0.05cm},\hspace{0.2cm}
 
:$$p_{\rm A} = 0.30 \hspace{0.05cm},\hspace{0.2cm}p_{\rm B} = 0.24 \hspace{0.05cm},\hspace{0.2cm}p_{\rm C} = 0.20 \hspace{0.05cm},\hspace{0.2cm}
Line 37: Line 37:
  
 
''Notes'':  
 
''Notes'':  
*An „x” again indicates that bits must still be added in subsequent coding steps.
+
*An "x" again indicates that bits must still be added in subsequent coding steps.
*This results in a different assignment than with  [[Information_Theory/Entropiecodierung_nach_Huffman#The_Huffman_algorithm|Huffman coding]], but exactly the same average codeword length:
+
*This results in a different assignment than with  [[Information_Theory/Entropiecodierung_nach_Huffman#The_Huffman_algorithm|$\text{Huffman coding}$]], but exactly the same average code word length:
 
    
 
    
 
:$$L_{\rm M} = (0.30\hspace{-0.05cm}+\hspace{-0.05cm} 0.24\hspace{-0.05cm}+ \hspace{-0.05cm}0.20) \hspace{-0.05cm}\cdot\hspace{-0.05cm} 2 + 0.12\hspace{-0.05cm} \cdot \hspace{-0.05cm} 3 + (0.10\hspace{-0.05cm}+\hspace{-0.05cm}0.04) \hspace{-0.05cm}\cdot \hspace{-0.05cm}4 = 2.4\,{\rm bit/source\hspace{0.15cm} symbol}\hspace{0.05cm}.$$}}
 
:$$L_{\rm M} = (0.30\hspace{-0.05cm}+\hspace{-0.05cm} 0.24\hspace{-0.05cm}+ \hspace{-0.05cm}0.20) \hspace{-0.05cm}\cdot\hspace{-0.05cm} 2 + 0.12\hspace{-0.05cm} \cdot \hspace{-0.05cm} 3 + (0.10\hspace{-0.05cm}+\hspace{-0.05cm}0.04) \hspace{-0.05cm}\cdot \hspace{-0.05cm}4 = 2.4\,{\rm bit/source\hspace{0.15cm} symbol}\hspace{0.05cm}.$$}}
  
  
With the probabilities corresponding to  $\text{Example 1}$,  the Shannon-Fano algorithm leads to the same avarage codeword length as Huffman coding.  Similarly, for most other probability profiles, Huffman and Shannon-Fano are equivalent from an information-theoretic point of view.
+
With the probabilities corresponding to  $\text{Example 1}$,  the Shannon-Fano algorithm leads to the same avarage code word length as Huffman coding.  Similarly, for most other probability profiles, Huffman and Shannon-Fano are equivalent from an information-theoretic point of view.
  
However, there are definitely cases where the two methods differ in terms of (mean) codeword length, as the following example shows.
+
However, there are definitely cases where the two methods differ in terms of (mean) code word length, as the following example shows.
  
 
{{GraueBox|TEXT=
 
{{GraueBox|TEXT=
Line 54: Line 54:
 
\hspace{0.05cm}. $$
 
\hspace{0.05cm}. $$
  
[[File:EN_Inf_T_2_4_S1.png|right|frame|Tree structures according to Shannon-Fano and Huffman]]
+
[[File:EN_Inf_T_2_4_S1_v2.png|right|frame|Tree structures according to Shannon-Fano and Huffman]]
  
The diagram shows the respective code trees for Shannon-Fano (left) and Huffman (right).  The results can be summarised as follows:
+
The diagram shows the respective code trees for Shannon-Fano (left) and Huffman (right).  The results can be summarized as follows:
 
* The Shannon-Fano algorithm leads to the code
 
* The Shannon-Fano algorithm leads to the code
 
:    $\rm A$   →   '''11''',   $\rm B$   →   '''10''',   $\rm C$   →   '''01''',   $\rm D$   →   '''001''',   $\rm E$   →   '''000'''   
 
:    $\rm A$   →   '''11''',   $\rm B$   →   '''10''',   $\rm C$   →   '''01''',   $\rm D$   →   '''001''',   $\rm E$   →   '''000'''   
Line 66: Line 66:
 
*Using "Huffman", we get   
 
*Using "Huffman", we get   
 
:    $\rm A$   →   '''1''',   $\rm B$   →   '''001''',   $\rm C$   →   '''010''',   $\rm D$   →   '''001''',   $\rm E$   →   '''000'''   
 
:    $\rm A$   →   '''1''',   $\rm B$   →   '''001''',   $\rm C$   →   '''010''',   $\rm D$   →   '''001''',   $\rm E$   →   '''000'''   
:and a slightly smaller codeword length:
+
:and a slightly smaller code word length:
 
   
 
   
 
:$$L_{\rm M} = 0.38 \cdot 1 + (1-0.38) \cdot 3  $$
 
:$$L_{\rm M} = 0.38 \cdot 1 + (1-0.38) \cdot 3  $$
Line 75: Line 75:
  
  
The (German language) interactive applet  [[Applets:Huffman_Shannon_Fano|Huffman- und Shannon-Fano-Codierung  ⇒   $\text{SWF}$ version]]  illustrates the procedure for two variants of entropy coding.
+
The (German language) interactive applet  [[Applets:Huffman_Shannon_Fano|"Huffman- und Shannon-Fano-Codierung  ⇒   $\text{SWF}$ version"]]  illustrates the procedure for two variants of entropy coding.
  
  
Line 90: Line 90:
  
  
The algorithm for determining the interval parameters  $B_i$  and  ${\it Δ}_i$  is explained later in  $\text{Example 4}$ , as is a decoding option.
+
The algorithm for determining the interval parameters  $B_i$  and  ${\it Δ}_i$  is explained later in  $\text{Example 4}$ , as is the decoding option.
 
*First, there is a short example for the selection of the real number   $r_i$  with regard to the minimum number of bits.  
 
*First, there is a short example for the selection of the real number   $r_i$  with regard to the minimum number of bits.  
*More detailed information on this can be found in the description of  [[Aufgaben:Aufgabe_2.11Z:_Nochmals_Arithmetische_Codierung|Exercise 2.11Z]].
+
*More detailed information on this can be found in the description of  [[Aufgaben:Aufgabe_2.11Z:_Nochmals_Arithmetische_Codierung|"Exercise 2.11Z"]].
  
  
Line 108: Line 108:
 
{\rm Code} \hspace{0.15cm} \boldsymbol{\rm 1011} \in I_i\hspace{0.05cm}. $$
 
{\rm Code} \hspace{0.15cm} \boldsymbol{\rm 1011} \in I_i\hspace{0.05cm}. $$
  
However, to organise the sequential flow, one chooses the number of bits constant to  $N_{\rm Bit} = \big\lceil {\rm log}_2 \hspace{0.15cm}  ({1}/{\it \Delta_i})\big\rceil+1\hspace{0.05cm}. $  
+
However, to organize the sequential flow, one chooses the number of bits constant to  $N_{\rm Bit} = \big\lceil {\rm log}_2 \hspace{0.15cm}  ({1}/{\it \Delta_i})\big\rceil+1\hspace{0.05cm}. $  
 
*With the interval width  ${\it Δ}_i = 0.10$  results  $N_{\rm Bit} = 5$.  
 
*With the interval width  ${\it Δ}_i = 0.10$  results  $N_{\rm Bit} = 5$.  
 
*So the actual arithmetic codes would be   '''01000'''   and   '''10110''' respectively.}}
 
*So the actual arithmetic codes would be   '''01000'''   and   '''10110''' respectively.}}
Line 116: Line 116:
 
$\text{Example 4:}$  Now let the symbol set size be  $M = 3$  and let the symbols be denoted by  $\rm X$,  $\rm Y$  and  $\rm Z$:
 
$\text{Example 4:}$  Now let the symbol set size be  $M = 3$  and let the symbols be denoted by  $\rm X$,  $\rm Y$  and  $\rm Z$:
 
*The character sequence  $\rm XXYXZ$    ⇒    length of the source symbol sequence:   $N = 5$.
 
*The character sequence  $\rm XXYXZ$    ⇒    length of the source symbol sequence:   $N = 5$.
*Assume the probabilities  $p_{\rm X} = 0.6$,  $p_{\rm Y} = 0.2$  und  $p_{\rm Z} = 0.2$.
+
*Assume the probabilities  $p_{\rm X} = 0.6$,  $p_{\rm Y} = 0.2$  and  $p_{\rm Z} = 0.2$.
  
 
[[File:EN_Inf_T_2_4_S2.png|right|frame|About the arithmetic coding algorithm]]
 
[[File:EN_Inf_T_2_4_S2.png|right|frame|About the arithmetic coding algorithm]]
Line 128: Line 128:
 
*The only real number in the interval  $I_i = \big[0.25056, 0.2592\big)$, that can be represented with seven bits is   
 
*The only real number in the interval  $I_i = \big[0.25056, 0.2592\big)$, that can be represented with seven bits is   
 
:$$r_i = 1 · 2^{–2} + 1 · 2^{–7} = 0.2578125.$$
 
:$$r_i = 1 · 2^{–2} + 1 · 2^{–7} = 0.2578125.$$
*Thus the coder output is fixed:    '''0100001'''.}}
+
*Thus the encoder output is fixed:    '''0100001'''.}}
  
  
Line 145: Line 145:
  
  
Further information on arithmetic coding can be found in&nbsp;  [https://en.wikipedia.org/wiki/Arithmetic_coding WIKIPEDIA]&nbsp;  and in&nbsp;  [BCK02]<ref> Bodden, E.; Clasen, M.; Kneis, J.:&nbsp; Algebraische Kodierung.&nbsp; Algebraic Coding.  Proseminar, Chair of Computer Science IV, RWTH Aachen University, 2002.</ref>.
+
Further information on arithmetic coding can be found in&nbsp;  [https://en.wikipedia.org/wiki/Arithmetic_coding $\text{WIKIPEDIA}$]&nbsp;  and in&nbsp;  [BCK02]<ref> Bodden, E.; Clasen, M.; Kneis, J.:&nbsp; Algebraische Kodierung.&nbsp; Algebraic Coding.  Proseminar, Chair of Computer Science IV, RWTH Aachen University, 2002.</ref>.
 
   
 
   
  
Line 153: Line 153:
  
 
*Entropy coding only makes sense here when applied to&nbsp; $k$–tuples.  
 
*Entropy coding only makes sense here when applied to&nbsp; $k$–tuples.  
*A second possibility is&nbsp; '''Run-length Coding'''&nbsp; $\rm  (RLC)$, <br>which considers the rarer character&nbsp; $\rm B$&nbsp; as a separator and returns the lengths&nbsp; $L_i$&nbsp; of the individual sub-strings&nbsp; $\rm AA\text{...}A$&nbsp; as a result.
+
*A second possibility is&nbsp; &raquo;'''Run-length Coding'''&laquo;&nbsp; $\rm  (RLC)$, <br>which considers the rarer character&nbsp; $\rm B$&nbsp; as a separator and returns the lengths&nbsp; $L_i$&nbsp; of the individual sub-strings&nbsp; $\rm AA\text{...}A$&nbsp; as a result.
  
  
Line 173: Line 173:
  
 
However, the example also shows two problems of run-length coding:
 
However, the example also shows two problems of run-length coding:
*The lengths&nbsp; $L_i$&nbsp; of the substrings are not limited.&nbsp; Special measures must be taken here if a length&nbsp; $L_i$&nbsp; is greater than&nbsp; $2^5 = 32$&nbsp; $($valid fo&nbsp; $N_{\rm Bit} = 5)$, <br>for example the variant&nbsp; '''Run–Length Limited Coding'''&nbsp; $\rm (RLLC)$.&nbsp; See also&nbsp; [Meck09]<ref>Mecking, M.: Information Theory.&nbsp; Lecture manuscript, Chair of Communications Engineering, Technical University of Munich, 2009.</ref>&nbsp; and&nbsp; [[Aufgaben:Aufgabe_2.13:_Burrows-Wheeler-Rücktransformation|Exercise 2.13]].
+
*The lengths&nbsp; $L_i$&nbsp; of the substrings are not limited.&nbsp; Special measures must be taken here if a length&nbsp; $L_i$&nbsp; is greater than&nbsp; $2^5 = 32$&nbsp; $($valid for&nbsp; $N_{\rm Bit} = 5)$, <br>for example the variant&nbsp; &raquo;'''Run–Length Limited Coding'''&laquo;&nbsp; $\rm (RLLC)$.&nbsp; See also&nbsp; [Meck09]<ref>Mecking, M.: Information Theory.&nbsp; Lecture manuscript, Chair of Communications Engineering, Technical University of Munich, 2009.</ref>&nbsp; and&nbsp; [[Aufgaben:Aufgabe_2.13:_Burrows-Wheeler-Rücktransformation|"Exercise 2.13"]].
 
*If the sequence does not end with&nbsp; $\rm B$&nbsp; – which is rather the normal case with small probability&nbsp; $p_{\rm B}$&nbsp; one must also provide special treatment for the end of the file.
 
*If the sequence does not end with&nbsp; $\rm B$&nbsp; – which is rather the normal case with small probability&nbsp; $p_{\rm B}$&nbsp; one must also provide special treatment for the end of the file.
 
 
 
 
Line 179: Line 179:
 
==Burrows–Wheeler transformation== 
 
==Burrows–Wheeler transformation== 
 
<br>
 
<br>
To conclude this source coding chapter, we briefly discuss the algorithm published in 1994 by&nbsp; [https://en.wikipedia.org/wiki/Michael_Burrows Michael Burrows]&nbsp; and&nbsp; [https://en.wikipedia.org/wiki/David_Wheeler_(computer_scientist) David J. Wheeler]&nbsp;  [BW94]<ref>Burrows, M.; Wheeler, D.J.:&nbsp; A Block-sorting Lossless Data Compression Algorithm.&nbsp; Technical Report. Digital Equipment Corp. Communications, Palo Alto, 1994.</ref>,
+
To conclude this source coding chapter, we briefly discuss the algorithm published in 1994 by&nbsp; [https://en.wikipedia.org/wiki/Michael_Burrows $\text{Michael Burrows}$]&nbsp; and&nbsp; [https://en.wikipedia.org/wiki/David_Wheeler_(computer_scientist) $\text{David J. Wheeler}$]&nbsp;  [BW94]<ref>Burrows, M.; Wheeler, D.J.:&nbsp; A Block-sorting Lossless Data Compression Algorithm.&nbsp; Technical Report. Digital Equipment Corp. Communications, Palo Alto, 1994.</ref>,
[[File:EN_Inf_T_2_4_S3.png|frame|Example of the BWT (forward transformation)]]
+
[[File:EN_Inf_T_2_4_S3_vers2.png|frame|Example of the BWT (forward transformation)]]
  
 
*which, although it has no compression potential on its own,
 
*which, although it has no compression potential on its own,
Line 189: Line 189:
  
 
*First, an&nbsp; $N×N$ matrix is generated from the string of length&nbsp; $N$&nbsp; with each row resulting from the preceding row by cyclic left shift.
 
*First, an&nbsp; $N×N$ matrix is generated from the string of length&nbsp; $N$&nbsp; with each row resulting from the preceding row by cyclic left shift.
*Then the BWT matrix is sorted lexicographically.&nbsp; The result of the transformation is the last  column&nbsp;  ⇒  &nbsp; $\text{L–Spalte}$.&nbsp; In the example, this results in&nbsp;  $\text{_NSNNAANAAAS}$.
+
*Then the BWT matrix is sorted lexicographically.&nbsp; The result of the transformation is the last  column&nbsp;  ⇒  &nbsp; $\text{L–column}$.&nbsp; In the example, this results in&nbsp;  $\text{_NSNNAANAAAS}$.
 
*Furthermore, the primary index&nbsp; $I$&nbsp; must also be passed on. This value indicates the row of the sorted BWT matrix that contains the original text&nbsp; (marked red in the graphic).
 
*Furthermore, the primary index&nbsp; $I$&nbsp; must also be passed on. This value indicates the row of the sorted BWT matrix that contains the original text&nbsp; (marked red in the graphic).
 
*Of course, no matrix operations are necessary to determine the&nbsp; $\text{L–column}$&nbsp; and the primary index.&nbsp; Rather, the BWT result can be found very quickly with pointer technology.
 
*Of course, no matrix operations are necessary to determine the&nbsp; $\text{L–column}$&nbsp; and the primary index.&nbsp; Rather, the BWT result can be found very quickly with pointer technology.
Line 196: Line 196:
 
$\text{Furthermore, it should be noted about the BWT procedure:}$&nbsp;  
 
$\text{Furthermore, it should be noted about the BWT procedure:}$&nbsp;  
  
*Without an additional measure  &nbsp;  ⇒  &nbsp;  a downstream „real compression” – the BWT does not lead to any data compression. &nbsp;  
+
*Without an additional measure  &nbsp;  ⇒  &nbsp;  a downstream "real compression" – the BWT does not lead to any data compression. &nbsp;  
 
*Rather, there is even a slight increase in the amount of data, since in addition to the&nbsp; $N$&nbsp; characters, the primary index&nbsp; $I$&nbsp; now also be transmitted.
 
*Rather, there is even a slight increase in the amount of data, since in addition to the&nbsp; $N$&nbsp; characters, the primary index&nbsp; $I$&nbsp; now also be transmitted.
 
*For longer texts,&nbsp; however,&nbsp; this effect is negligible.&nbsp; Assuming 8 bit–ASCII–characters&nbsp; (one byte each)&nbsp; and the block length&nbsp; $N = 256$&nbsp; the number of bytes per block only increases from&nbsp; $256$&nbsp; to&nbsp; $257$,  i.e. by only&nbsp; $0.4\%$.}}
 
*For longer texts,&nbsp; however,&nbsp; this effect is negligible.&nbsp; Assuming 8 bit–ASCII–characters&nbsp; (one byte each)&nbsp; and the block length&nbsp; $N = 256$&nbsp; the number of bytes per block only increases from&nbsp; $256$&nbsp; to&nbsp; $257$,  i.e. by only&nbsp; $0.4\%$.}}
Line 222: Line 222:
 
*This example has shown that the&nbsp; Burrows–Wheeler transformation&nbsp;is nothing more than a sorting algorithm for texts.&nbsp; What is special about it is that the sorting is uniquely reversible.
 
*This example has shown that the&nbsp; Burrows–Wheeler transformation&nbsp;is nothing more than a sorting algorithm for texts.&nbsp; What is special about it is that the sorting is uniquely reversible.
 
   
 
   
*This property and additionally its inner structure are the basis for compressing the BWT result by means of known and efficient methods such as&nbsp; [[Information_Theory/Entropiecodierung_nach_Huffman|Huffman]]&nbsp; (a form of entropy coding) and&nbsp; [[Information_Theory/Further_Source_Coding_Methods#Run.E2.80.93Length_coding|run–length coding ]].}}
+
*This property and additionally its inner structure are the basis for compressing the BWT result by means of known and efficient methods such as&nbsp; [[Information_Theory/Entropiecodierung_nach_Huffman|$\text{Huffman}$]]&nbsp; (a form of entropy coding) and&nbsp; [[Information_Theory/Further_Source_Coding_Methods#Run.E2.80.93Length_coding|$\text{run–length coding}$]].}}
  
  
 
==Application scenario for the Burrows-Wheeler transformation==   
 
==Application scenario for the Burrows-Wheeler transformation==   
 
<br>
 
<br>
As an example for embedding the&nbsp; [[Information_Theory/Weitere_Quellencodierverfahren#Burrows.E2.80.93Wheeler_Transformation|Burrows–Wheeler Transformation]]&nbsp; (BWT) into a chain of source coding methods, we choose a structure proposed in&nbsp; [Abel03]<ref>Abel, J.:&nbsp; Verlustlose Datenkompression auf Grundlage der Burrows-Wheeler-Transformation.&nbsp; <br>In: PIK - Praxis der Informationsverarbeitung und Kommunikation, no. 3, vol. 26, pp. 140-144, Sept.  2003.</ref>.&nbsp; We use the same text example&nbsp; $\text{ANNAS_ANANAS}$&nbsp; as on the last page.&nbsp; The corresponding strings after each block are also given in the graphic.
+
As an example for embedding the&nbsp; [[Information_Theory/Further_Source_Coding_Methods#Burrows.E2.80.93Wheeler_transformation|$\text{Burrows–Wheeler Transformation}$]]&nbsp; (BWT) into a chain of source coding methods, we choose a structure proposed in&nbsp; [Abel03]<ref>Abel, J.:&nbsp; Verlustlose Datenkompression auf Grundlage der Burrows-Wheeler-Transformation.&nbsp; <br>In: PIK - Praxis der Informationsverarbeitung und Kommunikation, no. 3, vol. 26, pp. 140-144, Sept.  2003.</ref>.&nbsp; We use the same text example&nbsp; $\text{ANNAS_ANANAS}$&nbsp; as in the last section.&nbsp; The corresponding strings after each block are also given in the graphic.
  
[[File:EN_Inf_T_2_4_S5_v3.png|center|frame|Scheme for Burrows-Wheeler data compression]]
+
[[File:EN_Inf_T_2_4_S5_v2.png|center|frame|Scheme for Burrows-Wheeler data compression]]
  
 
*The&nbsp; $\rm BWT$&nbsp; result is: &nbsp;  &nbsp; $\text{_NSNNAANAAAS}$.&nbsp; BWT has not changed anything about the text length&nbsp; $N = 12$&nbsp; but there are now four characters that are identical to their predecessors&nbsp; (highlighted in red in the graphic).&nbsp; In the original text, this was only the case once.
 
*The&nbsp; $\rm BWT$&nbsp; result is: &nbsp;  &nbsp; $\text{_NSNNAANAAAS}$.&nbsp; BWT has not changed anything about the text length&nbsp; $N = 12$&nbsp; but there are now four characters that are identical to their predecessors&nbsp; (highlighted in red in the graphic).&nbsp; In the original text, this was only the case once.
*In the next block&nbsp; $\rm MTF$&nbsp; ("Move–To–Front") , each input character from the set&nbsp; $\{$ $\rm A$,&nbsp; $\rm N$,&nbsp; $\rm S$,&nbsp; '''_'''$\}$&nbsp; becomes an index&nbsp; $I ∈ \{0, 1, 2, 3\}$.&nbsp; However,&nbsp; this is not a simple mapping, but an algorithm given in&nbsp; [[Exercise_2.13Z:_Combination_of_BWT_and_MTF|Exercise 1.13Z]].
+
*In the next block&nbsp; $\rm MTF$&nbsp; ("Move–To–Front") , each input character from the set&nbsp; $\{$ $\rm A$,&nbsp; $\rm N$,&nbsp; $\rm S$,&nbsp; '''_'''$\}$&nbsp; becomes an index&nbsp; $I ∈ \{0, 1, 2, 3\}$.&nbsp; However,&nbsp; this is not a simple mapping, but an algorithm given in&nbsp; [[Exercise_2.13Z:_Combination_of_BWT_and_MTF|"Exercise 1.13Z"]].
 
*For our example, the MTF output sequence is&nbsp; $323303011002$, also with length&nbsp; $N = 12$.&nbsp; The four zeros in the MTF sequence&nbsp; (also in red font in the diagram)&nbsp; indicate that at each of these positions the BWT character is the same as its predecessor.
 
*For our example, the MTF output sequence is&nbsp; $323303011002$, also with length&nbsp; $N = 12$.&nbsp; The four zeros in the MTF sequence&nbsp; (also in red font in the diagram)&nbsp; indicate that at each of these positions the BWT character is the same as its predecessor.
 
*In large ASCII files, the frequency of the&nbsp; $0$&nbsp; may well be more than&nbsp; $50\%$,&nbsp; while the other&nbsp; $255$&nbsp; indices occur only rarely.&nbsp; Run-length coding&nbsp; $\rm (RCL)$&nbsp; is an excellent way to compress such a text structure.
 
*In large ASCII files, the frequency of the&nbsp; $0$&nbsp; may well be more than&nbsp; $50\%$,&nbsp; while the other&nbsp; $255$&nbsp; indices occur only rarely.&nbsp; Run-length coding&nbsp; $\rm (RCL)$&nbsp; is an excellent way to compress such a text structure.
*The block&nbsp; $\rm RCL0$&nbsp; in the above coding chain denotes a special&nbsp; [[Information_Theory/Further_Source_Coding_Methods#Run.E2.80.93Length_coding|run-length coding]]&nbsp; for zeros.&nbsp; The grey shading of the zeros indicates that a long zero sequence has been masked by a specific bit sequence &nbsp; (shorter than the zero sequence).
+
*The block&nbsp; $\rm RCL0$&nbsp; in the above coding chain denotes a special&nbsp; [[Information_Theory/Further_Source_Coding_Methods#Run.E2.80.93Length_coding|$\text{run-length coding}$]]&nbsp; for zeros.&nbsp; The gray shading of the zeros indicates that a long zero sequence has been masked by a specific bit sequence &nbsp; (shorter than the zero sequence).
 
*The entropy encoder&nbsp; $\rm (EC$, for example "Huffman"$)$&nbsp; provides further compression.&nbsp; BWT&nbsp; and&nbsp; MTF&nbsp; only have the task in the coding chain of increasing the efficiency of&nbsp; "RLC0"&nbsp; and&nbsp; "EC"&nbsp; through character preprocessing.&nbsp; The output file is again binary.
 
*The entropy encoder&nbsp; $\rm (EC$, for example "Huffman"$)$&nbsp; provides further compression.&nbsp; BWT&nbsp; and&nbsp; MTF&nbsp; only have the task in the coding chain of increasing the efficiency of&nbsp; "RLC0"&nbsp; and&nbsp; "EC"&nbsp; through character preprocessing.&nbsp; The output file is again binary.
  
Line 253: Line 253:
 
[[Exercise_2.13Z:_Combination_of_BWT_and_MTF|Exercise 2.13Z: Combination of BWT and MTF]]
 
[[Exercise_2.13Z:_Combination_of_BWT_and_MTF|Exercise 2.13Z: Combination of BWT and MTF]]
  
==List of sources==
+
==References==
 
<references />
 
<references />
  
  
 
{{Display}}
 
{{Display}}

Latest revision as of 18:11, 20 February 2023


The Shannon-Fano algorithm


The Huffman coding from 1952 is a special case of  "entropy coding".  It attempts to represent the source symbol  $q_μ$  by a code symbol  $c_μ$  of length  $L_μ$,  aiming for the following construction rule:

$$L_{\mu} \approx -{\rm log}_2\hspace{0.15cm}(p_{\mu}) \hspace{0.05cm}.$$

Since  $-{\rm log}_2\hspace{0.15cm}(p_{\mu})$  is in contrast to  $L_μ$  not always an integer, this does not succeed in any case.

Already three years before David A. Huffman,  $\text{Claude E. Shannon}$  and  $\text{Robert Fano}$ gave a similar algorithm, namely:

  1.   Order the source symbols according to decreasing symbol probabilities (identical to Huffman).
  2.   Divide the sorted characters into two groups of equal probability.
  3.   The binary symbol  1  is assigned to the first group,  0  to the second (or vice versa).
  4.   If there is more than one character in a group, the algorithm is to be applied recursively to this group.

$\text{Example 1:}$  As in the  "introductory example for the Huffman algorithm"  in the last chapter, we assume  $M = 6$  symbols and the following probabilities:

$$p_{\rm A} = 0.30 \hspace{0.05cm},\hspace{0.2cm}p_{\rm B} = 0.24 \hspace{0.05cm},\hspace{0.2cm}p_{\rm C} = 0.20 \hspace{0.05cm},\hspace{0.2cm} p_{\rm D} = 0.12 \hspace{0.05cm},\hspace{0.2cm}p_{\rm E} = 0.10 \hspace{0.05cm},\hspace{0.2cm}p_{\rm F} = 0.04 \hspace{0.05cm}.$$

Then the Shannon-Fano algorithm is:

  1.   $\rm AB$   →   1x  (probability 0.54),   $\rm CDEF$   →   0x  (probability 0.46),
  2.   $\underline{\rm A}$   →   11  (probability 0.30),   $\underline{\rm B}$   →   10  (probability 0.24),
  3.   $\underline{\rm C}$   →   01  (probability 0.20),   $\rm DEF$ → 00x,  (probability 0.26),
  4.   $\underline{\rm D}$   →   001  (probability 0.12),   $\rm EF$   →   000x  (probability 0.14),
  5.   $\underline{\rm E}$   →   0001  (probability 0.10),   $\underline{\rm F}$   →   0000  (probability 0.04).

Notes:

  • An "x" again indicates that bits must still be added in subsequent coding steps.
  • This results in a different assignment than with  $\text{Huffman coding}$, but exactly the same average code word length:
$$L_{\rm M} = (0.30\hspace{-0.05cm}+\hspace{-0.05cm} 0.24\hspace{-0.05cm}+ \hspace{-0.05cm}0.20) \hspace{-0.05cm}\cdot\hspace{-0.05cm} 2 + 0.12\hspace{-0.05cm} \cdot \hspace{-0.05cm} 3 + (0.10\hspace{-0.05cm}+\hspace{-0.05cm}0.04) \hspace{-0.05cm}\cdot \hspace{-0.05cm}4 = 2.4\,{\rm bit/source\hspace{0.15cm} symbol}\hspace{0.05cm}.$$


With the probabilities corresponding to  $\text{Example 1}$,  the Shannon-Fano algorithm leads to the same avarage code word length as Huffman coding.  Similarly, for most other probability profiles, Huffman and Shannon-Fano are equivalent from an information-theoretic point of view.

However, there are definitely cases where the two methods differ in terms of (mean) code word length, as the following example shows.

$\text{Example 2:}$  We consider  $M = 5$  symbols with the following probabilities:

$$p_{\rm A} = 0.38 \hspace{0.05cm}, \hspace{0.2cm}p_{\rm B}= 0.18 \hspace{0.05cm}, \hspace{0.2cm}p_{\rm C}= 0.16 \hspace{0.05cm},\hspace{0.2cm} p_{\rm D}= 0.15 \hspace{0.05cm}, \hspace{0.2cm}p_{\rm E}= 0.13 \hspace{0.3cm} \Rightarrow\hspace{0.3cm} H = 2.19\,{\rm bit/source\hspace{0.15cm} symbol} \hspace{0.05cm}. $$
Tree structures according to Shannon-Fano and Huffman

The diagram shows the respective code trees for Shannon-Fano (left) and Huffman (right).  The results can be summarized as follows:

  • The Shannon-Fano algorithm leads to the code
    $\rm A$   →   11,   $\rm B$   →   10,   $\rm C$   →   01,   $\rm D$   →   001,   $\rm E$   →   000 
and thus to the mean code word length
$$L_{\rm M} = (0.38 + 0.18 + 0.16) \cdot 2 + (0.15 + 0.13) \cdot 3 $$
$$\Rightarrow\hspace{0.3cm} L_{\rm M} = 2.28\,\,{\rm bit/source\hspace{0.15cm} symbol}\hspace{0.05cm}.$$
  • Using "Huffman", we get 
    $\rm A$   →   1,   $\rm B$   →   001,   $\rm C$   →   010,   $\rm D$   →   001,   $\rm E$   →   000 
and a slightly smaller code word length:
$$L_{\rm M} = 0.38 \cdot 1 + (1-0.38) \cdot 3 $$
$$\Rightarrow\hspace{0.3cm} L_{\rm M} = 2.24\,\,{\rm bit/source\hspace{0.15cm} symbol}\hspace{0.05cm}. $$
  • There is no set of probabilities for which  "Shannon–Fano"  provides a better result than  "Huffman",  which always provides the best possible entropy encoder.
  • The graph also shows that the algorithms proceed in different directions in the tree diagram, namely once from the root to the individual symbols  (Shannon–Fano), and secondly from the individual symbols to the root  (Huffman).


The (German language) interactive applet  "Huffman- und Shannon-Fano-Codierung  ⇒   $\text{SWF}$ version"  illustrates the procedure for two variants of entropy coding.


Arithmetic coding


Another form of entropy coding is arithmetic coding.  Here, too, the symbol probabilities  $p_μ$  must be known.  For the index applies  $μ = 1$, ... ,  $M$.

Here is a brief outline of the procedure:

  • In contrast to Huffman and Shannon-Fano coding, a symbol sequence of length  $N$  is coded together in arithmetic coding.  We write abbreviated  $Q = 〈\hspace{0.05cm} q_1, q_2$, ... , $q_N \hspace{0.05cm} 〉$.
  • Each symbol sequence  $Q_i$  is assigned a real number interval  $I_i$  which is identified by the beginning  $B_i$  and the interval width  ${\it Δ}_i$ .
  • The  "code"  for the sequence  $Q_i$  is the binary representation of a real number value from this interval:   $r_i ∈ I_i = \big [B_i, B_i + {\it Δ}_i\big)$.  This notation says that  $B_i$  belongs to the interval  $I_i$    (square bracket), but  $B_i + {\it Δ}_i$  just does not  (round bracket).
  • It is always  $0 ≤ r_i < 1$.  It makes sense to select  $r_i$  from the interval  $I_i$  in such a way that the value can be represented with as few bits as possible.  However, there is always a minimum number of bits, which depends on the interval width  ${\it Δ}_i$.


The algorithm for determining the interval parameters  $B_i$  and  ${\it Δ}_i$  is explained later in  $\text{Example 4}$ , as is the decoding option.

  • First, there is a short example for the selection of the real number   $r_i$  with regard to the minimum number of bits.
  • More detailed information on this can be found in the description of  "Exercise 2.11Z".


$\text{Example 3:}$  For the two parameter sets of the arithmetic coding algorithm listed below, yields the following real results  $r_i$  and the following codes belong to the associated interval  $I_i$ :

  • $B_i = 0.25, {\it Δ}_i = 0.10 \ ⇒ \ I_i = \big[0.25, 0.35\big)\text{:}$
$$r_i = 0 \cdot 2^{-1} + 1 \cdot 2^{-2} = 0.25 \hspace{0.3cm}\Rightarrow\hspace{0.3cm} {\rm Code} \hspace{0.15cm} \boldsymbol{\rm 01} \in I_i \hspace{0.05cm},$$
  • $B_i = 0.65, {\it Δ}_i = 0.10 \ ⇒ \ I_i = \big[0.65, 0.75\big);$  note:   $0.75$  does not belong to the interval:
$$r_i = 1 \cdot 2^{-1} + 0 \cdot 2^{-2} + 1 \cdot 2^{-3} + 1 \cdot 2^{-4} = 0.6875 \hspace{0.3cm}\Rightarrow\hspace{0.3cm} {\rm Code} \hspace{0.15cm} \boldsymbol{\rm 1011} \in I_i\hspace{0.05cm}. $$

However, to organize the sequential flow, one chooses the number of bits constant to  $N_{\rm Bit} = \big\lceil {\rm log}_2 \hspace{0.15cm} ({1}/{\it \Delta_i})\big\rceil+1\hspace{0.05cm}. $

  • With the interval width  ${\it Δ}_i = 0.10$  results  $N_{\rm Bit} = 5$.
  • So the actual arithmetic codes would be   01000   and   10110 respectively.


$\text{Example 4:}$  Now let the symbol set size be  $M = 3$  and let the symbols be denoted by  $\rm X$,  $\rm Y$  and  $\rm Z$:

  • The character sequence  $\rm XXYXZ$   ⇒   length of the source symbol sequence:   $N = 5$.
  • Assume the probabilities  $p_{\rm X} = 0.6$,  $p_{\rm Y} = 0.2$  and  $p_{\rm Z} = 0.2$.
About the arithmetic coding algorithm


The diagram on the right shows the algorithm for determining the interval boundaries.

  • First, the entire probability range  $($between  $0$  and  $1)$  is divided according to the symbol probabilities  $p_{\rm X}$,  $p_{\rm Y}$  and  $p_{\rm Z}$  into three areas with the boundaries  $B_0$,  $C_0$,  $D_0$  and  $E_0$.
  • The first symbol present for coding is  $\rm X$.  Therefore, in the next step, the probability range from  $B_1 = B_0 = 0$  to  $E_1 = C_0 = 0.6$  is again divided in the ratio  $0.6$  :  $0.2$  :  $0.2$.
  • After the second symbol  $\rm X$ , the range limits are  $B_2 = 0$,  $C_2 = 0.216$,  $D_2 = 0.288$  and  $E_2 = 0.36$.  Since the symbol  $\rm Y$  is now pending, the range is subdivided between  $0.216$ ... $0.288$.
  • After the fifth symbol  $\rm Z$  , the interval  $I_i$  for the considered symbol sequence  $Q_i = \rm XXYXZ$  is fixed.  A real number  $r_i$  must now be found for which the following applies::   $0.25056 ≤ r_i < 0.2592$.
  • The only real number in the interval  $I_i = \big[0.25056, 0.2592\big)$, that can be represented with seven bits is 
$$r_i = 1 · 2^{–2} + 1 · 2^{–7} = 0.2578125.$$
  • Thus the encoder output is fixed:   0100001.


Seven bits are therefore needed for these  $N = 5$  symbols, exactly as many as with Huffman coding with the assignment $\rm X$   →   1, $\rm Y$   →   00,   $\rm Z$   →   01.

  • However, arithmetic coding is superior to Huffman coding when the actual number of bits used in Huffman deviates even more from the optimal distribution, for example, when a character occurs extremely frequently.
  • Often, however, only the middle of the interval – in the example  $0.25488$ – is represented in binary:   0.01000010011 .... The number of bits is obtained as follows:
$${\it Δ}_5 = 0.2592 - 0.25056 = 0.00864 \hspace{0.3cm}\Rightarrow \hspace{0.3cm}N_{\rm Bit} = \left\lceil {\rm log}_2 \hspace{0.15cm} \frac{1}{0.00864} \right\rceil + 1\hspace{0.15cm} = \left\lceil {\rm log}_2 \hspace{0.15cm} 115.7 \right\rceil + 1 = 8 \hspace{0.05cm}.$$
  • Thus the arithmetic code for this example with  $N = 5$  input characters is:   01000010.
  • The decoding process can also be explained using the above graphic. The incoming bit sequence  0100001  is converted to  $r = 0.2578125$ .
  • This lies in the first and second step respectively in the first area   ⇒   symbol $\rm X$, in the third step in the second area   ⇒   symbol $\rm Y$,  and so on.


Further information on arithmetic coding can be found in  $\text{WIKIPEDIA}$  and in  [BCK02][1].


Run–Length coding


We consider a binary source  $(M = 2)$  with the symbol set  $\{$ $\rm A$,  $\rm B$ $\}$,  where one symbol occurs much more frequently than the other.  For example, let  $p_{\rm A} \gg p_{\rm B}$.

  • Entropy coding only makes sense here when applied to  $k$–tuples.
  • A second possibility is  »Run-length Coding«  $\rm (RLC)$,
    which considers the rarer character  $\rm B$  as a separator and returns the lengths  $L_i$  of the individual sub-strings  $\rm AA\text{...}A$  as a result.


To illustrate the run-length coding

$\text{Example 5:}$  The graphic shows an example sequence

  • with the probabilities  $p_{\rm A} = 0.9$  and  $p_{\rm B} = 0.1$  
    ⇒   source entropy $H = 0.469$ bit/source symbol.


The example sequence of length  $N = 100$  contains the symbol  $\rm B$  exactly ten times and the symbol  $\rm A$ ninety times, i.e. the relative frequencies here correspond exactly to the probabilities.
You can see from this example:

  • The run-length coding of this sequence results in the sequence  $ \langle \hspace{0.05cm}6, \ 14, \ 26, \ 11, \ 4, \ 10, \ 3,\ 9,\ 1,\ 16 \hspace{0.05cm} \rangle $.
  • If one represents the lengths  $L_1$, ... , $L_{10}$  with five bits each, one thus requires  $5 · 10 = 50$  bits.
  • The RLC data compression is thus not much worse than the theoretical limit that results according to the source entropy to  $H · N ≈ 47$  bits.
  • The direct application of entropy coding would not result in any data compression here; rather, one continues to need  $100$  bits.
  • Even with the formation of triples,  $54$  bits would still be needed with Huffman, i.e. more than with run-length coding.


However, the example also shows two problems of run-length coding:

  • The lengths  $L_i$  of the substrings are not limited.  Special measures must be taken here if a length  $L_i$  is greater than  $2^5 = 32$  $($valid for  $N_{\rm Bit} = 5)$,
    for example the variant  »Run–Length Limited Coding«  $\rm (RLLC)$.  See also  [Meck09][2]  and  "Exercise 2.13".
  • If the sequence does not end with  $\rm B$  – which is rather the normal case with small probability  $p_{\rm B}$  one must also provide special treatment for the end of the file.


Burrows–Wheeler transformation


To conclude this source coding chapter, we briefly discuss the algorithm published in 1994 by  $\text{Michael Burrows}$  and  $\text{David J. Wheeler}$  [BW94][3],

Example of the BWT (forward transformation)
  • which, although it has no compression potential on its own,
  • but it greatly improves the compression capability of other methods.



The Burrows–Wheeler Transformation accomplishes a blockwise sorting of data, which is illustrated in the diagram using the example of the text  $\text{ANNAS_ANANAS}$  (meaning:  Anna's pineapple)  of length  $N = 12$:

  • First, an  $N×N$ matrix is generated from the string of length  $N$  with each row resulting from the preceding row by cyclic left shift.
  • Then the BWT matrix is sorted lexicographically.  The result of the transformation is the last column  ⇒   $\text{L–column}$.  In the example, this results in  $\text{_NSNNAANAAAS}$.
  • Furthermore, the primary index  $I$  must also be passed on. This value indicates the row of the sorted BWT matrix that contains the original text  (marked red in the graphic).
  • Of course, no matrix operations are necessary to determine the  $\text{L–column}$  and the primary index.  Rather, the BWT result can be found very quickly with pointer technology.


$\text{Furthermore, it should be noted about the BWT procedure:}$ 

  • Without an additional measure   ⇒   a downstream "real compression" – the BWT does not lead to any data compression.  
  • Rather, there is even a slight increase in the amount of data, since in addition to the  $N$  characters, the primary index  $I$  now also be transmitted.
  • For longer texts,  however,  this effect is negligible.  Assuming 8 bit–ASCII–characters  (one byte each)  and the block length  $N = 256$  the number of bytes per block only increases from  $256$  to  $257$, i.e. by only  $0.4\%$.


We refer to the detailed descriptions of BWT in  [Abel04][4].

Example for BWT (reverse transformation)

Finally, we will show how the original text can be reconstructed from the  $\text{L}$–column  (from  "Last")  of the BWT matrix.

  • For this, one still needs the primary index $I$, as well as the first column of the BWT matrix.
  • This  $\text{F}$–column  (from  "First")  does not have to be transferred, but results from the  $\text{L}$–column very simply through lexicographic sorting.


The graphic shows the reconstruction procedure for the example under consideration:

  • One starts in the line with the primary index  $I$.  The first character to be output is the  $\rm A$  marked in red in the  $\text{F}$–column.  This step is marked in the graphic with a yellow (1).
  • This  $\rm A$  is the third  $\rm A$ character in the  $\text{F}$–column.  Now look for the third  $\rm A$  in the  $\text{L}$–column,  find it in the line marked with  (2)  and output the corresponding  N  of the  $\text{F}$–column.
  • The last  N  of the  $\text{L}$–column is found in line  (3).  The character of the F column is output in the same line, i.e. an  N again.


After  $N = 12$  decoding steps, the reconstruction is completed.

$\text{Conclusion:}$ 

  • This example has shown that the  Burrows–Wheeler transformation is nothing more than a sorting algorithm for texts.  What is special about it is that the sorting is uniquely reversible.
  • This property and additionally its inner structure are the basis for compressing the BWT result by means of known and efficient methods such as  $\text{Huffman}$  (a form of entropy coding) and  $\text{run–length coding}$.


Application scenario for the Burrows-Wheeler transformation


As an example for embedding the  $\text{Burrows–Wheeler Transformation}$  (BWT) into a chain of source coding methods, we choose a structure proposed in  [Abel03][5].  We use the same text example  $\text{ANNAS_ANANAS}$  as in the last section.  The corresponding strings after each block are also given in the graphic.

Scheme for Burrows-Wheeler data compression
  • The  $\rm BWT$  result is:     $\text{_NSNNAANAAAS}$.  BWT has not changed anything about the text length  $N = 12$  but there are now four characters that are identical to their predecessors  (highlighted in red in the graphic).  In the original text, this was only the case once.
  • In the next block  $\rm MTF$  ("Move–To–Front") , each input character from the set  $\{$ $\rm A$,  $\rm N$,  $\rm S$,  _$\}$  becomes an index  $I ∈ \{0, 1, 2, 3\}$.  However,  this is not a simple mapping, but an algorithm given in  "Exercise 1.13Z".
  • For our example, the MTF output sequence is  $323303011002$, also with length  $N = 12$.  The four zeros in the MTF sequence  (also in red font in the diagram)  indicate that at each of these positions the BWT character is the same as its predecessor.
  • In large ASCII files, the frequency of the  $0$  may well be more than  $50\%$,  while the other  $255$  indices occur only rarely.  Run-length coding  $\rm (RCL)$  is an excellent way to compress such a text structure.
  • The block  $\rm RCL0$  in the above coding chain denotes a special  $\text{run-length coding}$  for zeros.  The gray shading of the zeros indicates that a long zero sequence has been masked by a specific bit sequence   (shorter than the zero sequence).
  • The entropy encoder  $\rm (EC$, for example "Huffman"$)$  provides further compression.  BWT  and  MTF  only have the task in the coding chain of increasing the efficiency of  "RLC0"  and  "EC"  through character preprocessing.  The output file is again binary.


Exercises for the chapter


Exercise 2.10: Shannon-Fano Coding

Exercise 2.11: Arithmetic Coding

Exercise 2.11Z: Arithmetic Coding once again

Exercise 2.12: Run–Length Coding and Run–Length Limited Coding

Exercise 2.13: Inverse Burrows-Wheeler Transformation

Exercise 2.13Z: Combination of BWT and MTF

References

  1. Bodden, E.; Clasen, M.; Kneis, J.:  Algebraische Kodierung.  Algebraic Coding. Proseminar, Chair of Computer Science IV, RWTH Aachen University, 2002.
  2. Mecking, M.: Information Theory.  Lecture manuscript, Chair of Communications Engineering, Technical University of Munich, 2009.
  3. Burrows, M.; Wheeler, D.J.:  A Block-sorting Lossless Data Compression Algorithm.  Technical Report. Digital Equipment Corp. Communications, Palo Alto, 1994.
  4. Abel, J.:  Grundlagen des Burrows-Wheeler-Kompressionsalgorithmus.  In: Informatik Forschung & Entwicklung, no. 2, vol. 18, S. 80-87, Jan. 2004
  5. Abel, J.:  Verlustlose Datenkompression auf Grundlage der Burrows-Wheeler-Transformation. 
    In: PIK - Praxis der Informationsverarbeitung und Kommunikation, no. 3, vol. 26, pp. 140-144, Sept. 2003.