2. This problem is on the instantaneous Code and Huffman code.
(n) For the 6- symbol source with probabilities 0.35, 0.25, 0.2, 0.1, 0.05 and 0.05, give Huffman Ternary Code and its Average length.(show Table) (6)
(b) Which of the following code(s) is (are) acceptable for the existence of Instantaneous Code, given the code alphabet (0, 1, 2, 31 ?
Also decide which code is the best among the code acceptable. (6) Code 2 Code 3 Word length Code 1 1 2 2 1 2 1 2 4 3 2 2 6 4 4 3 0 5 1 1 0
1 Answer