0
2.0kviews
What is Expression tree? Give Example.
1 Answer
0
52views

Arithmetic expressions can be represented by using binary tree, for example: E = (a–b)/ ((c*d) + e) can be represented as:

enter image description here

This kind of tree is called an expression tree. Here the terminal nodes (leaves) are the variables or constants in the expression (a,b,b,d, and e)and the non-terminal nodes are the operator in the expression (+, –,* , and /).

Please log in to add an answer.