how to convert postfix notation into prefix in data
structures. please send me algo of taha
Answer / Hari Shankar Mehra
To convert postfix notation (RPN, Reverse Polish Notation) into prefix notation, you can use a stack-based algorithm. Here's an example algorithm based on Taha's method:
1. Initialize two empty stacks: output and operators.
2. Iterate through each token in the postfix expression.n - If the token is an operand (e.g., numbers or symbols like +, -, *, /), push it onto the output stack.n - If the token is an operator, pop two operands from the output stack and apply the operator on them. Then, push the result back onto the output stack.
3. The final result will be in the output stack.
| Is This Answer Correct ? | 0 Yes | 0 No |
Please help to write testcase for ECG machine
I am some what lagging in talking English but i love to do job as an software engineer what will i do to improve my communication skills? please give me answer..........
What is protocol
i am astubent of BE3rd year currently in 6th semester branch information technology till now i have 73% near about in each semester the problem with me is that i have got only 58%in 12th class n 55%in 10th class bcoz of my health now i am ok i have got 2 year loss also bcoz i have not giveen the exam in class 12th rite now i am prep for GATE i am working hard pls tell will i get a good job in future in the good company bcoz my inter percent were not gud pls tell me help me pls
how do we calculate physical address if logical address is given in the question?
why we select you?
What is the mistake in the following program segment ? f() { int a; void c; f2(&c,&a);}
What is spooling and buffering?
how we can improve mobile ad,hoc network.
why this companay? For example: Why Dell?
why is the scheduling decision needs to be taken when a process switches from running to waiting state.also,if this is because the next process is to be allocated to cpu then why not a scheduling decision taken when a process switches from ready to running state.
How Main()is called by opreting system?
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)