Question: (20 Points) A random variable X takes on four values with probabilities 0.5, 0.2, 0.15, and 0.15. a) (5 Points) What are the lengths of

(20 Points) A random variable X takes on four values with probabilities 0.5, 0.2, 0.15, and 0.15. a) (5 Points) What are the lengths of the binary Huffman codewords for X? b) (5 Points) What are the lengths of the binary Shannon codewords for X? c) (10 Points) For what values of integer D does the expected Shannon codeword length with a D-ary alphabet equals the expected Huffman codeword length with a D-ary alphabet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
