Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^12: Challenge: 8 Letters, Most Words

by McA (Priest)
on Oct 05, 2013 at 13:38 UTC ( #1057030=note: print w/replies, xml ) Need Help??

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

Hi L~R,

you're right with all. It is the result of putting code together when it's too late. I let the program run with Devel::NYTProf on a small subset of the dict. The result is what I assumed: Answering the question if a combination of letters is able to produce a word is the most expensive task. I tried to make it faster with a C-like implementation in perl, but it was slower than the hash-approach.

The program is still running. Currently at iteration 879000. So, a long time to go... ;-)

Anyway, a very very intersting puzzle. And it was fun looking at the different approaches and seeing that some of the "old" monks took that challenge.

Best regards

  • Comment on Re^12: Challenge: 8 Letters, Most Words

Replies are listed 'Best First'.
Re^13: Challenge: 8 Letters, Most Words
by Anonymous Monk on Oct 05, 2013 at 17:14 UTC
    Re^12: Challenge: 8 Letters, Most Words

    ^12 just seems wrong somehow :)

        HAR HAR ;-)

        P.S.: Iterations done: 2634000. I'm not sure whether the next week is enough.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057030]
[karlgoethebier]: Listen to Glenn: https://www. v=SiiVK3rMxxg
[karlgoethebier]: marioroy: If you provide an email address i'll send you the full script of TNOG...
[karlgoethebier]: marioroy: Checkout also "Linear Expressions" by the same author...
[marioroy]: thanks karlgoethebier.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2017-03-24 10:18 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (298 votes). Check out past polls.