Content deleted Content added
Sectioning |
→Iterative traversal: Link in-place algorithm |
||
Line 60:
== Iterative traversal ==
All of the above recursive algorithms use stack space proportional to the depth of the tree. If we store on each node a reference to its parent, then we can implement all of these traversals
<pre>
|