Presented By:: Huffman Coding
Presented By:: Huffman Coding
HUFFMAN CODING
Presented by:
Name: Nahim Ahmed Rimon
Student ID: 182002032
Section: DB
Letter Z K M C U D L E
Frequency 2 7 24 32 37 42 42 120
E 120 0 1
Here is the bits what we get from the Huffman
D 42 101 3
tree.
L 42 110 3
The total frequncey of the letter frequency table
U 37 100 3
is 918
C 32 1110 4
After using Huffman it compressed by 785
M 24 11111 5
which is mean 133 less bits.
K 7 111101 6
Z 2 111100 6
Advantage and Disadvantage of Huffman 6
Coding
Advantage
Efficient method of compressing data without losing information.
Maximum compression ratio assuming correct probabilities of
occurrence.
Disadvantages
Need two passes for encoder and decoder.
One to create the frequency distribution.
One to encode/decode the data.
Thank you
All very much for listening