Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConverting try/catch to __try/something Pin
integerous27-Oct-05 6:31
integerous27-Oct-05 6:31 
AnswerRe: Converting try/catch to __try/something Pin
toxcct27-Oct-05 7:43
toxcct27-Oct-05 7:43 
GeneralRe: Converting try/catch to __try/something Pin
integerous27-Oct-05 12:57
integerous27-Oct-05 12:57 
QuestionSecure IPC Pin
Chintoo72327-Oct-05 5:59
Chintoo72327-Oct-05 5:59 
AnswerRe: Secure IPC Pin
ThatsAlok27-Oct-05 22:25
ThatsAlok27-Oct-05 22:25 
QuestionWhat's this? Pin
Le Sourcier27-Oct-05 5:41
Le Sourcier27-Oct-05 5:41 
Question Hash string function that keeps compare properties Pin
Kochise27-Oct-05 5:27
Kochise27-Oct-05 5:27 
AnswerRe: Hash string function that keeps compare properties Pin
Chris Losinger27-Oct-05 7:30
professionalChris Losinger27-Oct-05 7:30 
Kochise wrote:
it there a good hash function that will allow ...


my gut reaction is No. the amount of information required to accurately compare two strings is all of the information in each string. but hashes for arbitrary input grind the information in the source data down into a package that's large enough that two different input strings will have a small (but still non-zero) chance of generating the same hash, but small enough to be passed around and used quickly.

but if you have less data than you started with and the possibilty that two source values will produce the same hash, then there's no way to go from the hash back to the source value, and so there's no way to guarantee an accurate sort using just the hash.

that's not to say hash values can't play a role in sorting, of course (they do, and there's a lot of info in Google about this very large topic), just that you can't generate a small numeric reversible hash for arbitrary character strings.


Cleek | Image Toolkits | Thumbnail maker


-- modified at 16:29 Thursday 27th October, 2005
GeneralRe: Hash string function that keeps compare properties Pin
Kochise27-Oct-05 21:17
Kochise27-Oct-05 21:17 
GeneralRe: Hash string function that keeps compare properties Pin
Chris Losinger28-Oct-05 1:17
professionalChris Losinger28-Oct-05 1:17 
GeneralRe: Hash string function that keeps compare properties Pin
Kochise28-Oct-05 3:06
Kochise28-Oct-05 3:06 
QuestionHow to pass a parm to iexplorer? Pin
mcgahanfl27-Oct-05 5:24
mcgahanfl27-Oct-05 5:24 
AnswerRe: How to pass a parm to iexplorer? Pin
BlackT27-Oct-05 5:29
BlackT27-Oct-05 5:29 
QuestionText Rotation - VC 6.0 Pin
BlackT27-Oct-05 4:17
BlackT27-Oct-05 4:17 
AnswerRe: Text Rotation - VC 6.0 Pin
Mircea Puiu27-Oct-05 7:23
Mircea Puiu27-Oct-05 7:23 
Questionquestion with the MFC documentation Pin
ewighell27-Oct-05 3:39
ewighell27-Oct-05 3:39 
AnswerRe: question with the MFC documentation Pin
Maximilien27-Oct-05 3:52
Maximilien27-Oct-05 3:52 
AnswerRe: question with the MFC documentation Pin
Chris Losinger27-Oct-05 3:55
professionalChris Losinger27-Oct-05 3:55 
AnswerRe: question with the MFC documentation Pin
toxcct27-Oct-05 3:58
toxcct27-Oct-05 3:58 
QuestionRe: question with the MFC documentation Pin
David Crow27-Oct-05 4:49
David Crow27-Oct-05 4:49 
AnswerRe: question with the MFC documentation Pin
ewighell27-Oct-05 5:02
ewighell27-Oct-05 5:02 
AnswerRe: question with the MFC documentation Pin
ewighell27-Oct-05 5:05
ewighell27-Oct-05 5:05 
QuestionHow to kill a thread ??? Pin
vikas amin27-Oct-05 2:21
vikas amin27-Oct-05 2:21 
AnswerRe: How to kill a thread ??? Pin
David Crow27-Oct-05 2:32
David Crow27-Oct-05 2:32 
AnswerRe: How to kill a thread ??? Pin
ThatsAlok27-Oct-05 22:40
ThatsAlok27-Oct-05 22:40 

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.