Definition: A technique for processing the nodes of a tree in some order.
Specialization (... is a kind of me.)
preorder traversal, in-order traversal, postorder traversal, level-order traversal.
Demonstration of preorder, in-order, and postorder traversal on a binary tree.
If you have suggestions, corrections, or comments, please get in touch with Paul E. Black.
Entry modified 23 April 2007.
HTML page formatted Tue Dec 6 16:16:33 2011.
Cite this as:
Paul E. Black, "tree traversal", in Dictionary of Algorithms and Data Structures [online], Paul E. Black, ed., U.S. National Institute of Standards and Technology. 23 April 2007. (accessed TODAY) Available from: http://www.nist.gov/dads/HTML/treeTraversal.html