home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / sci / math / 13291 < prev    next >
Encoding:
Internet Message Format  |  1992-10-15  |  1007 b 

  1. Path: sparky!uunet!ogicse!uwm.edu!linac!att!princeton!fish.Princeton.EDU!lhjensen
  2. From: lhjensen@fish.Princeton.EDU (Leif Jensen)
  3. Newsgroups: sci.math
  4. Subject: Re: Another chocolate fish problem.
  5. Message-ID: <1992Oct16.054350.25733@Princeton.EDU>
  6. Date: 16 Oct 92 05:43:50 GMT
  7. Article-I.D.: Princeto.1992Oct16.054350.25733
  8. References: <Bw3E8p.FEn@cantua.canterbury.ac.nz> <1992Oct16.053009.24883@Princeton.EDU>
  9. Sender: news@Princeton.EDU (USENET News System)
  10. Organization: Princeton University
  11. Lines: 12
  12. Originator: news@nimaster
  13. Nntp-Posting-Host: fish.princeton.edu
  14.  
  15. In article <1992Oct16.053009.24883@Princeton.EDU> lhjensen@fish.Princeton.EDU (Leif Jensen) writes:
  16. >1) Remove the leftmost group of n 1's followed by a 2 from the input
  17. >partition and output n+2.
  18. >2) Goto 1.
  19. >3) At this point only n 1's remain in the input.  Output n+2.
  20.  
  21. Oops, Infinite loop!  That is inexcusable.  2) should read "If there are
  22. any 2's left in the input partition, goto 1".
  23.  
  24. --
  25. Leif Jensen
  26. lhjensen@phoenix.princeton.edu
  27.