From charlesreid1

(Created page with "=Binary Trees - In-order Traversal= ==Basic idea== The basis of in-order traversal is that the binary tree be sorted. This implements the convention of a sorted binary tree,...")
 
No edit summary
Line 8: Line 8:


The value of node k is less than every node in the right subtree of node k. (Right goes second. Left to right precedence.)
The value of node k is less than every node in the right subtree of node k. (Right goes second. Left to right precedence.)
=Flags=
{{TreesFlag}}
{{AlgorithmsFlag}}
[[Category:Trees]]
[[Category:Traversal]]
[[Category:Binary Trees]]
[[Category:Recursion]]

Revision as of 19:35, 11 June 2017

Binary Trees - In-order Traversal

Basic idea

The basis of in-order traversal is that the binary tree be sorted. This implements the convention of a sorted binary tree, a recursive definition:

The value of node k is greater than every node in the left subtree of node k. (Left goes first. Left to right precedence.)

The value of node k is less than every node in the right subtree of node k. (Right goes second. Left to right precedence.)


Flags