Recent questions tagged infix-prefix

2 2 votes
2 2 answers
156
156 views
For the expression:$\texttt{2 * 3 + 8 / 4}$Assume the expression tree has $\texttt{+}$ as the root, $\texttt{*}$ as the left subtree root, and $\texttt{/}$ as the right s...
7 7 votes
2 2 answers
207
207 views
For the expression:$\texttt{2 * 3 + 8 / 4}$Assume the expression tree has $\texttt{+}$ as the root, $\texttt{*}$ as the left subtree root, and $\texttt{/}$ as the right s...
4 4 votes
2 2 answers
711
711 views
Consider the following infix expression $Q:\left((A+B)^{*} D\right) \uparrow(E-F)$. The equivalent postfix expression of $Q$ is$A B+D ^{*} E F \uparrow$ -$A B+D^{*}-\upar...
2 2 votes
1 answers 1 answer
7.5k
7.5k views
According to my knowledge, it should be AB+CD*E-*F*G/And, here is the step-wise explanation of itConverting the bracket of (A+B) – AB+There is operator but the next opera...
0 0 votes
1 1 answer
705
705 views
Given an expression$(\mathrm{A}+\mathrm{B} * \mathrm{D}) /(\mathrm{E}-\mathrm{F})+\mathrm{G}$ The prefix notation is $+/+\text{A}^{*} \mathrm{DB}-\mathrm{EFG}$The prefix ...
0 0 votes
1 answers 1 answer
1.5k
1.5k views
Convert the following infix expression to postfix and prefixA^B^C^D
0 0 votes
3 3 answers
1.4k
1.4k views
The maximum size of the operator stack when converting the following infix to postfix expressiona ^ b * c * d + e * f ^ g (assume that “^” has highest precedence and righ...
0 0 votes
0 0 answers
1.0k
1.0k views
I want to know which evaluation is wrong here:a-b-c = ab-c- or a-b-c = abc- –a * b *c = ab*c* a*b*c = abc 3 . a+b-c = ab+c- a+b-c = ab...
2 2 votes
1 1 answer
843
843 views
$\text{ABC}{\ast}+$ is the postfix form of :$ \text{A}\;{\ast}\; \text{B} + \text{C} $$ \text{A}{\ast} + \text{BC} $$ \text{A} + \text{B}\;{\ast}\; \text{C} $none of thes...
3 3 votes
3 3 answers
1.8k
1.8k views
What is the prefix expression corresponding to the expression:$\left ( \left ( 9+8 \right ) \ast 7+\left ( 6\ast \left ( 5+4 \right ) \right )\ast 3\right )+2?$You may as...
6 6 votes
3 3 answers
1.8k
1.8k views
Assume that the operators $+,-,\times$ are left associative and $\wedge$ is right associative. The order of precedence(from highest to lowest) is $\wedge,\times, +,-$. Th...
0 0 votes
1 1 answer
1.6k
1.6k views
If the postfix form of a string is $ABC +$ $– D^{*}$, the actual string is :$\left ( A-\left ( B+C \right ) \right )^{*}D$$\left ( \left ( A-B \right )+C \right )^{*}D$$\...
6 6 votes
5 5 answers
6.5k
6.5k views
Convert the pre-fix expression to in-fix $- ^{\ast} +ABC^{\ast} – DE+FG$$(A-B)^{\ast}C+(D^{\ast}E)-(F+G)$$(A+B)^{\ast}C-(D-E)^{\ast}(F+G)$$(A+B-C)^{\ast}(D-E)^{\ast}(F+G)...
0 0 votes
0 0 answers
492
492 views
The postfix notation for infix notation $a^*(b+c)+d÷e$ is given by$abc^*+de ÷ +$$abc+^*de ÷ +$$abcde +^*÷ +$$abc^*+de + ÷$