Click here to Skip to main content
16,011,374 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
Definitely, I cannot make myself clear today... English is not my first language... That must be the reason.

David1987 wrote:
Why does it mean that? Why can't two polynomials intersect at 3 places that are
all natural integers?


It does not matter where the function intersect with an axis. That is not important. The important is: only natural numbers are valid inputs for the function... I'll try to use other words: the function (or expression) can only be applied to natural numbers. However, the result can be any real number. Speaking about polynomials and "X axis" I understand you are sepaking about drawing a continous function (polynomial), so its inputs can be real numbers. I don't mind at all where de function will intersect the axis. If it can receive any real number as input, then induction is out of scope.


David1987 wrote:
Also I know perfectly well what induction is and this isn't it. You have to
prove that you can go from one case to the next - you're just proving that some
random case and the next are both accidentally correct.

There is no
random in induction. You have to analytically show that if something is true for
n, that implies that it is also true for n+1.

This is the third time I will say that this is only a heuristic method applying the axiom of induction, not a demonstration. If you increase your random samples (and succesor) to, let's say, 10, for example, and all of them macth along with the base case, then you can be pretty sure both expressions are equivalent. I think it is much faster than checking for 2^64 different possible inputs, and was trying to put you on a good direction (remember, only for natural numbers as input).
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 
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
Luc Pattyn18-Mar-11 7:09
sitebuilderLuc Pattyn18-Mar-11 7:09 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_21-Mar-11 2:55
_Erik_21-Mar-11 2:55 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
molesworth18-Mar-11 4:40
molesworth18-Mar-11 4:40 
GeneralRe: Good way to detect a useful portion of equivalent expressions [modified] Pin
_Erik_18-Mar-11 4:44
_Erik_18-Mar-11 4:44 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198718-Mar-11 4:54
David198718-Mar-11 4:54 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
_Erik_18-Mar-11 5:24
_Erik_18-Mar-11 5:24 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
Matty221-Apr-11 1:51
Matty221-Apr-11 1:51 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David19871-Apr-11 3:35
David19871-Apr-11 3:35 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
mbyamukama3-Apr-11 2:08
mbyamukama3-Apr-11 2:08 
GeneralRe: Good way to detect a useful portion of equivalent expressions [modified] Pin
David19873-Apr-11 2:35
David19873-Apr-11 2:35 
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
Alex Shtof9-Apr-11 10:47
Alex Shtof9-Apr-11 10:47 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David19879-Apr-11 21:14
David19879-Apr-11 21:14 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
Alex Shtof11-Apr-11 9:06
Alex Shtof11-Apr-11 9:06 
GeneralRe: Good way to detect a useful portion of equivalent expressions Pin
David198711-Apr-11 9:14
David198711-Apr-11 9:14 
AnswerRe: Good way to detect a useful portion of equivalent expressions Pin
dasblinkenlight11-Apr-11 9:21
dasblinkenlight11-Apr-11 9: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.