home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu
- From: dougmc@ccwf.cc.utexas.edu (Doug McLaren)
- Newsgroups: comp.compression
- Subject: Re: Q: How well do random files crunch? A: Not very.
- Message-ID: <83939@ut-emx.uucp>
- Date: 19 Nov 92 07:50:53 GMT
- References: <1992Nov13.135437.19044@decuac.dec.com>
- Sender: news@ut-emx.uucp
- Organization: Doug's House of Disco
- Lines: 30
-
- In article <1992Nov13.135437.19044@decuac.dec.com> bell@ufp.enet.dec.com () writes:
-
- >Ok, let's talk about random files. Say I produce a file filled with
- >random bytes, based on a fairly equal-distribution function.
-
- Well, the way I understand it, if your file is completely random, you
- will not be able to compress it at all.
-
- Basically, entropy must always increase. A random file already has the maximum
- entropy for a file of that length, so you can't compress it. (compression
- increases entropy while decreasing (or increasing -- sometimes a compression
- scheme will increase the size of the file, but that's irrelavent here) the
- size.
-
- Now, if your file isn't completely random, then it's certainly possible
- that it could be compressed
-
- Of course, it's possible to have a 100,000 byte file thats completely
- '0's come up randomly, but the odds against this are so astronomical ...
- (the infinite number of monkeys idea is nice, but has nothing to do with the
- real world. One million monkeys typing 100 wps for the total age of the
- universe aren't likely to come up with even ONE work of Shakespear.)
-
- But I digress ...
- --
- ----------------------- \ Zippy says:
- Doug McLaren, \ First, I'm going to give you all the ANSWERS to
- DemoN on IRC \ today's test.. So just plug in your SONY WALKMANS
- dougmc@ccwf.cc.utexas.edu \ and relax!!
- -------------------------- /
-