1 / 28

Postfix Demo

Input. Postfix Demo. 1. 2. 3. 4. 5. *. +. 6. *. *. +. push 1. Input. Top of stack. Postfix Demo. 1. 2. 3. 4. 5. *. +. 6. *. *. +. push 1. 1. Input. Top of stack. Postfix Demo. 1. 2. 3. 4. 5. *. +. 6. *. *. +. 1. Input. Top of stack. Postfix Demo. 1.

bian
Download Presentation

Postfix Demo

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Input Postfix Demo 1 2 3 4 5 * + 6 * * + push 1

  2. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + push 1 1

  3. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1

  4. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2

  5. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2

  6. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3

  7. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3

  8. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3 4

  9. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3 4

  10. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3 4 5

  11. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their product 1 2 3 4 5

  12. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their product 1 2 3 4 5 4 5 *

  13. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their product 1 2 3 20 4 5 *

  14. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their sum 1 2 3 20

  15. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their sum 1 2 3 20 3 20 +

  16. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their sum 1 2 23 3 20 +

  17. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23

  18. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23 6

  19. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23 6

  20. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23 6 23 6 *

  21. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 138 23 6 *

  22. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 138

  23. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 138 2 138 *

  24. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 276 2 138 *

  25. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 276

  26. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 276 1 276 +

  27. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 277 1 276 +

  28. Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 277

More Related