Click here to Skip to main content
15,909,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Word game Pin
Rage12-Jul-07 0:17
professionalRage12-Jul-07 0:17 
GeneralRe: Word game Pin
Yustme12-Jul-07 0:34
Yustme12-Jul-07 0:34 
GeneralRe: Word game Pin
Rage12-Jul-07 1:16
professionalRage12-Jul-07 1:16 
GeneralRe: Word game Pin
Yustme12-Jul-07 1:24
Yustme12-Jul-07 1:24 
AnswerRe: Word game Pin
Hans Dietrich12-Jul-07 1:15
mentorHans Dietrich12-Jul-07 1:15 
GeneralRe: Word game Pin
Yustme12-Jul-07 1:28
Yustme12-Jul-07 1:28 
AnswerRe: Word game Pin
Yustme12-Jul-07 1:23
Yustme12-Jul-07 1:23 
AnswerRe: Word game Pin
cp987612-Jul-07 2:13
cp987612-Jul-07 2:13 
Why don't you do something clever like computing the hash of your letter combinations / words, but do it in a way that is independent of letter order. The hash value of the jumbled combination would match the hash value of the unjumbled word. Then you would only have to search the (hopefully) few words with matching hash values.

One way you could do this would be to use a standard hash routine, but sort the letters in the word into alphabetical order prior to hashing them.



Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

QuestionHow to get the Instance Handle from a Process ID? Pin
Billypon11-Jul-07 22:26
Billypon11-Jul-07 22:26 
AnswerRe: How to get the Instance Handle from a Process ID? [modified] Pin
Nibu babu thomas11-Jul-07 22:29
Nibu babu thomas11-Jul-07 22:29 
QuestionResources for STL Pin
vipin_nvk11-Jul-07 22:12
vipin_nvk11-Jul-07 22:12 
AnswerRe: Resources for STL Pin
SandipG 11-Jul-07 22:37
SandipG 11-Jul-07 22:37 
AnswerRe: Resources for STL Pin
jhwurmbach11-Jul-07 22:42
jhwurmbach11-Jul-07 22:42 
AnswerRe: Resources for STL Pin
Rage12-Jul-07 0:20
professionalRage12-Jul-07 0:20 
QuestionDrag and Drop of a Bitmap Pin
baerten11-Jul-07 21:48
baerten11-Jul-07 21:48 
QuestionExceptions Pin
tom groezer11-Jul-07 21:30
tom groezer11-Jul-07 21:30 
AnswerRe: Exceptions Pin
SandipG 11-Jul-07 21:39
SandipG 11-Jul-07 21:39 
AnswerRe: Exceptions Pin
jhwurmbach11-Jul-07 22:46
jhwurmbach11-Jul-07 22:46 
AnswerRe: Exceptions Pin
DevMentor.org12-Jul-07 11:04
DevMentor.org12-Jul-07 11:04 
GeneralRe: Exceptions Pin
tom groezer13-Jul-07 0:19
tom groezer13-Jul-07 0:19 
GeneralRe: Exceptions Pin
DevMentor.org13-Jul-07 12:12
DevMentor.org13-Jul-07 12:12 
QuestionListbox Pin
harsha u11-Jul-07 21:17
harsha u11-Jul-07 21:17 
AnswerRe: Listbox Pin
jhwurmbach11-Jul-07 22:54
jhwurmbach11-Jul-07 22:54 
GeneralRe: Listbox Pin
harsha u11-Jul-07 23:11
harsha u11-Jul-07 23:11 
GeneralRe: Listbox Pin
jhwurmbach11-Jul-07 23:25
jhwurmbach11-Jul-07 23:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.