Integral University, Lucknow: Department of Computer Application
Integral University, Lucknow: Department of Computer Application
Integral University, Lucknow: Department of Computer Application
Q1. A text string contains total seven distinct symbols. The symbols and their frequency is given
below.
Symbol Frequency
A 20
B 18
C 16
D 15
E 15
F 10
G 4
H 2
Generate the code for each symbol using Shannon-Fano algorithm and also calculate the Entropy
of the code.
Q3. By using the given table, show the steps for coding the word “FRANCE” using arithmetic
coding scheme. For the generated code, show the steps of decoding of code.
Y E R G N M A F C
.1 .2 .1 .1 .1 .1 .1 .1 .1