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 4 bits) and the sixteen
entries are selected based on frequency (the most frequent instruction should have index 0000). 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 32-bit binaries. You are allowed to use only eight possible formats for
compression (as outlined below). Note that if one entry (32-bit binary) can be compressed in more than
one way, choose the most beneficial one i.e., 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
(e.g., run-length encoding appears earlier than direct matching). If a 32-bit binary can be compressed
using multiple dictionary entries by any specific compression format (e.g., bitmask-based 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!