<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Tree traversal - Page 9 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Tree_traversal&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Tree_traversal&amp;p=10">3.Next</a>
</p>
<p>the current node's left subtree.<br/>
# Recursively traverse the current node's right subtree.</p>

<p>The pre-order traversal is a <a href="page.php?w=Topological_sorting">topologically sorted</a> one, because a parent node is processed before any of its child nodes is done.</p>

<p><big>Post-order, LRN</big></p>
<p>
# Recursively traverse the current node's left subtree.<br/>
# Recursively traverse the current node's right subtree.<br/>
# Visit the current node (in the figure: position blue).</p>

<p>Post-order traversal can be useful to get <a href="page.php?w=Reverse_Polish_notation">postfix expression</a></p><p>
<a accesskey="1" href="page.php?w=Tree_traversal&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Tree_traversal&amp;p=10">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
