Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Complete the following proof that there cannot be a perfect data compression pro

ID: 3867218 • Letter: C

Question

Complete the following proof that there cannot be a perfect data compression program, i.e. a program that will reduce the length of any file it encounters. [Hint: a data compression program must be a 1-1 function. If two input files had the same compressed output, then the compressed output would not contain the information which one of the two input files it came from, and the decompressor then could not restore the input file.] Suppose we had such a program. It follows that when we apply this program to an input file of bit length n, it produces an output file of bit length at most n -1. There are 2" possible input files of length n, and at most 2" - 1 output files oflength at mostn-1.

Explanation / Answer

The Data Compression Program reduces the length of file it encounters.

Since it is stated that compressed output of two input is same and decompressor cannot restore the file.

Hence there is no perfect data compression program