What is trees in data structure?

All QuestionsCategory: Data StructureWhat is trees in data structure?
chetan shidling asked 4 years ago

I need short information.

1 Answers
Chetan Shidling answered 4 years ago

One tree is represented as a set of one or more nodes where one node is designated as the root of the tree and all the surviving nodes can be partitioned into non-empty sets any of which is a sub-tree of the root. Image shows a tree where node A is the root node and nodes B, C, and D remain children of the root node and set sub-trees of the tree rooted at node A.