Write down 3 questions you are confused/interested about before doing the exercises:
Write down 3 questions you are confused/interested about after doing the exercises:
Give a short answer to the following conceptual questions:
Kraft Inequality:
carry out the check on Kraft inequality. explain the purpose of why we want to know there is a prefix code having those lengths. then read the solution and compare your answer.
Huffman coding:
Checking that Huffman code is achieving the optimal code length
application of the Huffman method, after reading 5.5-5.6
write a python code for Huffman coding and compress the following message
source alphabet: X = {0,1,2} probability mass distribution: p = (p_0, p_1, p_2) = (.2,.4,.4) sequence to encode: x1, …, x3 = 2 1 0