






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























1
a
c
b
g
d
e
f
2
a
c
b
g
d
e
f
4
a
c
b
g
d
e
f
5
7
a
c
b
g
d
e
f
8
10
a b
Stack is growing left to right
If symbol is an operand, put it in a one node tree and push it on a stack.
top
11
a b
Stack is growing left to right
If symbol is an operator, pop two trees from the stack, form a new tree with operator as the root and T 1 and T 2 as left and right subtrees and push this tree on the stack.
13
a b
d e
14
a b
c
d e
16
17
19
20