Preorder and Postorder Traversal of Rooted Trees
Initializing live version

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
Many algorithms that make use of trees often traverse the tree in some order, that is, they visit each vertex in a systematic way. Two commonly used traversals are preorder and postorder. A preorder traversal of is defined by a two-step recursion:
Contributed by: Jaime Rangel-Mondragon (August 2011)
Open content licensed under CC BY-NC-SA
Snapshots
Details
Permanent Citation