Hi,
I have got some cofusion with this topic, although i have studied it.
I want to use this forum to remove my confusion.
For example consider the following infix notation:
In my opinion, its answer can be
854+* , this is verified from its evaluation algorithm also. However correct answer is
54+8*. I am confused about deciding the position of operand. If the position of operand in
the infix notation determines its position in the postfix notation then following prefix notation is write
for the infix notation
prefix:
+B*CD. However its answer is
+*CDB. So my confusion is how to decide the position of operand 8(for postfix) and B (for prefix notation.
Kindly guide me.
Zulfi.
I have got some cofusion with this topic, although i have studied it.
I want to use this forum to remove my confusion.
For example consider the following infix notation:
Rich (BB code):
(5+4) * 8
854+* , this is verified from its evaluation algorithm also. However correct answer is
54+8*. I am confused about deciding the position of operand. If the position of operand in
the infix notation determines its position in the postfix notation then following prefix notation is write
for the infix notation
Rich (BB code):
B+C*D
+B*CD. However its answer is
+*CDB. So my confusion is how to decide the position of operand 8(for postfix) and B (for prefix notation.
Kindly guide me.
Zulfi.