Huffman Algorithm and Markov
Sources
ETE/EEE 422
Saif Ahmed (SfA)
Huffman Algorithm
Huffman ignored the Kraft inequality, and looked at the binary code tree to
establish properties that an optimal prefix-free code should have. After
discovering a few simple properties, he realized that they led to a simple
recursive procedure for constructing an optimal code.
Leading to one of the most efficient forms of discrete coding, yet to be
used
Huffman Algorithm
• Read a set of messages, and calculate a probability for each symbol
• Generate a tree diagram recursively for symbols such that p(A) = x and p(A’) = 1-x
• Continue until all of the symbols are mapped in the tree
• Encode the tree
Markov Sources
• A memory based coding system that works with the aid of state transitions
• Advantage:
• less complicated circuit system
• Keep the memory of the previous symbol, if required