Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Huffman coding reduces the average number of bits / message by using shorter codewords for more frequently - occurring messages, and longer codewords for less

Huffman coding reduces the average number of bits/message by using shorter codewords for
more frequently-occurring messages, and longer codewords for less frequently-occurring messages.
In this assignment you will apply probability and information theory to data compression.
Assume a source sends five messages, selected independently of each other, with the following
probabilities:
P(M1)=0.5
P(M2)=0.2
P(M3)=0.1
P(M4)=0.1
P(M5)=0.1
Answer these questions and show all of your work:
What is the information content of message M1, in bits?
What is the information content of message M2, in bits?
What is the information content of message M3, in bits?
What is the information content of message M4, in bits?
What is the information content of message M5, in bits?
What is the average number of information bits per message (entropy of the source)?
How many codebits per message are required when encoding each message using the shortest-
possible fixed-length binary code?
What is the average number of codebits per message resulting from using a Huffman code
to assign one variable-length codeword per message?
What is the average number of codebits per message resulting from using a Huffman code
to assign one variable-length codeword per message pair?
note from student: please fully sketch the Huffman trees for 8 & 9
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Solve Prob. 1075 using Mohrs circle.

Answered: 1 week ago

Question

What is the significance of employee selection?

Answered: 1 week ago

Question

8. Describe the steps in the development planning process.

Answered: 1 week ago