Tree traversal - Wikipedia, the free encyclopedia
Tree traversal
From Wikipedia, the free encyclopedia
This article needs additional citations for verification. (May 2009)
Graph and tree
search algorithmsListings Related topics
- Dynamic programming
- Graph traversal
- Tree traversal
- Search games
In computer science, tree traversal refers to the process of visiting (examining and/or updating) each node in a tree data structure, exactly once, in a systematic way. Such traversals are classified by the order in which the nodes are visited. The following algorithms are described for a binary tree, but they may be generalized to other trees as well.