Question: pleasw i need help with this Given an input data stream as follows, please finish the following questions: AAAAACAABBAACCAAAEEBDDDAAB (a) Calculate the frequencies of each
Given an input data stream as follows, please finish the following questions: AAAAACAABBAACCAAAEEBDDDAAB (a) Calculate the frequencies of each symbol in the above data stream. (b) Use Huffman coding to encode the above data. Please draw its binary tree. (c) Based on the tree you have drawn, write down the code of each symbol. (d) Calculate the data size before encoding. (e)Calculate the data size after encoding. (f)Based on the size you have calculated, calculate the compression ratio
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
