Suppose that in a long bit string the frequency of


Question: Suppose that in a long bit string the frequency of occurrence of a 0 bit is 0.9 and the frequency of a 1 bit is 0.1 and bits occur independently.

a) Construct a Huffman code for the four blocks of two bits, 00, 01, 10, and 11. What is the average number of bits required to encode a bit string using this code?

b) Construct a Huffman code for the eight blocks of three bits. What is the average number of bits required to encode a bit string using this code?

Solution Preview :

Prepared by a verified Expert
Mathematics: Suppose that in a long bit string the frequency of
Reference No:- TGS02372441

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)