Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) Compute the entropy of the source whose symbol probabilities are defined as above in the table. b) Construct a Huffman-code for the source symbols

image text in transcribed

a) Compute the entropy of the source whose symbol probabilities are defined as above in the table.

b) Construct a Huffman-code for the source symbols rk and explain the differences between this code and code 2 from the table.

c) Construct the best B1code for this distribution.

d) Construct the 2-bit binary shift code.

e) Divide the symbols into two blocks of four and construct the best Huffman shift code.

f) Compute the average word lenghts for each code and compare them to the entropy from part a).

P(rk) Code1 Code 2 2(k) 0.25 01010111 0.4710000000 0.25 11000100 87 -. 01 87 r128 = 128 s6 186 255 255 rk fork 87, 128, 186, 255 001 0 P(rk) Code1 Code 2 2(k) 0.25 01010111 0.4710000000 0.25 11000100 87 -. 01 87 r128 = 128 s6 186 255 255 rk fork 87, 128, 186, 255 001 0

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

Step: 3

blur-text-image

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago