Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Challenge: 8 Letters, Most Words

by McA (Curate)
on Oct 04, 2013 at 20:50 UTC ( #1056931=note: print w/ replies, xml ) Need Help??


in reply to Re: Challenge: 8 Letters, Most Words
in thread Challenge: 8 Letters, Most Words

Hi,

you print a list, but what is the 8 character sequence which solves the problem? Is it the first one?

McA


Comment on Re^2: Challenge: 8 Letters, Most Words
Re^3: Challenge: 8 Letters, Most Words
by TJPride (Pilgrim) on Oct 04, 2013 at 22:09 UTC
    Well yes, of course.

      Hi,

      I'm asking because the output of your program does IMHO not give a hint of the right solution for the following dict:

      aa aab baa aba ccc cdc dcc ccd rs sr qt tq uv vu wx xw

      What do you think?

      Best regards
      McA

        My method is to, for each word, count the number of words that can be made using its letters. I then choose the word with the highest count. I suppose the best combination could be something else entirely, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-09-21 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (175 votes), past polls