Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Challenge: 8 Letters, Most Words (Update2:Then again :)

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


in reply to Re: Challenge: 8 Letters, Most Words (Update2:Then again :)
in thread Challenge: 8 Letters, Most Words

Hi BrowserUK,

while I'm looking at the solutions presented here, I tried to understand your solution knowing that you have often a different and interesting view of looking at the problem. I did a litte test case dict:

ffffffff fffffffa afffffff bfffffff fffffffb ffffbfff

With this dict the letters to choose to get the most matching words is 'bfffffff'. You algorithm prints something different. What have I missed?

Best regards
McA


Comment on Re^2: Challenge: 8 Letters, Most Words (Update2:Then again :)
Download Code
Re^3: Challenge: 8 Letters, Most Words (Update2:Then again :)
by BrowserUk (Pope) on Oct 04, 2013 at 20:00 UTC
    you have often a different and interesting view of looking at the problem.

    How many dictionary words contain 7 repeats of the same letter? :)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      I cite from the description:

      ...link to dictionary you used...

      :-))

      BrowserUk,
      You don't need 7 repeats to exhibit the problem:
      aabc aacb aabc aabc abca eefg efge eegf eegf efeg aabcxy eefglm
      Your code produces: a b c e f g m x: 0

      Cheers - L~R

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-08-31 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls