Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Word Unscrambler
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
gitoxa




PostPosted: Mon May 12, 2008 2:13 am   Post subject: Word Unscrambler

Word Unscrambler.
You type in a word, the program will tell you all the other possible words creatable from the given letters.

Note:
I got the word list from the list that comes with BSD, complain at them for missing words. Razz
Does take slightly longer with longer words. The amount possiblies is equal to the factorial of the length of the word.
for example, an 8 letter word = 8*7*6*5*4*3*2*1 = 40320 possible letter arrangements Very Happy



WordUnscrambler.zip
 Description:

Download
 Filename:  WordUnscrambler.zip
 Filesize:  1.7 MB
 Downloaded:  5164 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
zylum




PostPosted: Mon May 12, 2008 4:57 am   Post subject: RE:Word Unscrambler

If you have a word list, then finding the possible words should not be equal to the factorial of the length of the word.. There are a couple of ways to make it way faster. 20 bits if you come up with one of those ways. (trying to encourage problem solving here Wink)
petree08




PostPosted: Mon May 12, 2008 9:25 am   Post subject: RE:Word Unscrambler

good start, are you using recursion.
gitoxa




PostPosted: Tue May 13, 2008 3:23 pm   Post subject: Re: RE:Word Unscrambler

petree08 @ Mon May 12, 2008 9:25 am wrote:
good start, are you using recursion.


No, all I know about recursion is the 15 seconds I paid attention to the lesson you guys had.

zylum @ Mon May 12, 2008 4:57 am wrote:
If you have a word list, then finding the possible words should not be equal to the factorial of the length of the word..


There are ways to eliminate possibilties before ever looking through the files for them. Such as, with the word "monkey" since there are no words that begin with "mk" or "km" then I could, at that point, automatically switch the those letters around.

I'll think of more when I don't have a six page chemistry paper due in a couple of days. lol
Tallguy




PostPosted: Thu May 15, 2008 7:34 am   Post subject: RE:Word Unscrambler

awsome, well done
andrew.




PostPosted: Tue Jun 03, 2008 9:41 pm   Post subject: RE:Word Unscrambler

Very cool. Bits to you!
gitoxa




PostPosted: Wed Jun 04, 2008 3:10 pm   Post subject: Re: Word Unscrambler

I've been working on it, yay attention span! and managed to speed it up a little bit.

Mostly just in the form of remaking the word library, and the way the program looks for words. This one contains a lot more words though(plurals, inflections, etc), so the difference in speeds isn't as large as I'd wished.

Source is in there, if you really want to see it... but it's hella bad convention-wise. Wink



New Version.rar
 Description:

Download
 Filename:  New Version.rar
 Filesize:  853.51 KB
 Downloaded:  491 Time(s)

Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: