home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!linac!att!princeton!fish.Princeton.EDU!lhjensen
- From: lhjensen@fish.Princeton.EDU (Leif Jensen)
- Newsgroups: sci.math
- Subject: Re: Another chocolate fish problem.
- Message-ID: <1992Oct16.054350.25733@Princeton.EDU>
- Date: 16 Oct 92 05:43:50 GMT
- Article-I.D.: Princeto.1992Oct16.054350.25733
- References: <Bw3E8p.FEn@cantua.canterbury.ac.nz> <1992Oct16.053009.24883@Princeton.EDU>
- Sender: news@Princeton.EDU (USENET News System)
- Organization: Princeton University
- Lines: 12
- Originator: news@nimaster
- Nntp-Posting-Host: fish.princeton.edu
-
- In article <1992Oct16.053009.24883@Princeton.EDU> lhjensen@fish.Princeton.EDU (Leif Jensen) writes:
- >1) Remove the leftmost group of n 1's followed by a 2 from the input
- >partition and output n+2.
- >2) Goto 1.
- >3) At this point only n 1's remain in the input. Output n+2.
-
- Oops, Infinite loop! That is inexcusable. 2) should read "If there are
- any 2's left in the input partition, goto 1".
-
- --
- Leif Jensen
- lhjensen@phoenix.princeton.edu
-