Traversing a tree means visiting all the nodes
of a tree in order.
There are three different
methods of traversing a binary tree:
- pre-order
traversal
- in-order
traversal
- post-order
traversal
In each case, the
algorithms for traversal are recursive - they call themselves.
|