Question: A source with the alphabet {0, 1} emits the sequence '0 0 1 1 0 0 1 0 111000 1100 a) Based on this
A source with the alphabet {0, 1} emits the sequence '0 0 1 1 0 0 1 0 111000 1100 a) Based on this information, estimate the entropy of the source b) Assume that the encoder always appends a '0' to the left of an input string and encode the given sequence with an alternate run length encoding (a) Produce the RLE of the code in binary form and find the compression ratio. (b) Using Huffman code for the length of a run. For example, for '0000111000001111' the encoder should send 5 3 5 4 (without Huffman coding). However, with Huffman coding the encoder has to encode the sequence '5 3 5 4' using Huffman code and find the total compression ratio.
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
Lets break down each part of the question a To estimate the entropy of the source we need to calculate the probabilities of each symbol 0 and 1 based ... View full answer
Get step-by-step solutions from verified subject matter experts
