- Visit the current node (in the figure: position red)
- Recursively traverse the current node’s left subtree
- Recursively traverse the current node’s right subtree
Pre-order traversal (red node): F, B, A, D, C, E, G, I, H
Bibliography
“Tree Traversal.” 2022. Wikipedia, April. https://en.wikipedia.org/w/index.php?title=Tree_traversal&oldid=1083604462.