Computing Theory > 4.3.2.1 Simple tree-traversal algorithms > Flashcards
What is pre-order traversal?
checks root first, then left subtree then right
can make a complete duplicate of a binary tree.
ILR
What is post-order traversal?
left subtree, right subtree, root
Infix to RPN (Reverse Polish Notation) conversions, producing a postfix expression from an expression tree, emptying a tree.
LRI
What is in order traversal?
checks left subtree, root, then right
binary search tree, outputting the contents of a binary search tree in ascending order
LIR