SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Postfix Evaluation
Using STACK
SOUMEN SANTRA
MCA, M.TECH, SCJP, MCP
INTRODUCTION
Scan the postfix expression left to right
ïź If the character x is a digit
ïź Push it into the stack
 if the character is an operator (+,-,*,/)
ïź pop two values from the stack
ïź Perform the operation
ïź Push the result of the operation into the stack
When all characters in postfix expression are processed pop the
value from the stack and output it.
Postfix Expression
7 5 2 3 + 8 * + 3 + *
Stack
Postfix Evaluation
   = 
7
Postfix Expression
Stack
5 2 3 + 8 * + 3 + *
Postfix Evaluation
   = 
7
Postfix Expression
Stack
2 3 + 8 * + 3 + *
5
Postfix Evaluation
7
5
Postfix Expression
Stack
3 + 8 * + 3 + *
2
Postfix Evaluation
   = 
7
5
Postfix Expression
Stack
Postfix Evaluation
+ 8 * + 3 + *
2
3
   = 
Postfix Expression
Stack
Postfix Evaluation
8 * + 3 + *
 +  = 
7
5
2
3
Postfix Expression
Stack
Postfix Evaluation
(
-
7
5
2 3
8 * + 3 + *
 + 3 = 
Postfix Evaluation
Postfix Expression
Stack
(
-
7
5
8 * + 3 + *
2 + 3 = 
d – ( e + f )
a b + c -
*
Stack
Postfix Evaluation
Postfix Expression
Stack
(
-
7
5
8 * + 3 + *
2 + 3 = 5
Postfix Evaluation
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
8 * + 3 + *
5    = 
Postfix Evaluation
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
* + 3 + *
5
8
   = 
e + f )
a b + c – d *
-
(
Stack
Postfix Evaluation
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
+ 3 + *
5
8
 *  = 
+ f )
a b + c – d * e
-
(
Stack
Postfix Evaluation
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
+ 3 + *
5  * 8 = 
f )
a b + c – d * e
-
(
+
Stack
Postfix Evaluation
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
+ 3 + *
5 * 8 = 
)
a b + c – d * e f
-
(
+
Stack
Postfix Evaluation
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
+ 3 + *
5 * 8 = 40
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
+ 3 + *
40    = 
a b + c – d * e f + -
Stack
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
3 + *
40  +  = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
5
3 + *
 + 40 = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
3 + *
5 + 40 = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
3 + *
5 + 40 = 45
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
45
3 + *
   = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
45
+ *
3
   = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
45
*
3
 +  = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
45
*
 + 3 = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
*
45 + 3 = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
*
45 + 3 = 48
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
*
   = 
48
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
 *  = 
48
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7
 * 48 = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7 * 48 = 
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
7 * 48 = 336
Postfix Evaluation
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
6
18
3 + *
a b + c – d * e f +
-
Stack
( e + f )
a b + c – d *
-
Stack
– ( e + f )
a b + c - d
*
Stack
Postfix Expression
Stack
(
-
336
   = 
THANK YOU
GIVE FEEDBACK

Weitere Àhnliche Inhalte

Was ist angesagt?

Gilat_ch05.pdf
Gilat_ch05.pdfGilat_ch05.pdf
Gilat_ch05.pdfArhamQadeer
 
Advance Engineering Mathematics
Advance Engineering MathematicsAdvance Engineering Mathematics
Advance Engineering MathematicsPrasenjitRathore
 
CinemĂ tica directa e inversa de manipulador
CinemĂ tica directa e inversa de manipuladorCinemĂ tica directa e inversa de manipulador
CinemĂ tica directa e inversa de manipuladorc3stor
 
Chpt13 laplacetransformsmatlab
Chpt13 laplacetransformsmatlabChpt13 laplacetransformsmatlab
Chpt13 laplacetransformsmatlabJason Harvey
 
é«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄ
é«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄé«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄ
é«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄKota Abe
 
C PROGRAMS - SARASWATHI RAMALINGAM
C PROGRAMS - SARASWATHI RAMALINGAMC PROGRAMS - SARASWATHI RAMALINGAM
C PROGRAMS - SARASWATHI RAMALINGAMSaraswathiRamalingam
 
Week12 graph
Week12   graph Week12   graph
Week12 graph IIUM
 
Math 3-H6
Math 3-H6Math 3-H6
Math 3-H6jjlendaya
 
àč€àž‹àž•
àč€àž‹àž•àč€àž‹àž•
àč€àž‹àž•Khiaokha
 
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...Parhamsagharchi
 

Was ist angesagt? (20)

8th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
8th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...8th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
8th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
 
3rd Semester (Dec-2015; Jan-2016) Computer Science and Information Science E...
3rd Semester (Dec-2015; Jan-2016) Computer Science and Information Science  E...3rd Semester (Dec-2015; Jan-2016) Computer Science and Information Science  E...
3rd Semester (Dec-2015; Jan-2016) Computer Science and Information Science E...
 
Gilat_ch05.pdf
Gilat_ch05.pdfGilat_ch05.pdf
Gilat_ch05.pdf
 
Advance Engineering Mathematics
Advance Engineering MathematicsAdvance Engineering Mathematics
Advance Engineering Mathematics
 
1st Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
1st  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...1st  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
1st Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
 
CinemĂ tica directa e inversa de manipulador
CinemĂ tica directa e inversa de manipuladorCinemĂ tica directa e inversa de manipulador
CinemĂ tica directa e inversa de manipulador
 
Chpt13 laplacetransformsmatlab
Chpt13 laplacetransformsmatlabChpt13 laplacetransformsmatlab
Chpt13 laplacetransformsmatlab
 
Digital Notes
Digital NotesDigital Notes
Digital Notes
 
m.tech final
m.tech finalm.tech final
m.tech final
 
4th Semester M Tech: Computer Science and Engineering (Jun-2016) Question Papers
4th Semester M Tech: Computer Science and Engineering (Jun-2016) Question Papers4th Semester M Tech: Computer Science and Engineering (Jun-2016) Question Papers
4th Semester M Tech: Computer Science and Engineering (Jun-2016) Question Papers
 
é«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄ
é«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄé«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄ
é«˜ă„Churnè€æ€§ăšæ€œçŽąæ€§èƒœă‚’æŒă€ă‚­ăƒŒé †ćșäżć­˜ćž‹æ§‹é€ ćŒ–ă‚ȘăƒŒăƒăƒŹă‚€ăƒăƒƒăƒˆăƒŻăƒŒă‚ŻSuzakuăźææĄˆăšè©•äŸĄ
 
C PROGRAMS - SARASWATHI RAMALINGAM
C PROGRAMS - SARASWATHI RAMALINGAMC PROGRAMS - SARASWATHI RAMALINGAM
C PROGRAMS - SARASWATHI RAMALINGAM
 
5th Semester Electronic and Communication Engineering (June/July-2015) Questi...
5th Semester Electronic and Communication Engineering (June/July-2015) Questi...5th Semester Electronic and Communication Engineering (June/July-2015) Questi...
5th Semester Electronic and Communication Engineering (June/July-2015) Questi...
 
Week12 graph
Week12   graph Week12   graph
Week12 graph
 
Math 3-H6
Math 3-H6Math 3-H6
Math 3-H6
 
àč€àž‹àž•
àč€àž‹àž•àč€àž‹àž•
àč€àž‹àž•
 
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
2nd  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...2nd  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
 
cwit-poster_logo
cwit-poster_logocwit-poster_logo
cwit-poster_logo
 
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
 
5th Semester Electronic and Communication Engineering (2013-June) Question Pa...
5th Semester Electronic and Communication Engineering (2013-June) Question Pa...5th Semester Electronic and Communication Engineering (2013-June) Question Pa...
5th Semester Electronic and Communication Engineering (2013-June) Question Pa...
 

Ähnlich wie Postfix Evaluations using Stack

Stack_Application_Infix_Prefix.pptx
Stack_Application_Infix_Prefix.pptxStack_Application_Infix_Prefix.pptx
Stack_Application_Infix_Prefix.pptxsandeep54552
 
1.3- infix-ti-postfix.pdf
1.3- infix-ti-postfix.pdf1.3- infix-ti-postfix.pdf
1.3- infix-ti-postfix.pdfsoniasharmafdp
 
My lecture infix-to-postfix
My lecture infix-to-postfixMy lecture infix-to-postfix
My lecture infix-to-postfixSenthil Kumar
 
Running Free with the Monads
Running Free with the MonadsRunning Free with the Monads
Running Free with the Monadskenbot
 
2Part I1. Answer questions for the following graph, if .docx
2Part I1. Answer questions for the following graph, if .docx2Part I1. Answer questions for the following graph, if .docx
2Part I1. Answer questions for the following graph, if .docxgilbertkpeters11344
 
Fields in cryptography
Fields in cryptographyFields in cryptography
Fields in cryptographyLekhikaShishodia
 
Lab Manual IV (1).pdf on C++ Programming practice
Lab Manual IV (1).pdf on C++ Programming practiceLab Manual IV (1).pdf on C++ Programming practice
Lab Manual IV (1).pdf on C++ Programming practiceranaibrahim453
 
Circular queues
Circular queuesCircular queues
Circular queuesSsankett Negi
 
Expression evaluation
Expression evaluationExpression evaluation
Expression evaluationJeeSa Sultana
 
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1zukun
 
Computer notes - Postfix
Computer notes  - PostfixComputer notes  - Postfix
Computer notes - Postfixecomputernotes
 
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...akaptur
 
data structure and algorithm by bomboat_3
data structure and algorithm by bomboat_3data structure and algorithm by bomboat_3
data structure and algorithm by bomboat_3jateno3396
 
computer notes - Data Structures - 7
computer notes - Data Structures - 7computer notes - Data Structures - 7
computer notes - Data Structures - 7ecomputernotes
 
Data structure and algorithm.(dsa)
Data structure and algorithm.(dsa)Data structure and algorithm.(dsa)
Data structure and algorithm.(dsa)mailmerk
 
Stacks.ppt
Stacks.pptStacks.ppt
Stacks.pptOliverKane3
 
Stacks.ppt
Stacks.pptStacks.ppt
Stacks.pptOliverKane3
 

Ähnlich wie Postfix Evaluations using Stack (20)

Stack_Application_Infix_Prefix.pptx
Stack_Application_Infix_Prefix.pptxStack_Application_Infix_Prefix.pptx
Stack_Application_Infix_Prefix.pptx
 
1.3- infix-ti-postfix.pdf
1.3- infix-ti-postfix.pdf1.3- infix-ti-postfix.pdf
1.3- infix-ti-postfix.pdf
 
My lecture infix-to-postfix
My lecture infix-to-postfixMy lecture infix-to-postfix
My lecture infix-to-postfix
 
Running Free with the Monads
Running Free with the MonadsRunning Free with the Monads
Running Free with the Monads
 
Stack and queue
Stack and queueStack and queue
Stack and queue
 
2Part I1. Answer questions for the following graph, if .docx
2Part I1. Answer questions for the following graph, if .docx2Part I1. Answer questions for the following graph, if .docx
2Part I1. Answer questions for the following graph, if .docx
 
Fields in cryptography
Fields in cryptographyFields in cryptography
Fields in cryptography
 
Lab Manual IV (1).pdf on C++ Programming practice
Lab Manual IV (1).pdf on C++ Programming practiceLab Manual IV (1).pdf on C++ Programming practice
Lab Manual IV (1).pdf on C++ Programming practice
 
Circular queues
Circular queuesCircular queues
Circular queues
 
Expression evaluation
Expression evaluationExpression evaluation
Expression evaluation
 
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
 
Computer notes - Postfix
Computer notes  - PostfixComputer notes  - Postfix
Computer notes - Postfix
 
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
 
C applications
C applicationsC applications
C applications
 
data structure and algorithm by bomboat_3
data structure and algorithm by bomboat_3data structure and algorithm by bomboat_3
data structure and algorithm by bomboat_3
 
computer notes - Data Structures - 7
computer notes - Data Structures - 7computer notes - Data Structures - 7
computer notes - Data Structures - 7
 
Data structure and algorithm.(dsa)
Data structure and algorithm.(dsa)Data structure and algorithm.(dsa)
Data structure and algorithm.(dsa)
 
Htdp05
Htdp05Htdp05
Htdp05
 
Stacks.ppt
Stacks.pptStacks.ppt
Stacks.ppt
 
Stacks.ppt
Stacks.pptStacks.ppt
Stacks.ppt
 

Mehr von Soumen Santra

Cell hole identification in carcinogenic segment using Geodesic Methodology: ...
Cell hole identification in carcinogenic segment using Geodesic Methodology: ...Cell hole identification in carcinogenic segment using Geodesic Methodology: ...
Cell hole identification in carcinogenic segment using Geodesic Methodology: ...Soumen Santra
 
PPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptx
PPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptxPPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptx
PPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptxSoumen Santra
 
Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...
Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...
Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...Soumen Santra
 
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...Soumen Santra
 
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Soumen Santra
 
A Novel Real Time Home Automation System with Google Assistance Technology
A Novel Real Time Home Automation System with Google Assistance TechnologyA Novel Real Time Home Automation System with Google Assistance Technology
A Novel Real Time Home Automation System with Google Assistance TechnologySoumen Santra
 
Java basic part 2 : Datatypes Keywords Features Components Security Exceptions
Java basic part 2 : Datatypes Keywords Features Components Security Exceptions Java basic part 2 : Datatypes Keywords Features Components Security Exceptions
Java basic part 2 : Datatypes Keywords Features Components Security Exceptions Soumen Santra
 
Java Basic PART I
Java Basic PART IJava Basic PART I
Java Basic PART ISoumen Santra
 
Threads Advance in System Administration with Linux
Threads Advance in System Administration with LinuxThreads Advance in System Administration with Linux
Threads Advance in System Administration with LinuxSoumen Santra
 
Frequency Division Multiplexing Access (FDMA)
Frequency Division Multiplexing Access (FDMA)Frequency Division Multiplexing Access (FDMA)
Frequency Division Multiplexing Access (FDMA)Soumen Santra
 
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...Soumen Santra
 
Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)Soumen Santra
 
PURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : Details
PURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : DetailsPURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : Details
PURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : DetailsSoumen Santra
 
Carrier-sense multiple access with collision avoidance CSMA/CA
Carrier-sense multiple access with collision avoidance CSMA/CACarrier-sense multiple access with collision avoidance CSMA/CA
Carrier-sense multiple access with collision avoidance CSMA/CASoumen Santra
 
RFID (RADIO FREQUENCY IDENTIFICATION)
RFID (RADIO FREQUENCY IDENTIFICATION)RFID (RADIO FREQUENCY IDENTIFICATION)
RFID (RADIO FREQUENCY IDENTIFICATION)Soumen Santra
 
SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION
SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION  SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION
SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION Soumen Santra
 
Threads Basic : Features, Types & Implementation
Threads Basic : Features, Types  & ImplementationThreads Basic : Features, Types  & Implementation
Threads Basic : Features, Types & ImplementationSoumen Santra
 
CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...
CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...
CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...Soumen Santra
 

Mehr von Soumen Santra (20)

Cell hole identification in carcinogenic segment using Geodesic Methodology: ...
Cell hole identification in carcinogenic segment using Geodesic Methodology: ...Cell hole identification in carcinogenic segment using Geodesic Methodology: ...
Cell hole identification in carcinogenic segment using Geodesic Methodology: ...
 
PPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptx
PPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptxPPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptx
PPT_PAPERID 31_SOUMEN_SANTRA - ICCET23.pptx
 
Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...
Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...
Basic networking hardware: Switch : Router : Hub : Bridge : Gateway : Bus : C...
 
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
 
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
 
Quick Sort
Quick SortQuick Sort
Quick Sort
 
Merge sort
Merge sortMerge sort
Merge sort
 
A Novel Real Time Home Automation System with Google Assistance Technology
A Novel Real Time Home Automation System with Google Assistance TechnologyA Novel Real Time Home Automation System with Google Assistance Technology
A Novel Real Time Home Automation System with Google Assistance Technology
 
Java basic part 2 : Datatypes Keywords Features Components Security Exceptions
Java basic part 2 : Datatypes Keywords Features Components Security Exceptions Java basic part 2 : Datatypes Keywords Features Components Security Exceptions
Java basic part 2 : Datatypes Keywords Features Components Security Exceptions
 
Java Basic PART I
Java Basic PART IJava Basic PART I
Java Basic PART I
 
Threads Advance in System Administration with Linux
Threads Advance in System Administration with LinuxThreads Advance in System Administration with Linux
Threads Advance in System Administration with Linux
 
Frequency Division Multiplexing Access (FDMA)
Frequency Division Multiplexing Access (FDMA)Frequency Division Multiplexing Access (FDMA)
Frequency Division Multiplexing Access (FDMA)
 
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...
 
Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)
 
PURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : Details
PURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : DetailsPURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : Details
PURE ALOHA : MEDIUM ACCESS CONTROL PROTOCOL (MAC): Definition : Types : Details
 
Carrier-sense multiple access with collision avoidance CSMA/CA
Carrier-sense multiple access with collision avoidance CSMA/CACarrier-sense multiple access with collision avoidance CSMA/CA
Carrier-sense multiple access with collision avoidance CSMA/CA
 
RFID (RADIO FREQUENCY IDENTIFICATION)
RFID (RADIO FREQUENCY IDENTIFICATION)RFID (RADIO FREQUENCY IDENTIFICATION)
RFID (RADIO FREQUENCY IDENTIFICATION)
 
SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION
SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION  SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION
SPACE DIVISION MULTIPLE ACCESS (SDMA) SATELLITE COMMUNICATION
 
Threads Basic : Features, Types & Implementation
Threads Basic : Features, Types  & ImplementationThreads Basic : Features, Types  & Implementation
Threads Basic : Features, Types & Implementation
 
CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...
CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...
CLOUD COMPUTING : BASIC CONCEPT REGARDING LOAD BALANCING AND Virtual Machine ...
 

KĂŒrzlich hochgeladen

Top Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoordharasingh5698
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Call Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night StandCall Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night Standamitlee9823
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 

KĂŒrzlich hochgeladen (20)

Top Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor đŸ“± {7001035870} VIP Escorts chittoor
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night StandCall Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 đŸ„” Book Your One night Stand
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

Postfix Evaluations using Stack

  • 1. Postfix Evaluation Using STACK SOUMEN SANTRA MCA, M.TECH, SCJP, MCP
  • 2. INTRODUCTION Scan the postfix expression left to right ïź If the character x is a digit ïź Push it into the stack  if the character is an operator (+,-,*,/) ïź pop two values from the stack ïź Perform the operation ïź Push the result of the operation into the stack When all characters in postfix expression are processed pop the value from the stack and output it.
  • 3. Postfix Expression 7 5 2 3 + 8 * + 3 + * Stack Postfix Evaluation    = 
  • 4. 7 Postfix Expression Stack 5 2 3 + 8 * + 3 + * Postfix Evaluation    = 
  • 5. 7 Postfix Expression Stack 2 3 + 8 * + 3 + * 5 Postfix Evaluation
  • 6. 7 5 Postfix Expression Stack 3 + 8 * + 3 + * 2 Postfix Evaluation    = 
  • 7. 7 5 Postfix Expression Stack Postfix Evaluation + 8 * + 3 + * 2 3    = 
  • 8. Postfix Expression Stack Postfix Evaluation 8 * + 3 + *  +  =  7 5 2 3
  • 9. Postfix Expression Stack Postfix Evaluation ( - 7 5 2 3 8 * + 3 + *  + 3 = 
  • 11. d – ( e + f ) a b + c - * Stack Postfix Evaluation Postfix Expression Stack ( - 7 5 8 * + 3 + * 2 + 3 = 5
  • 12. Postfix Evaluation – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 8 * + 3 + * 5    = 
  • 13. Postfix Evaluation ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 * + 3 + * 5 8    = 
  • 14. e + f ) a b + c – d * - ( Stack Postfix Evaluation ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 + 3 + * 5 8  *  = 
  • 15. + f ) a b + c – d * e - ( Stack Postfix Evaluation ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 + 3 + * 5  * 8 = 
  • 16. f ) a b + c – d * e - ( + Stack Postfix Evaluation ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 + 3 + * 5 * 8 = 
  • 17. ) a b + c – d * e f - ( + Stack Postfix Evaluation ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 + 3 + * 5 * 8 = 40
  • 18. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 + 3 + * 40    = 
  • 19. a b + c – d * e f + - Stack Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 3 + * 40  +  = 
  • 20. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 5 3 + *  + 40 = 
  • 21. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 3 + * 5 + 40 = 
  • 22. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 3 + * 5 + 40 = 45
  • 23. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 45 3 + *    = 
  • 24. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 45 + * 3    = 
  • 25. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 45 * 3  +  = 
  • 26. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 45 *  + 3 = 
  • 27. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 * 45 + 3 = 
  • 28. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 * 45 + 3 = 48
  • 29. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 *    =  48
  • 30. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7  *  =  48
  • 31. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7  * 48 = 
  • 32. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 * 48 = 
  • 33. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 7 * 48 = 336
  • 34. Postfix Evaluation a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 6 18 3 + * a b + c – d * e f + - Stack ( e + f ) a b + c – d * - Stack – ( e + f ) a b + c - d * Stack Postfix Expression Stack ( - 336    = ï‚