5 ms·
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.
by DarkShikari 15y ago
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 http://cs.fit.edu/~mmahoney/compression/barf.html
(See if you can spot the evil trick.)
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]
- bane 15y agoMy 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.
- amalcon 15y agoI was about to reply to this with "My favorite fake compression scheme is..." ...but it turned out to be this.
- deleted 15y ago[deleted]
- StavrosK 15y agoHaha, that's clever! It works, too.
- inportb 15y agoVery nice ;D