home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compression
- Path: sparky!uunet!uunet.ca!frumious!pat
- From: pat@frumious.uucp (Patrick Smith)
- Subject: Re: Fixed point of the lzw compression alg.
- Message-ID: <BzDFFD.Gs@frumious.uucp>
- Date: Wed, 16 Dec 1992 21:23:36 GMT
- Reply-To: uunet.ca!frumious!pat
- References: <1438@chorus.chorus.fr> <1992Dec16.143732.22918@news.uiowa.edu>
- Organization: None
- Lines: 50
-
- jones@pyrite.cs.uiowa.edu (Douglas W. Jones) writes:
- |From article <1438@chorus.chorus.fr>, by jloup@chorus.fr (Jean-loup Gailly):
- |Of course, it might be fun to find a fixed point for Compress that included
- |the magic cookie.
-
-
- I suspect (but don't know for sure) that there isn't one.
-
- I tried this:
-
- touch ./00
- compress < 00 > 01
- compress < 01 > 02
- ...
-
- hoping that eventually the sequence would converge on a fixed point.
- Here's how far the sequence got before I stopped it:
-
- % l 0*
- -rw-r--r-- 1 pat pat 0 Dec 16 16:04 00
- -rw-r--r-- 1 pat pat 3 Dec 16 16:04 01
- -rw-r--r-- 1 pat pat 7 Dec 16 16:04 02
- -rw-r--r-- 1 pat pat 11 Dec 16 16:04 03
- -rw-r--r-- 1 pat pat 16 Dec 16 16:04 04
- -rw-r--r-- 1 pat pat 21 Dec 16 16:04 05
- -rw-r--r-- 1 pat pat 27 Dec 16 16:05 06
- -rw-r--r-- 1 pat pat 34 Dec 16 16:05 07
- -rw-r--r-- 1 pat pat 41 Dec 16 16:05 08
- -rw-r--r-- 1 pat pat 50 Dec 16 16:05 09
- % l 8*
- -rw-r--r-- 1 pat pat 631301 Dec 16 16:09 80
- -rw-r--r-- 1 pat pat 741560 Dec 16 16:09 81
- -rw-r--r-- 1 pat pat 870115 Dec 16 16:09 82
- -rw-r--r-- 1 pat pat 1019601 Dec 16 16:10 83
- -rw-r--r-- 1 pat pat 1195495 Dec 16 16:10 84
- -rw-r--r-- 1 pat pat 1399221 Dec 16 16:11 85
- -rw-r--r-- 1 pat pat 1639031 Dec 16 16:12 86
- -rw-r--r-- 1 pat pat 1919584 Dec 16 16:12 87
- % cmp 86 87
- 86 87 differ: char 1215976, line 8547
-
- Of course, this doesn't _prove_ anything; it's entirely possible
- that one could generate a fixed point by taking one of these files
- and modifying the last few bytes (or can someone prove this isn't
- possible?).
-
- --
- Patrick Smith
- uunet.ca!frumious!pat
- pat%frumious.uucp@uunet.ca
-