Define the tree data structure.

Category: Data StructureDefine the tree data structure.
1 Answers
Editor">Editor Staff answered 2 years ago

The Tree is a recursive data structure containing the set of one or more data nodes where one node is designated as the root of the tree while the remaining nodes are called as the children of the root. The nodes other than the root node are partitioned into the nonempty sets where each one of them is to be called sub-tree.