News Focus
News Focus
Followers 44
Posts 2488
Boards Moderated 0
Alias Born 03/22/2001

Re: Bob Zumbrunnen post# 17468

Friday, 10/11/2002 2:44:44 PM

Friday, October 11, 2002 2:44:44 PM

Post# of 222452
The word list is 109,000 words and occupies 1,154,336 bytes.

In a .BAT file, it unscrambles ten words in four seconds. (Wristwatch timing) On my system, it takes similar times to read the dictionary file. (The file gets read from disk cache.)

With a cursory look for optimization opportunities, I think I could use the more efficient library function memcmp() and thus avoid coding a loop to do the comparing.

If you think that an inaccuracy has slipped into your algorithm, perhaps looking at unscrambling words with repeating letters may uncover it. Example: IIIISSSSPPM.

Cheers, PW.




Discover What Traders Are Watching

Explore small cap ideas before they hit the headlines.

Join Today