0
What is Expression tree? Give Example.
expression tree • 917  views
0
0

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 /).

0
Please log in to add an answer.

Continue reading

Find answer to specific questions by searching them here. It's the best way to discover useful content.

Find more