Postfix Demo - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

Postfix Demo

Description:

Postfix Demo. 1. Input. Top of stack. 6. 2. 1. 3. 4. 5. 4 ... Postfix Demo. 1. Input. Top of stack. 2. 3. 20. pop two elements off the stack and push their sum ... – PowerPoint PPT presentation

Number of Views:53
Avg rating:3.0/5.0
Slides: 29
Provided by: kevin59
Category:
Tags: demo | postfix

less

Transcript and Presenter's Notes

Title: Postfix Demo


1
Postfix Demo
6
2
1
3
4

5




push 1
2
Postfix Demo
6
2
1
3
4

5




push 1
1
3
Postfix Demo
6
2
1
3
4

5




1
4
Postfix Demo
6
2
1
3
4

5




1
2
5
Postfix Demo
6
2
1
3
4

5




1
2
6
Postfix Demo
6
2
1
3
4

5




1
2
3
7
Postfix Demo
6
2
1
3
4

5




1
2
3
8
Postfix Demo
6
2
1
3
4

5




1
2
3
4
9
Postfix Demo
6
2
1
3
4

5




1
2
3
4
10
Postfix Demo
6
2
1
3
4

5




1
2
3
4
5
11
Postfix Demo
6
2
1
3
4

5




pop two elements off the stack and push their
product
1
2
3
4
5
12
Postfix Demo
6
2
1
3
4

5




pop two elements off the stack and push their
product
1
2
3
5
4
4
5

13
Postfix Demo
6
2
1
3
4

5




pop two elements off the stack and push their
product
1
2
3
20
4
5

14
Postfix Demo
6
2
1
3
4

5




pop two elements off the stack and push their sum
1
2
3
20
15
Postfix Demo
6
2
1
3
4

5




pop two elements off the stack and push their sum
1
2
20
3
3
20

16
Postfix Demo
6
2
1
3
4

5




pop two elements off the stack and push their sum
1
2
23
3
20

17
Postfix Demo
6
2
1
3
4

5




1
2
23
18
Postfix Demo
6
2
1
3
4

5




1
2
23
6
19
Postfix Demo
6
2
1
3
4

5




1
2
23
6
20
Postfix Demo
6
2
1
3
4

5




1
2
23
6
23
6

21
Postfix Demo
6
2
1
3
4

5




1
2
138
23
6

22
Postfix Demo
6
2
1
3
4

5




1
2
138
23
Postfix Demo
6
2
1
3
4

5




1
2
138
2
138

24
Postfix Demo
6
2
1
3
4

5




1
276
2
138

25
Postfix Demo
6
2
1
3
4

5




1
276
26
Postfix Demo
6
2
1
3
4

5




1
276
1
276

27
Postfix Demo
6
2
1
3
4

5




277
1
276

28
Postfix Demo
6
2
1
3
4

5




277
Write a Comment
User Comments (0)
About PowerShow.com