http://www.perlmonks.org?node_id=1056924


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

Replies are listed 'Best First'.
Re^3: Challenge: 8 Letters, Most Words (Update2:Then again :)
by BrowserUk (Patriarch) 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.
      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

      I cite from the description:

      ...link to dictionary you used...

      :-))