Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

by McA (Priest)
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

Replies are listed 'Best First'.
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.
      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: to dictionary you used...


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056924]
[Discipulus]: new $workstation is arrived: SSD 250, sata 1TB, 16G RAM, only i5 CPU.. seems a good one: guess what first user installation will be?
[Corion]: Discipulus: Notepad++, or Perl ;)
[marto]: xubuntu or lubuntu
[Corion]: :-D
[marto]: my desktop is a core2 duo, 120GB SSD, 4GB RAM, boots to (GUI) login in less than 10 seconds from cold start
[Discipulus]: mah, winbuntu 10...
[marto]: whent he boys start school I'll build myself as new machine, ryzen based
[Corion]: marto: That's cool! I think my (home) desktop spends 30 seconds in the BIOS...
[Corion]: marto: Heh - currently they seem promising, but I think I'll stay with nVidia+Intel for the time being, as I've been bitten too often by bad AMD drivers

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-07-27 08:52 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (407 votes). Check out past polls.