Algorithm to construct infix to postfix expression
Answers
Answered by
0
▀▄▀▄▀▄[__]▄▀▄▀▄▀
ıllıllıllıllıllıllı[ Your Answer ]ıllıllıllıllıllıllı
╚» Push “(“onto Stack, and add “)” to the end of X.
Scan X from left to right and repeat Step 3 to 6 for each element of X until the Stack is empty.
If an operand is encountered, add it to Y.
If a left parenthesis is encountered, push it onto Stack.
If an operator is encountered ,then:
▁ ▂ ▄ ▅ ▆ ▇ █ [ Hᴏᴘᴇ Help You Dear ] █ ▇ ▆ ▅ ▄ ▂ ▁
ıllıllıllıllıllıllı[ Your Answer ]ıllıllıllıllıllıllı
╚» Push “(“onto Stack, and add “)” to the end of X.
Scan X from left to right and repeat Step 3 to 6 for each element of X until the Stack is empty.
If an operand is encountered, add it to Y.
If a left parenthesis is encountered, push it onto Stack.
If an operator is encountered ,then:
▁ ▂ ▄ ▅ ▆ ▇ █ [ Hᴏᴘᴇ Help You Dear ] █ ▇ ▆ ▅ ▄ ▂ ▁
Similar questions
Physics,
6 months ago
Social Sciences,
6 months ago
Math,
1 year ago
Math,
1 year ago
English,
1 year ago