271. Give the equivalent post-fix expression for the following expressions:(A-B)/((D+E)*F)
Programming & Problem Solving Through ‘C’
Data Structures
Symbols scanned ,Stack ,Expression P
first column is symbol scanned, 2nd-stack 3rd-expression
1 ( (
2 ( ( (
3 A ( ( A
4 - ( (- A
5 B ((- AB
6 ) ( AB-
7 / (/ AB-
8 ( (/( AB-
9 ( (/(( AB-
10 D (/(( AB-D
11 + (/((+ AB-D
12 E (/((+ AB—DE
13 ) (/( AB-DE+
14 * (/(* AB-DE+
15 F (/(* AB-DE+F
16 ) (/ AB-DE+F*
17 ) AB-DE+F*/
No comments:
Post a Comment