587 views
1 votes
1 votes

Consider the new-order strategy for traversing a binary tree:

  • Visit the root
  • Visit the right subtree using new-order
  • Visit the left subtree using new-order

The new-order traversal of expression tree corresponding to the reverse polish expression

3  4  *  5  –  2  ^  6  7  *  1  +  –


What will be expression, any procedure for it??

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
rahul sharma 5 asked Dec 18, 2016
1,632 views
1. Is postorder same as Reverse polish notation(Postfix)?2. Is inorder same as polish notation(infix)?
1 votes
1 votes
2 answers
2
smartmeet asked Jan 18, 2017
1,029 views
What we can do if the unary operator comes in infix notation while converting it into postfix/prefix notations? For example, this $a = -b+c*d/e+f↑g↑h-i*j$
1 votes
1 votes
1 answer
4