1.1 Huffman Code Construction
Huffman Coding Algorithm is a bottom-up approach.
ALGORITHM
The steps of Huffman coding algorithm are given below[9]:
1. Create a series of source reduction: combine the two lowest probability symbol into a single symbol; repeated until a
reduced source with two symbols is reached.
2. Code each reduced symbol: start with the smallest source and working back to the original source;
(a) Creates the optimal code for a set of symbols; the
symbol is coded one at a time;
(b) The code itself (or block code) –each code is mapped
Aarti et al., International Journal of Advanced Research in Computer Science and Software Engineering 3(5),
May - 2013, pp. 615-619
© 2013, IJARCSSE All Rights Reserved Page | 616
into a fixed sequence of code symbols
(c) Create the optimal codes for a set of symbols and
probabilities
(d) Coding and decoding is accomplished in a simple
lookup table
(e) Block code (because source symbol is mapped into a
sequence of codes)
(f) Instantaneous, unique decodable
Huffman codes are optimal prefix codes generated from a set of probabilities by a particular algorithm i.e. the Huffman
Coding Algorithm.