Tree
Tree
STRUCTURES
MAHESH GOYANI
MAHATMA GANDHI INSTITUE OF TECHNICAL EDUCATION & RESEARCH CENTER
[email protected]
There are a number of applications where linear data structures are not appropriate.
Consider a tree of a Colleges.
A linear linked list will not be able to capture the tree-like relationship with ease.
Shortly, we will see the applications where linear data structures are not suitable.
Ancestor All the nodes along the path from root to node
Descents All the nodes along the path from node to terminal
Size The number of descendants plus one for the node itself
Trees
Height Weight
Balanced Tree Balanced Tree
AVL Tree
Algorithms