dynamic computing algorithm

Discussion in 'Computer Information' started by inbaly, Jan 28, 2010.

  1. inbaly

    inbaly

    Joined:
    Dec 22, 2009
    Messages:
    2
    Hi,


    I am looking for an algorithm that will help me resolve this issue:

    I will recieve a string that will contain calculation, such as:
    "(a*(b+c))/d" and I will need to return the answer.
    I know that there is an algorithm for such problems. (better example in c++, if possible)
    can anyone help me with that?
    It is quite urgent.

    Thanks in advance,
    Inbal
    inbaly, Jan 28, 2010
    #1
    1. Advertising

  2. inbaly

    inbaly

    Joined:
    Dec 22, 2009
    Messages:
    2
    I found the Reverse Polish Notation, that answerd my question.
    If anyone runs into the same issue, they can use the following links:
    en.wikipedia.org/wiki/Reverse_Polish_notation
    and : en.wikipedia.org/wiki/Shunting-yard_algorithm
    inbaly, Feb 2, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. c
    Replies:
    2
    Views:
    814
  2. Hans-Peter Walter
    Replies:
    3
    Views:
    1,147
    Joe Bloggs
    Jan 21, 2004
  3. Rafael
    Replies:
    1
    Views:
    3,190
  4. Silverstrand
    Replies:
    0
    Views:
    914
    Silverstrand
    Nov 1, 2006
  5. Diego Balgera
    Replies:
    5
    Views:
    7,753
    Johann Lo
    Feb 8, 2008
Loading...

Share This Page