Comment on A ridiculous patent for arbitrary compressionComments−DarkShikari14yActually, it is possible to write a compression program that can compress any file, even random data, by one byte: http://cs.fit.edu/~mmahoney/compression/barf.html(See if you can spot the evil trick.)−bane14yMy favorite is a lossy compression method that results in any file(regardless of entropy) compressing down to 1 byte.Just throw out the rest of the file after the first byte.−amalcon14yI was about to reply to this with "My favorite fake compression scheme is..."...but it turned out to be this.−StavrosK14yHaha, that's clever! It works, too.−inportb14yVery nice ;D
Comments
Actually, it is possible to write a compression program that can compress any file, even random data, by one byte: http://cs.fit.edu/~mmahoney/compression/barf.html
(See if you can spot the evil trick.)
My favorite is a lossy compression method that results in any file(regardless of entropy) compressing down to 1 byte.
Just throw out the rest of the file after the first byte.
I was about to reply to this with "My favorite fake compression scheme is..."
...but it turned out to be this.
Haha, that's clever! It works, too.
Very nice ;D