After working on mdc for 2 weeks, now I have completed it. Using general function for compression and decompression. After n number of iterations, the code length has been reduced to 136 written lines. I am trying to reduce it further more. The whole program is modular, and divided into sub-programs and codes.
I have created a global function for compression, which is capable of doing the compression and encryption from 1 to 7. It can also encrypt the 8 bit data files.
I have implemented a new filter technique for decompressing, which is quite reliable, and is usable for any bit decompression.
I tried to reduce the code as much as I could, till now. The code-length of compression function is now 22 lines., and that of decompression is 29 lines.
I am not posting the code here, but if anyone wants it for study or modification. He/she may contact me on my email id.
utkarshdwivedi3394@gmail.com