The traversal of a binary tree--c# program An example of binary tree traversal about binary tree introduction in front of a blog A brief introduction to binary tree and a two-tree storage structure traversal scheme the traversal of the binary tree is divided into the following three types:
Sequential traversal: The traversal order rule is "around the root"
Middle Sequence traversal: Traversal order rule is "Zogen right"
Post-order traversal: The traversal sequence rule is "left and right root"
For example, subsection is a two-pronged tree:
is a two-pronged tree:
First order traversal (root around): Abcdefghi
Middle sequence traversal (left root right): Bdcaehgif
Post-post traversal (left and right root): Dcbhigfea
C # code example building a binary tree
//
First Order traversal
//
Middle Sequence traversal
//
Post-post traversal
//
Traversal of binary Tree--c# program example traversal of binary tree