home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!milton.u.washington.edu!liesche
- From: liesche@milton.u.washington.edu (Jochen Liesche)
- Newsgroups: comp.unix.questions
- Subject: Re: word cracker
- Date: 31 Dec 1992 06:41:43 GMT
- Organization: University of Washington, Seattle
- Lines: 27
- Message-ID: <1hu4n7INN2q4@shelley.u.washington.edu>
- References: <1992Dec30.235126.25601@mnemosyne.cs.du.edu>
- NNTP-Posting-Host: milton.u.washington.edu
-
- In article <1992Dec30.235126.25601@mnemosyne.cs.du.edu> sscrivan@nyx.cs.du.edu (steve scrivano) writes:
- >OK, gurus! Can anyone solve this problem?
- >I am looking for a fairly portable "C" program or script that will produce
- >every possible 4 letter or greater combination using the following
- >letters:
- >c e e f g h i i l l n n o p p r r r s s t t t u
- >Some of the letters appear more than once and therefore will increase the
- >possible number of combinations possible. I realize that the number of
- >combinations are incredible and will probably consume a great deal of
- >cpu time. My intentions are to find every possible word that 4 or more
- >of these letters can create. Each time a letter combination is created,
- >that combination would be compared with /usr/dict/words and if found
- >there it would be concatenated to a resulting word file.
- >The end result would be a word file created with all possible combinations.
- >You might say, sort of a crossword puzzle cracker. It would be ideal if
- >the program could accept input so all I had to do is enter in the letters
- >and it would the job from there although not mandatory.
- >Steve Scrivano
- >sscrivan@nyx.cs.du.edu
-
- You are missing the obvious solution. Write a program to extract all
- four-letter words(?) from the dictionary file. It would save you much time,
- and could be done with standard unix tools. And you would have the advantage
- of being able to modify the code to give you lists of all words of length (n)
- without re-compile or other silly problems. Time saved would multiply as
- n increased.
-
-