Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Another word puzzle with too many permutations

by ramlight (Friar)
on Oct 15, 2013 at 17:52 UTC ( #1058334=note: print w/replies, xml ) Need Help??

in reply to Another word puzzle with too many permutations

I was doing something similar for a game that I was fooling around with at home. I wanted to find all of the possible 3-7 letter English words that could be made up from letters in a single 7-letter word. The algorithm that I used was:

  • get all possible permutations of letters
  • eliminate duplicates
  • look up each possible word in the dictionary to see if it was a real word
The key to efficient searches was to keep the list in alphabetic order, make a rough guess at the starting point (based on the first letter of the word), and perform a binary search to locate the word.
  • Comment on Re: Another word puzzle with too many permutations

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2022-08-08 07:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found