Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Infix to-postfix examples

58,280 views

Published on

  • Login to see the comments

Infix to-postfix examples

  1. 1. Examples of Infix-to-Postfix Conversion Infix expression: a+b*c-d/e*f Token operator stack  top postfix string A a + + B ab * +* C ABC - + ABC* ABC*+ - D ABC*+d / -/ E ABC*+de * - ABC*+de/ -* F ABC*+de/f - ABC*+de/f* ABC*+de/f*- Infix expression: (a+b*c-d)/ (e*f) Token operator stack  top postfix string ( ( a a + (+ b ab * (+* c abc - (+ ABC* ( ABC*+ (- d abc*+d ) ABC*+d- / / ( /( e abc*+d-e * /(* f abc*+d-ef ) /( abc*+d-ef*
  2. 2. / ABC*+d-ef*/

×