Math, asked by cbncbn751, 1 month ago

For each the infix polish notation, Draw tree representation and find (prefix & postfix) 1- Infix polish notation is : (2* h + m)( a – b)^ 6

Answers

Answered by SujiRoshini
0

Step-by-step explanation:

Consider another infix example, A + B * C. The operators + and * still appear between the operands, but there is a problem. Which operands do they work on? Does the + work on A and B or does the * take B and C? The expression seems ambiguous.

In fact, you have been reading and writing these types of expressions for a long time and they do not cause you any problem. The reason for this is that you know something about the operators + and *. Each operator has a precedence level. Operators of higher precedence are used before operators of lower precedence. The only thing that can change that order is the presence of parentheses. The precedence order for arithmetic operators places multiplication and division above addition and subtraction. If two operators of equal precedence appear, then a left-to-right ordering or associativity is used.

Similar questions