i know we use stack to evaluate postfix expression. I wanna know how to evaluate prefix expression?
Prefix Expressionhow to evaluate prefix expression
Page 1 of 1
4 Replies - 4661 Views - Last Post: 03 October 2010 - 03:35 PM
Replies To: Prefix Expression
#2
Re: Prefix Expression
Posted 03 October 2010 - 04:20 AM
#3 Guest_Anddy*
Re: Prefix Expression
Posted 03 October 2010 - 05:09 AM
I know this following algorithm to Evaluate Postfix Expression (attached file). Can you give me solution how to solve pefix expression.
Attached File(s)
-
Algorithm Evaluate.doc (23K)
Number of downloads: 235
#4
Re: Prefix Expression
Posted 03 October 2010 - 07:25 AM
Anddy, on 03 October 2010 - 04:39 PM, said:
I know this following algorithm to Evaluate Postfix Expression (attached file). Can you give me solution how to solve pefix expression.
Hey Anddy,
I have attached a file explaining the algorithm for evaluating prefix expression using stack. Go through it. Lets start with second section(Loop While) mentioned in the doc. Implement it and get back to teh thread.
Happy to help.
Attached File(s)
-
PrefixAlgorithm.doc (23K)
Number of downloads: 2453
#5
Re: Prefix Expression
Posted 03 October 2010 - 03:35 PM
Anddy, on 03 October 2010 - 08:09 AM, said:
I know this following algorithm to Evaluate Postfix Expression (attached file). Can you give me solution how to solve pefix expression.
I also want to reiterate rule #1. We are happy to help you with your good faith efforts, but we will not hand you the code.
Page 1 of 1

New Topic/Question
Reply
MultiQuote








|