Infix To Postfix Conversion
Infix To Postfix Conversion
Contents:
• Manual method
• Fast method
( A+B^C)*D+E^5 ---------
( +B^C)*D+E^5 A
+
B^C)*D+E^5 AB
(
^
C)*D+E^5 AB
)*D+E^5 ABC
^
(
)*D+E^5 ABC
^
*D+E^5 ABC^+
Again
Empty
D+E^5 ABC^+
*
+E^5 ABC^+D
*
+E^5 ABC^+D
*
As priority(*)>
priority(+),then * will be
popped from the stack
and printed as output
E^5 ABC^+D*
+
^5 ABC^+D*E
+
^5 ABC^+D*E
+
^
5 ABC^+D*E
+
^
5 ABC^+D*E5
+
\o expression ends
Empty here
ABC^+D*E5^+
stack