# An Algorithm

• MHB
barbara
+

/ \

/ \

* -

/ \ / \

2 3 * +

/ \ / \

4 2 1 5

What type of algorithm is this I think the computation can be expressed as (2*3)+((4*2)-(1+5)). is this correct. I know its a postorder tree I just don't know if a left or right subtree exists Print root end. Does it anything to do with recursion or repetition

Last edited:

## Answers and Replies

Gold Member
MHB
Code:
           +

/       \

/         \

*            -

/  \       /     \

2   3      *       +

/  \     /  \

4   2    1   5

What type of algorithm is this
This is not an algorithm.

I think the computation can be expressed as (2*3)+((4*2)-(1+5)).
Yes.

I know its a postorder tree
What is a postorder tree? I know what a postorder traversal is, but not sure about a postorder tree.

I just don't know if a left or right subtree exists Print root end.
I can't parse this sentence.

Does it anything to do with recursion or repetition
There is some connection.