Convert the tree to binary tree

A general tree is an unordered hierarchical data structure with unlimited children nodes for each parent. A binary tree only has a maximum of two children nodes for each parent, commonly called left node and right node.

Converting from tree to binary tree would simply require that you start with the root node and start copying each node into the binary tree. The only rules would be that each node cannot have more than two children, including the root node.

You alo need to know a little about the target binary tree, such as should it be ordered? Should it be complete?

Converting from tree to binary tree would simply require that you start with the root node and start copying each node into the binary tree. The only rules would be that each node cannot have more than two children, including the root node.

You alo need to know a little about the target binary tree, such as should it be ordered? Should it be complete?

Use the left child right sibling relation

It is incorporated into other device,for example:music players, mobile phones,digital cameras,it is specialist It Hardware or networking,and any types of domestic control system.

1 to 2,3,4,5