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

Re^8: Words in Words

by BrowserUk (Pope)
on Oct 01, 2011 at 14:55 UTC ( #929038=note: print w/ replies, xml ) Need Help??


in reply to Re^7: Words in Words
in thread Words in Words

your output contains the word indistinguishableness

Does your word list contain the "word": indistinguishablenessess?


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.


Comment on Re^8: Words in Words
Re^9: Words in Words
by choroba (Abbot) on Oct 01, 2011 at 19:09 UTC
    The "word" is in words.txt. But a strange thing - on the other machine I'm working with now, the word is not in the output of your script.

      The last version of my script with the sort by length optimisation is broken. It starts each search into the big string in slightly the wrong places. Hence why it doesn't find as many words as it should. It could be fixed, but it will never be as quick as your approach.

      More intriguing is if your list contains 'indistinguishablenessess', & 'indistinguishableness', why doesn't yours output the latter? I didn't expend any time on it, but I couldn't see how it could miss.


      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.
        Oh sorry, I missed the last "-ess". The longer words is not in the list. Also, I ran a bit different versions of your code on the two machines, hence the different behaviour. Anyway, it was a funny challenge :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-08-30 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls