Click here to Skip to main content
15,896,063 members
Home / Discussions / Algorithms
   

Algorithms

 
Questionconverting MFC program into web based Pin
shiks11-Apr-11 17:06
shiks11-Apr-11 17:06 
AnswerRe: converting MFC program into web based Pin
Albert Holguin11-Apr-11 18:13
professionalAlbert Holguin11-Apr-11 18:13 
GeneralRe: converting MFC program into web based Pin
shiks12-Apr-11 5:15
shiks12-Apr-11 5:15 
GeneralRe: converting MFC program into web based Pin
Albert Holguin12-Apr-11 5:19
professionalAlbert Holguin12-Apr-11 5:19 
GeneralRe: converting MFC program into web based Pin
Albert Holguin12-Apr-11 5:21
professionalAlbert Holguin12-Apr-11 5:21 
AnswerRe: converting MFC program into web based Pin
Eddy Vluggen12-Apr-11 8:25
professionalEddy Vluggen12-Apr-11 8:25 
GeneralRe: converting MFC program into web based Pin
shiks13-Apr-11 17:02
shiks13-Apr-11 17:02 
QuestionGood way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 0:00
David198718-Mar-11 0:00 
I have to detect whether two given expressions are equivalent (both compute the same value for all inputs). The inputs will all be of simple types, such as int32, so it is theoretically possible to try all inputs and see whether the result are always the same.
That's too slow of course, so it will have to be done differently.

False positives are not acceptable at all.
False negatives are acceptable, but I need a useful amount of equivalences, so merely testing whether two expressions are equal does not solve the problem.

I have tried applying many transformations to one of the expressions and see whether they are ever equal, but that doesn't work very well. The False Negatives rate is still far too high to be useful.
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
CPallini18-Mar-11 1:29
mveCPallini18-Mar-11 1:29 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 1:41
David198718-Mar-11 1:41 
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
Luc Pattyn18-Mar-11 2:18
sitebuilderLuc Pattyn18-Mar-11 2:18 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 2:24
David198718-Mar-11 2:24 
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
Luc Pattyn18-Mar-11 3:32
sitebuilderLuc Pattyn18-Mar-11 3:32 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 3:47
David198718-Mar-11 3:47 
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_18-Mar-11 3:02
_Erik_18-Mar-11 3:02 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 3:18
David198718-Mar-11 3:18 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_18-Mar-11 3:46
_Erik_18-Mar-11 3:46 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 3:49
David198718-Mar-11 3:49 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_18-Mar-11 3:59
_Erik_18-Mar-11 3:59 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 4:13
David198718-Mar-11 4:13 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_18-Mar-11 4:40
_Erik_18-Mar-11 4:40 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 4:52
David198718-Mar-11 4:52 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_18-Mar-11 5:18
_Erik_18-Mar-11 5:18 
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
Luc Pattyn18-Mar-11 5:48
sitebuilderLuc Pattyn18-Mar-11 5:48 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_18-Mar-11 6:21
_Erik_18-Mar-11 6:21 

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.