Any algorithm to do Reverse Calculation:-

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2007
Posts: 12
Reputation: jjt is an unknown quantity at this point 
Solved Threads: 0
jjt jjt is offline Offline
Newbie Poster

Any algorithm to do Reverse Calculation:-

 
0
  #1
Sep 21st, 2007
I was wondering is there any algorithm, method, concept, idea for "Reverse Calculation"?
Basically I provide an output/Answer , and 1 or more inputs, then it will result the math formula/pattern.
For example 1:
I provide, Dynamic Output: 30;
I provide, Dynamic Input Value A: 2
I provide, Dynamic Input Value B: 3
I get, Result: 5 x 2 x 3 = 30

For example 2 :
I provide, Dynamic Output: 140;
I provide, Dynamic Input Value A: 4
I provide, Dynamic Input Value B: 7
I get, Result: 5 x 4 x 7 = 140

Based on Example 1 and Example 2, the formula I am looking for is:
5 x [Dynamic Input Value] x [Dynamic Input Value] x [Dynamic Output Value]
5 x A x B = C
5AB = C
5=C/AB
Thus the formula I need is "C/AB".
Is there any A.I algorithmic solution for this?

JJ
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 5
Reputation: virtual is an unknown quantity at this point 
Solved Threads: 1
virtual virtual is offline Offline
Newbie Poster

Re: Any algorithm to do Reverse Calculation:-

 
0
  #2
Sep 22nd, 2007
Just from the top of my head, I have to suggest that for the general case there is no (known to humankind) answer. That is, if the problem is, there is a relationship of the form

answer = (function of) input variables

(sorry that I can't do proper math representations here)

and you want to be able to observe some collection of answers and variables and use those to derive an answer for 'function'.

i) You will have noted that in cryptography, one of the points of trapdoor functions is, in the general case, that you can't even take 'answer' and 'function' and work out what the input variables had been. This alone makes it seem unlikely that a general solution for your problem can be ever found.

ii) If you could constrain 'function' to be linear, there would be a possibility of a solution, but the number of data points would be arbitrarily large. That is, if the only constraint that you fave is that 'function' is linear, you would need infinity plus one points in order to achieve a solution.

iii) If you could constrain the function further, there would be a theoretical possibility, but you would have to clarify what functions were possible.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 12
Reputation: jjt is an unknown quantity at this point 
Solved Threads: 0
jjt jjt is offline Offline
Newbie Poster

Re: Any algorithm to do Reverse Calculation:-

 
0
  #3
Sep 24th, 2007
Could you kindly give me some samples?
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,514
Reputation: Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future 
Solved Threads: 523
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Any algorithm to do Reverse Calculation:-

 
0
  #4
Sep 24th, 2007
You need to look into optimization.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 164
Reputation: orko is an unknown quantity at this point 
Solved Threads: 10
orko orko is offline Offline
Junior Poster

Re: Any algorithm to do Reverse Calculation:-

 
1
  #5
Sep 24th, 2007
I believe this is possible. Similar functionality I have seen in microsoft excel program. If you give a set of data, it can generates the relation.
If I had to solve this problem I would consider on few matters. What kind of relationships I can get (it is not possible to get all kind of relation) In that case you may need to make your program flexible to closer relations. If you are really good in graphs, you can get these things done easily.
A Perfect World
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Any algorithm to do Reverse Calculation:-

 
0
  #6
Sep 24th, 2007
If your relationships merely consist of "+-/x" then this is definitely possible. However, anything more complicated would make it difficult.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1657 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC