The Gateway to Computer Science Excellence
+1 vote
202 views
Provide short answers to the following questions:

Compute the postfix equivalent of the following infix arithmetic expression

$a + b * c + d * e ↑ f$

where $↑$ represents exponentiation. Assume normal operator precedences.
in Compiler Design by Boss (30.2k points) | 202 views
+1
is that postfix equivalent??
0
Draw the expression tree and do postorder traversal. This will give post fix expression.

1 Answer

+3 votes
Best answer
$=a+(bc*)+(d(ef↑)*)$

$=(abc*+)+(def↑*)$

$=abc*+def↑*+$
by Boss (18k points)
edited by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,492 answers
195,439 comments
100,696 users