‹ Back to the paper
Question 2(b)
2 marks
Computer ScienceISC 2020 Specimen Computer Science Paper 1Short answerData structures
Answer the following in short.
Convert the following infix notation to postfix notation: A * ( B / C ) / E + F
Convert the following infix notation to postfix notation:
$A * ( B / C ) / E + F$
Answer
Answer
$A * (B / C) / E + F$
$B / C \to BC/$
$A * (BC/) \to ABC/*$
$ABC/* \;/\; E \to ABC/*E/$
$ABC/*E/ \;+\; F \to ABC/*E/F+$
Postfix form: $A\ B\ C\ /\ *\ E\ /\ F\ +$