Question: Please show all steps! Consider a file containing the following text data: AAABBBAAB 1. Trace the LZW encoding process for the file in the same
Please show all steps! Consider a file containing the following text data: AAABBBAAB 1. Trace the LZW encoding process for the file in the same way done in class. Each "step" should produce a single codeword. Assume that the extended ASClIl set will use codewords 0-255. For each step in the encoding, be sure to show all of the information. Note: The ASCII value for 'A' is 65. output code (decimal) representing Codeword (decimal) representing 2. What's the size of your original file (saved using extended ASCII codes, Bbits/code). If each code in LZW uses 12bits, what's the size of the compressed file? 3. Assume that you have two variations of LZW, one that uses 12bit code words and one that uses 16bit codewords. Explain how the performances of these variations compare and when (if at all) each would be preferred
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
