2 2 votes Consider the following prefix expression:$\texttt{+ * 2 3 / 8 4}$Which of the following is its correct postfix form?$\texttt{2 3 * 8 4 / +}$$\texttt{+ * 2 3 / 8 4}$$\texttt{2 * 3 + 8 / 4}$$\texttt{2 3 8 4 * / +}$ Algorithms goclasses goclasses-da-dpp goclasses-da-dpp-day-220 python-&-dsa goclasses-python-&-dsa-practice-questions prefix + – GO Classes 122 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Prefix expression:$\texttt{+ * 2 3 / 8 4}$This represents the expression tree:Postfix means postorder traversal:Left $\rightarrow$ Right $\rightarrow$ RootLeft subtree $\texttt{* 2 3}$ becomes:$\texttt{2 3 *}$Right subtree $\texttt{/ 8 4}$ becomes:$\texttt{8 4 /}$Then the root $\texttt{+}$ comes at the end.So the postfix expression is:$\texttt{2 3 * 8 4 / +}$Correct Option: A GO Classes answered Jul 9 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Answer: A Meticulous_March answered Jul 10 Meticulous_March comment Share Follow 0 reply Please log in or register to add a comment.