Section 9 Chapter 55 - Reverse Polish Notation Flashcards
1
Q
Advantages of RPN (2)
A
- Eliminates need for brackets
- Expressions in a suitable form for evaluation using a stack
2
Q
Use of RPN
A
Used in interpreters based on a stack (e.g. bytecode)
3
Q
How to convert infix to postfix with a tree
A
Do a post order traversal on it