answersLogoWhite

0


Best Answer

stack is the basic data structure needed to convert infix notation to postfix

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which data structure is needed to convert infix notations to post fix notations?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which data structure is needed to convert infix notations to pre fix notations?

S: Stack while(more tokens) { x<-next token; if(x is an operand) print x else { while(precedence(x) <= precedence(top(s)) print(pop(s)) push(s,x) } } while(!empty(s)) print(pop(s)); Written by: Fabianski Benjamin


Which data structure convert logical to physical address?

Linear data structure is used to convert the logical address to physical address .Stack is used in this and the various conversion such as postfix,prefix and infix notation are come in this


Convert infix to prefix to postfix?

(a + b) * c / ((x - y) * z)


Program to convert infix to prefix?

I dont have the idea about the program but I know that prefix means the first starting letters of a particular things. I really think so there is a progam to convert infix to prefix but i might have misunderstood your question can you make it little simpler please.


Why you need convert a expression into postfix expression?

You convert an (infix) expression into a postfix expression as part of the process of generating code to evaluate that expression.


Write an algorithm in c to convert an infix expression to a postfix expressionexecute your algorithm with the following infix expression as your input. m nk pgh a bc?

An algorithm can not be written with the following infix expression without knowing what the expression is. Once this information is included a person will be able to know how to write the algorithm.


Why do compilers convert infix expressions to postfix?

people almost exclusively use infix notation to write mathematical expressions, computer languages almost exclusively allow programmers to use infix notation. However, if a compiler allowed infix expressions into the binary code used in the compiled version of a program, the resulting code would be larger than needed and very inefficient. Because of this, compilers convert infix expressions into postfix notation expressions, which have a much simpler set of rules for expression evaluation. Postfix notation gets its name from the fact that operators in a postfix expression follow the operands that they specify an operation on. Here are some examples of equivalent infix and postfix expressions Infix Notation Postfix Notation 2 + 3 2 3 + 2 + 3 * 6 3 6 * 2 + (2 + 3) * 6 2 3 + 6 * A / (B * C) + D * E - A - C A B C * / D E * + A C * - Where as infix notation expressions need a long list or rules for evaluation, postfix expressions need very few.


How do you convert infix to postfix without using data structures?

Without data-structures you cannot even store expressions, let alone convert or evaluate them.


What actors and actresses appeared in Index of Infix - 2004?

The cast of Index of Infix - 2004 includes: Infix as Themselves


Give you 5 examples of infix?

give 5 examples of infix


How to use infix in a sentence?

One way to use "infix" in a sentence could be: "In linguistics, an infix is an affix that is inserted into a word to create a new meaning or form."


Prefix to postfix conversion using C programming?

To convert an infix expression to a postfix expression in C programming, you can use the Shunting Yard algorithm. This algorithm allows you to scan the infix expression from left to right, and based on the precedence of operators, convert it to a postfix expression. You can use a stack to hold operators and output queue to store the final postfix expression. By following the algorithm, you can convert the infix expression to postfix successfully.