‹ Back to the paper
Question 2(b)
2 marks
Computer ScienceISC 2017 Computer Science Paper 1ConversionData structures
Convert the following notation as directed.
Convert the following infix expression to postfix form: P * Q / R + (S + T)
Convert the following infix expression to postfix form:
$P * Q / R + (S + T)$
Answer
Answer
PQ*R/ST++
$P * Q / R + (S + T)$: $P*Q \to PQ*$; dividing by R gives $PQ*R/$; $(S+T) \to ST+$; the final + gives $PQ*R/ST++$.