1. no Permutation Function here!
- Posted by mistertrik at hotmail.com Nov 13, 2002
- 375 views
This is a multi-part message in MIME format. ------=_NextPart_000_7fab_425d_1741 couple of files here: Main.ex is the main demonstrator of my code, it'll contain all the info you want. Mix.ex is an early attempt at permutations. Data.e (i had to remove it to get to topica... if you want it email me and I'll email direct. it's about 200k) is a large include file that only contains one constant, the list of all the words. I originally had all the words in a file, but it took about a minute to load them all and sort them all into my program, so I wrote a simple program: Datbuild.ex. It loads all the words from a text file of the form: aba\nabacus\nabalone\n (ie words with \n inbetween) sorts them by length, and sticks them in data.e. I recommend doing this, rather than leaving the dictionary in a text file. (also, unscrupulous types may remove all the words from it, leaving the computer rather confused.) Once loaded, I'm guessing it'd be useful for checking validity of words too. and finally: dict.txt. I removed this from the zip file, because it's basically data.e with all the formatting removed, and it took up space. hope that helps! On my PC it's computed in a blink, so you shouldn't have any trouble. if you do, just email me. ===================================================== .______<-------------------\__ / _____<--------------------__|=== ||_ <-------------------/ \__| Mr Trick ------=_NextPart_000_7fab_425d_1741 Content-Type: application/zip; name="Word find Program.zip"