Consider a source with 5 possible messages: a1, a2, a3, as, as. (a) What is the maximum possible entropy for a source of this type (that is, a source with 5 possible messages)? (b) Suppose this source generates its message according to the following probability distri- bution: P(a)= 0.24, P(a2) = 0.22, P(a3) = 0.20, P(as) = 0.18, P(as) = 0.16. How many bits would a Huffman code assign to message a3?

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter10: Sequences, Series, And Probability
Section10.8: Probability
Problem 31E
icon
Related questions
Question

Need help solving this practice problem. Will rate, thank you in advance. 

Consider a source with 5 possible messages: a1, a2, a3, a4, a5.
(a) What is the maximum possible entropy for a source of this type (that is, a source with
5 possible messages)?
(b) Suppose this source generates its message according to the following probability distri-
bution:
P(a)= 0.24, P(a2) = 0.22, P(a3) = 0.20, P(as) = 0.18, P(as) = 0.16.
How many bits would a Huffman code assign to message a3?
Transcribed Image Text:Consider a source with 5 possible messages: a1, a2, a3, a4, a5. (a) What is the maximum possible entropy for a source of this type (that is, a source with 5 possible messages)? (b) Suppose this source generates its message according to the following probability distri- bution: P(a)= 0.24, P(a2) = 0.22, P(a3) = 0.20, P(as) = 0.18, P(as) = 0.16. How many bits would a Huffman code assign to message a3?
Expert Solution
steps

Step by step

Solved in 4 steps with 65 images

Blurred answer
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Elements Of Modern Algebra
Elements Of Modern Algebra
Algebra
ISBN:
9781285463230
Author:
Gilbert, Linda, Jimmie
Publisher:
Cengage Learning,
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,