Question: In this project, you need to implement both code compression and decompression using C , C + + or Java. Assume that the dictionary can
In this project, you need to implement both code compression and decompression using C
C or Java. Assume that the dictionary can have sixteen entries index bits and the sixteen
entries are selected based on frequency the most frequent instruction should have index If two
entries have the same frequency, priority is given to the one that appears first in the original program
order. The original code consists of bit binaries. You are allowed to use only eight possible formats for
compression as outlined below Note that if one entry bit binary can be compressed in more than
one way, choose the most beneficial one ie the one that provides the shortest compressed pattern. If two
formats produce exactly the same compression, choose the one that appears earlier in the following listing
eg runlength encoding appears earlier than direct matching If a bit binary can be compressed
using multiple dictionary entries by any specific compression format eg bitmaskbased compression
please use the dictionary entry with the smallest index value. Please count the starting location o
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
