Documente Academic
Documente Profesional
Documente Cultură
PPO Presentation.
Objectives:
The top of the stack is the top most part of the stack,
something like a rectangular box which has only
opening at the top.
Simple representation of a
Stack.
* All the elements in the stack follow the simple rule of Last In First
Out (LIFO). This means that the elements inserted in the last are the
elements to be deleted first.
Terminology:
Infix expressions
An operator appears between its operands
Example: a + b
Prefix expressions
An operator appears before its operands
Example: + a b
Postfix expressions
An operator appears after its operands
Example: a b +
Converting an Infix to
Prefix Expression.