Question 1: An image is coded with 3 bits per pixel and the probabilities associated with each of the grey levels are P = [0.2 0.15 0.13 0.13 0.12 0.10 0.09 0.08].
(i) Using Huffman coding, derive the variable length codes for representing this image.
(ii) Compute the expected length of the coding scheme from (i) and the corresponding compression ratio.
Hi guys. I have spent nearly two hours poring over all the research results that I could get from Google but I'm still unable to find a solution for the question mentioned above.
Can you guys help me or give me some hints of how to solve this question please? Thanks in advance!