Explain the process of converting a tree into a binary tree.
Answers
Answered by
2
Answer:
Explanation:
A tree is a hierarchical data structure that has unlimited children nodes. A binary tree just has two children nodes for a parent. It is known as the right node and the left node.
For converting a tree to binary tree, simply start with the root node and copy each node to the binary tree. The only thing to notice is that a node cannot have more than two children, along with the root node. In this way, a tree can be converted to a binary tree.
Similar questions
Math,
6 months ago
Biology,
6 months ago
CBSE BOARD X,
6 months ago
Science,
1 year ago
Biology,
1 year ago