Construct a Huffman code for the letters of the English
Chapter , Problem 27E(choose chapter or problem)
Problem 27E
Construct a Huffman code for the letters of the English alphabet where the frequencies of letters in typical English text are as shown in this table.
Letter |
Frequency |
Letter |
Frequency |
A |
0.0817 |
N |
0.0662 |
B |
0.0145 |
O |
0.0781 |
C |
0.0248 |
P |
0.0156 |
D |
0.0431 |
Q |
0.0009 |
E |
0.1232 |
R |
0.0572 |
F |
0.0209 |
S |
0.0628 |
G |
0.0182 |
T |
0.0905 |
H |
0.0668 |
U |
0.0304 |
1 |
0.0689 |
V |
0.0102 |
J |
0.0010 |
w |
0.0264 |
K |
0.0080 |
X |
0.0015 |
L |
0.0397 |
Y |
0.0211 |
M |
0.0277 |
Z |
0.0005 |
Suppose that m is a positive integer with m ≥ 2. An m-ary Huffman code for a set of N symbols can be constructed analogously to the construction of a binary Huffman code. At the initial step, ((N − 1) mod (m − 1)) + 1 trees consisting of a single vertex with least weights are combined into a rooted tree with these vertices as leaves. At each subsequent step, the m trees of least weight are combined into an m-ary tree.
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer