Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))
Answer Posted / rodel
given-> a - b + c * (d / e - (f + g))
note: remember, before we do the infix expression to postfix expression.
We analyze the given data by using the hierarchy of operation (PEMDAS)
In that way, we can do the operation, tracing the hierarchy nos...
sample:
a - b + c * (d / e - (f + g))
5 6 4 2 3 1
pass1: a - b + c * (d / e - (f g +)) infix -> postfix
pass2: a - b + c * (d e / - f g +) infix -> postfix
pass3: a - b + c * (d e / - f g +) infix -> postfix
pass4: a - b + c * (d e / f g + - ) infix -> postfix
pass5: a b - + c d e / f g + - * infix -> postfix
pass6: a b - c + d e / f g + - * infix -> postfix -> Final Answer
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is pointer a variable?
What sort does arrays sort use?
What does the dummy header in the linked list contain?
Define double hashing?
Is learning data structures necessary?
What are the objectives of studying data structures?
A lot of data structures related programs related to only trees and graphs, like the diameter of a tree, removing the loops in a graph etc.
What is meant by arraylist?
what is Linked lists?
What is the use of prototype?
Is an arraylist a vector?
What is selection in an algorithm?
What do you mean by structure property in a heap?
What do you mean by balanced trees?
List the area of applications where stack data structure can be used?