Chapter 3 - Trees
Chapter 3 - Trees
and Algorithms
Chapter 3
Trees
Data structure such as Arrays, Stacks, Linked
List and Queues are linear data structure.
Elements are arranged in linear manner i.e.
one after another.
Tree is a non-linear data structure.
Introduction Tree imposes a Hierarchical structure, on a
collection of items.
Several Practical applications
Organization charts.
Family hierarchy
Representation of algebraic expression
Example
Organizational
Chart
Example - Unix / Windows file structure
Directory
onverting Algebraic
Expression into
Binary Tree
/Expression Tree
Draw
Binary Tree
Draw
Binary Tree
Draw
Binary Tree
Draw
Binary Tree
Draw
Binary Tree
Draw
Binary Tree
END