4 ms·
I think anyone would agree that if you sent me an uncompressed file of size 1000 bytes and I sent you a decompressor of size 400 bytes and a compressed file of
by sp332 14y ago
I think anyone would agree that if you sent me an uncompressed file of size 1000 bytes and I sent you a decompressor of size 400 bytes and a compressed file of size 599 bytes, I would have met the challenge in spite of the fact that these two files will take up more disk space than the original file.
I don't agree, since the compressor can be tuned to the data you could just move some of the data into the "decompressor" and end up with an arbitrarily small "compressed" file.
- reitzensteinm 14y agoI agree with this. The key question is whether any additional information is stored in the file name, lengths, number of files, etc. If you could hold 400 bytes of executable code in memory without any additional information, feed it 599 bytes of memory and it outputs 1000 bytes - that's compression. Anything else is just an abstraction around this. His solution does not work because he is storing extra information in the lengths of the files, i.e., where to split the files and write a "5" byte. Preserving this in memory would require extra storage.
- sp332 14y agoThis has been done! You can use the BARF utility to compress any file by at least one byte... assuming your filesystem allows filenames long enough to handle the encoding :) http://cs.fit.edu/~mmahoney/compression/barf.html http://cs.fit.edu/~mmahoney/compression/barf.html
- deleted 14y ago[deleted]
- kristopher 14y agoThis. Reading to the end, I was left with the impression that a better test would have the contestant compress 3 different data files with only one decompressor; on top of which would show a similar level effectiveness for each.
- raldi 14y agoSo what? The challenge was for the total size of decompressor + compressed file to be less than the original file.
- deleted 14y ago[deleted]
- deleted 14y ago[deleted]
- anonymouz 14y agoRead again: The sum total of the file sizes of the "decompressor" and "compressed file" had to be less than the original file. So moving data into the decompressor would do nothing. He did "win" on a technicality: The challenge did not count the size of the filesystem metadata towards the sum, so he hid information there. Also tuning the decompressor to the specific data-set was entirely allowed, even intended. Otherwise it would be obvious that the challenge is impossible, in this way it depends on a sufficiently random data set.
- sp332 14y agoI'm responding specifically to the part that I quoted, which would have allowed the compressor + compressed data to be larger than the original data.
- raldi 14y agoThe part you quoted doesn't say that. Regardless, it boils down to this: Do you feel the rules of the challenge forbid shifting an arbitrary amount of information from the compressed file into the decompressor?
- loumf 14y agoShifting from the compressed file to the decompressor is totally allowed. What is not is shifting it to the filesystem. For example, he could have named the decompressor file with the first 512 bytes of data and then the decompressor concatenates the filename with the rest of the data. However the filesystem is still storing more data than it was before.
- anonymouz 14y agoThe part you quoted says that decompressor + compressed data must be smaller than the original data. You can make the compressor arbitrarily large, but it will not allow you to "cheat" in the way you stated (by moving data into the decompressor), because you'd also have to increase the decompressor size for that.