Re: Perl 'Expert' Quiz of the Week #25 (acrostic puzzle generator)

"John J. Trammell" <[email protected]> Wed, 6 Oct 2004 12:28:00 -0500
Newsgroups gmane.comp.lang.perl.qotw.discuss
Message-ID <[email protected]>
On Wed, Oct 06, 2004 at 12:09:43PM -0400, Ronald J Kimball wrote:
> On Wed, Oct 06, 2004 at 11:22:29AM -0400, Mark Jason Dominus wrote:
> 
> > Here's a very small example:
> > 
> >      __  __  __       __  __  __  __  __  __  __  __       __  __
> >      1d  2f  3g       4d  5b  6c  7g  8a  9f  10e 11g      12d 13a
> > 
> >      __  __  __  __  __      __  __  __  __  __  __      __  __  __ 
> >      14f 15a 16e 17c 18b     19b 20a 21e 20f 23a 24e     25g 26c 27d
> > 
> >      __  __  __  __       __  __  __  __      __  __       __  __  __
> >      28f 29g 30b 31a      32  33b 34L 35e     36f 37e      38a 39d 40c
> 
> That should be 20f, 22b, 32c, and 34c, I believe.
> 

In a similar vein, the specification requires in part:

>>>> 4. The letters in the output can be rearranged to form the
>>>>    quotation, with no letters left over.

Letter #24 in the example is contained in both answers (c) and (e), so
it appears that answer letter duplication is OK, but all answer letters
must be represented in the quotation text.

It appears to me that a consequence of this is that if the author name
or source includes letters not in the quotation, the problem is
insoluble.  Is this correct?