Question: The integers could represent the results of the "quantization" step in a JPEG image compression, and the number of occurrences of each in the image. (Note that these are instances of occurrence rather than percent frequencies; this simply means that the Huffman tree will not end up with the root value equal to 100.)
Construct the Huffman tree and find the Huffman codes for the following integers and occurrences
Integer 82 664 327 349 423 389
Occurences 416 97 212 509 446 74