Documente Academic
Documente Profesional
Documente Cultură
Abstract - In t h i s paper, we propose s o m e decoding as well as the prefix condition for instantaneous
reversible variable length codes (RVLC's) which can foward decoding. The suffix condition is that each code word
be decoded instantaneously both in the forward and does not coincide with the suffixes of longer code words, while
backward directions a n d have high t r a n s m i s s i o n the prefis condition expresses that there is no coincidence with
efficiency. These codes can be used. for example, in
the backward reconstruction of video signals from
the prefixes of longer code words. For example, in decoding a
the data last received when some signal is l o s t conventional VLC, C i l , in Table 1 which satisfies only the
midway i n the t r a n s m i s s i o n . Schemes f o r a prefix condition, a bit stream 0100" (left t o right in the
'I------
symmetrical RVLC requiring only a single code table forward direction) cannot be decoded instantaneously in the
and for an asymmetrical RVLC having short a v e r a g e backward direction because the last two bits "00" might be
code length are introduced. They compare favorably either symbol "A" or the suffix of "D". The suffix condition
with other reversible codes such a s B 2 codes in is sufficient for instantaneous decoding i n the backward
several aspects. direction just a the prefix condition is in thc forward dircction.
In this paper, the basic steps for constructing a RVLC are
1. IhTKODI.:CTION proposed. Section 2 describes a RVLC composed entirely of
symmetrical code words, and Section 3 describes a RVLC
Variable length ccdes (VLC's) are of prime importance i n composed of asymmetrical code words. Section 4 compares
the efficient transmission o f digital signals with non-uniform the characteristics and average ctde lengths of these codes with
occurrence probability distributions. Compact codes such as the Huffman ccxle, the fixed length code and the B2 code.
the Huffman codes, [l], which have the highest efficiency and
shortest average code length, are most prevalent in practical
operation. However, there arc other VLC criteria than the
transmission efficiency that may be important in the
application environment, for esample, channel bit-error
resilience, 121, 131, masimum code word length limitation due
to hardware capacity, 141, etc.
correct decoding
Reversibility o f variable length codes that makes
instantaneous decoding possible both in the forward and -_-_-_-_-_-_-
backward directions is one such criterion. For example, in the wrong decoding
Dif-ferential Pulse Code Modulation (DPCM) coding used for (a) fonvard dccding only
data compression in video coding, a VLC is assigned to the X
differential signals. This scheme has a problem, however, i n error p i n t
that a single bit error on one differential signal in the channel
causes continuous errors in the reconstructed signals even if n o 0
other transmission bit error oxcurs. A backtracking scheme is pixel whose PCM
a promising solution for avoiding continuous errors. I t can value is transmitted
detect the erroneous signal, and precisely reconstruct the
(b) forward and backward decoding
following signals by sending the PCM value o f the last signal
and tracking backward from it provided that no more than one
Fig 1 Reconstruction of signals i n 13R:!vvI coding
signal is damaged by bit errors between the signals whose
PCM values are transmitted, (51, 161. Fig. 1 shows an
example of 1-D DPCM (transmission of more PCM values
makes backtracking possible also for 2-D DPCM). This Table 1 lluffman code and reversible vanable length codes (RVLC's)
scheme can provide error resilient transmission with little
overhead. Sym- h o b -
Another potential use of this code is in the random access bility (31 ClZ c13 cIJ cl5
Authorized licensed use limited to: Jaypee Institute of Technology. Downloaded on September 25, 2009 at 11:02 from IEEE Xplore. Restrictions apply.
___
IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 43, NO. 2/3/4, FEBRUARY/MARCH/APRIL 1995 159
( Eu(1-1
(a) when i s -
L
2
L
(h)when-
2
c k L
Authorized licensed use limited to: Jaypee Institute of Technology. Downloaded on September 25, 2009 at 11:02 from IEEE Xplore. Restrictions apply.
160 IEEE TRANSACTIONS O N COMMUNICATIONS, VOL. 43, NO. 2/3/4, FEBRUARY/MARCH/APRIL 1995
9pI
code words, the next probable code word is selected as the
seed word, and step (ii) is repeated.
In these steps, a node or a leaf that has already been checked l'or
0 the suffix condition is not exchanged by an equivalent
transform. The VLC C11 is converted to C14 by this method
as shown in Table 1. A RVLC (CIS)produced from C 14 has a
(c) reverse tree - 2 (d) reverse tree - 3 shorter average code length than C13.
101
Fig. 4 Conversion into asymmetncal RVLC Fig. 5 Minimiung coincident surfixes by equivalent transform
Authorized licensed use limited to: Jaypee Institute of Technology. Downloaded on September 25, 2009 at 11:02 from IEEE Xplore. Restrictions apply.
IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 43, NO. 2/3/4, FEBRUARY/MARCH/APRIL 1995 161
C2.l is a symmetrical RVLC generated from C?!. A code C?j S,,, = 2 Niun( i)
I- I
is XIasymmetrical RVLC directly produced from C ~ I while ,
C27 is another asymmetrical RVLC based on a non-reversible
- 2 ' m J2+l - 2 . (A. 5)
VLC (226 converted from by the equivalent transform and Note that for backward decoding only half of the nodes are
assigned to the code words at the bottom level as well as at
consideration of suffix conditions. In this example, the FLC
other levels, while all the nodes are assigned in usual forcvard-
( C y ) and the B2 code C (), have 20.3 % and 13.1 % longer
only cases for better transmission efficiency.
average length over the Huffman code (GI), while the
This leads to an inequality:
symmetrical RVLC ((224) and the asymmetrical RVLC ( C y )
are 13.0 % and 4.9 % longer respectively. In transmission z'nm-82 -2 < N ?imJ3Z+i-3 . (A. 6)
efficiency an asymmetrical RVLC is very advantageous and the Then:
equivalent transform is effective because i t provides 1.6 % imu.r-62 < log 2 ( N + 2 ) 5 imax-R2+ 1 (A. 7
improvement to get C27 from C25. = [log.( N
imm-E + 2) - 11 (A. 8)
where [ X I is the smallest integer greater than or equal to x .
.. = [lc>ggz(N+2) - 11 2 .
Lmax-B?, (A. 9)
level ACKNOWLED(;~IE~UT
The authors wish to express their deep appreciation to Dr.
i=l
Y. Umno, &rector of Laboratones, for his encouragement and
supporl.
REFERE"
i=2
D. Huffman. "A method for the construction of minimum redundancy
codes." in Proc. Inst. Radio Eng., vol. 40,pp. 1098-1101, Sept. 1952.
Y . Talushima M. Wada and H. Murakami, "VariableLength Code with
High Resynchronization Capability," the Journal of the Institute of
Television Engineers of Japan, vol. 43, NO. 8 (1989) pp. 844-846.
J. Maxted, J. P. Robinson, "Error Recovery for Variable Length Codes,"
I E E Trans. IT-3 1, 6, pp. 7'3.1801 (Xov.. 19885).
Fig. 6 Structure of B2 code
Authorized licensed use limited to: Jaypee Institute of Technology. Downloaded on September 25, 2009 at 11:02 from IEEE Xplore. Restrictions apply.
162 IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 43, NO. 2/3/4, FEBRUARY/MARCH/APRIL 1995
14) 11. blurakami, S. Matsumoto and 11. Yamamoto, "Algorithm lor 16) K. Matsui and 14. ,\chiha, Proceedings ol' the I980 National
(hnstruction of Variable Lcngth Code with Limited Maximum Word (_'onvention, IEICIi 1 ( M pp 5-73.
Length." IEX Trans., (:Obl-33, 10, pp. 1157-1 159 (Oct., 19%). 171 IWI' CLKI':3, Revised version ol Dralt Report ADICMTT: Digital
151 K. bl. Rose. "Enhancement of One-Ilimensional Variable-Length l'ransmission of Component-Coded Television Signal at 30-34 blbitis
DPCM Images Corrupted by Transmission Errors," IEEE Trans.. COICI- and 45 Mbitis, June 1989.
37.4, pp. 373-379 (flpr., 1989).
independent of pdf.
Authorized licensed use limited to: Jaypee Institute of Technology. Downloaded on September 25, 2009 at 11:02 from IEEE Xplore. Restrictions apply.