SlideShare a Scribd company logo
1 of 28
TREE AND TERMINOLOGY
-RACKSAVI.R,
I M.Sc Information Technology,
V.V.Vanniaperumal college for women,
Virudhunagar.
What is tree?
• Tree is a non-linear data structure which
organizes data in hierarchical structure and
this is a recursive definition.
• Tree data structure is a collection of data
(Node) which is organized in hierarchical
structure recursively
• In a tree data structure, if we have N number
of nodes then we can have a maximum of N-1
number of links.
TERMINOLOGY
1. Root
• In a tree data structure, the first node is called
as Root Node.
• Every tree must have a root node.
• We can say that the root node is the origin of
the tree data structure.
• In any tree, there must be only one root
node. We never have multiple root nodes in a
tree.
2. Edge
• In a tree data structure, the connecting link
between any two nodes is called as EDGE. In a
tree with 'N' number of nodes there will be a
maximum of 'N-1' number of edges.
3. Parent
• In a tree data structure, the node which is a
predecessor of any node is called as PARENT
NODE.
• The node which has a branch from it to any
other node is called a parent node.
• Parent node can also be defined as "The node
which has child / children".
4. Child
• n a tree data structure, the node which is
descendant of any node is called as CHILD
Node.
• The node which has a link from its parent
node is called as child node.
• In a tree, any parent node can have any
number of child nodes.
• In a tree, all the nodes except root are child
nodes.
5. Siblings
• In a tree data structure, nodes which belong
to same Parent are called as SIBLINGS.
6. Leaf
• In a tree data structure, the node which does
not have a child is called as LEAF Node.
• In a tree data structure, the leaf nodes are
also called as External Nodes. External node is
also a node with no child.
• In a tree, leaf node is also called as 'Terminal'
node.
7. Internal
• In a tree data structure, the node which has
atleast one child is called as INTERNAL Node.
• In a tree data structure, nodes other than leaf
nodes are called as Internal Nodes.
• The root node is also said to be Internal Node
if the tree has more than one node.
• Internal nodes are also called as 'Non-Terminal'
nodes.
8. Degree
• In a tree data structure, the total number of
children of a node is called as DEGREE of that
Node.
• The highest degree of a node among all the
nodes in a tree is called as 'Degree of Tree'
9. Level
• In a tree data structure, the root node is said
to be at Level 0 and the children of root node
are at Level 1 and the children of the nodes
which are at Level 1 will be at Level 2 and so
on...
• In a tree each step from top to bottom is
called as a Level and the Level count starts
with '0' and incremented by one at each level
(Step).
10. Height
• In a tree data structure, the total number of
edges from leaf node to a particular node in
the longest path is called as HEIGHT of that
Node.
• In a tree, height of the root node is said to be
height of the tree. In a tree, height of all leaf
nodes is '0'.
11. Depth
• In a tree data structure, the total number of
egdes from root node to a particular node is
called as DEPTH of that Node.
• In a tree, the total number of edges from root
node to a leaf node in the longest path is said
to be Depth of the tree.
• In a tree, depth of the root node is '0'.
12. Path
• In a tree data structure, the sequence of
Nodes and Edges from one node to another
node is called as PATH between that two
Nodes.
• Length of a Path is total number of nodes in
that path.
• For example the path A - B - E - J has length 4.
13. Sub Tree
• In a tree data structure, each child from a
node forms a subtree recursively. Every child
node will form a subtree on its parent node.
Terminology of tree

More Related Content

What's hot

What's hot (20)

Tree Traversal
Tree TraversalTree Traversal
Tree Traversal
 
Linked list
Linked listLinked list
Linked list
 
Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm
 
stack & queue
stack & queuestack & queue
stack & queue
 
Tree - Data Structure
Tree - Data StructureTree - Data Structure
Tree - Data Structure
 
Tree-In Data Structure
Tree-In Data StructureTree-In Data Structure
Tree-In Data Structure
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Queue ppt
Queue pptQueue ppt
Queue ppt
 
Graph traversals in Data Structures
Graph traversals in Data StructuresGraph traversals in Data Structures
Graph traversals in Data Structures
 
Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)
 
Binary tree
Binary treeBinary tree
Binary tree
 
single linked list
single linked listsingle linked list
single linked list
 
BINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.pptBINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.ppt
 
Threaded Binary Tree
Threaded Binary TreeThreaded Binary Tree
Threaded Binary Tree
 
Binary search tree(bst)
Binary search tree(bst)Binary search tree(bst)
Binary search tree(bst)
 
Linear data structure concepts
Linear data structure conceptsLinear data structure concepts
Linear data structure concepts
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
Linked list implementation of Queue
Linked list implementation of QueueLinked list implementation of Queue
Linked list implementation of Queue
 
Breadth First Search & Depth First Search
Breadth First Search & Depth First SearchBreadth First Search & Depth First Search
Breadth First Search & Depth First Search
 

Similar to Terminology of tree

Final tree.ppt tells about tree presentation
Final tree.ppt tells about tree presentationFinal tree.ppt tells about tree presentation
Final tree.ppt tells about tree presentationnakulvarshney371
 
Tree-introduction ,Definition, Types of BT
Tree-introduction ,Definition, Types of BTTree-introduction ,Definition, Types of BT
Tree-introduction ,Definition, Types of BTVikasNirgude2
 
Introduction to tree ds
Introduction to tree dsIntroduction to tree ds
Introduction to tree dsViji B
 
Trees and Graphs in data structures and Algorithms
Trees and Graphs in data structures and AlgorithmsTrees and Graphs in data structures and Algorithms
Trees and Graphs in data structures and AlgorithmsBHARATH KUMAR
 
Tree Basic concepts of Tree in Data Structure
Tree Basic concepts of Tree in Data StructureTree Basic concepts of Tree in Data Structure
Tree Basic concepts of Tree in Data StructureManoj PAtil
 
Trees in data structures
Trees in data structuresTrees in data structures
Trees in data structuresASairamSairam1
 
Tree Introduction.pptx
Tree Introduction.pptxTree Introduction.pptx
Tree Introduction.pptxRahulAI
 
DATA STUCTURES-TREES.pptx
DATA STUCTURES-TREES.pptxDATA STUCTURES-TREES.pptx
DATA STUCTURES-TREES.pptxAryaMNair6
 
cppggggggggggggggggggggggggggggggggggggggg.pptx
cppggggggggggggggggggggggggggggggggggggggg.pptxcppggggggggggggggggggggggggggggggggggggggg.pptx
cppggggggggggggggggggggggggggggggggggggggg.pptxShruthiS594607
 
tree traversals.pdf
tree traversals.pdftree traversals.pdf
tree traversals.pdfMaryJacob24
 
Tree_Definition.pptx
Tree_Definition.pptxTree_Definition.pptx
Tree_Definition.pptxsandeep54552
 

Similar to Terminology of tree (20)

Trees-Terminology.pptx
Trees-Terminology.pptxTrees-Terminology.pptx
Trees-Terminology.pptx
 
UNIT-4 TREES.ppt
UNIT-4 TREES.pptUNIT-4 TREES.ppt
UNIT-4 TREES.ppt
 
Final tree.ppt tells about tree presentation
Final tree.ppt tells about tree presentationFinal tree.ppt tells about tree presentation
Final tree.ppt tells about tree presentation
 
Tree-introduction ,Definition, Types of BT
Tree-introduction ,Definition, Types of BTTree-introduction ,Definition, Types of BT
Tree-introduction ,Definition, Types of BT
 
Module 8.1 Trees.pdf
Module 8.1 Trees.pdfModule 8.1 Trees.pdf
Module 8.1 Trees.pdf
 
Introduction to tree ds
Introduction to tree dsIntroduction to tree ds
Introduction to tree ds
 
Unit 2_1 Tree.pdf
Unit 2_1 Tree.pdfUnit 2_1 Tree.pdf
Unit 2_1 Tree.pdf
 
Trees and Graphs in data structures and Algorithms
Trees and Graphs in data structures and AlgorithmsTrees and Graphs in data structures and Algorithms
Trees and Graphs in data structures and Algorithms
 
tree in Data Structures
tree in Data Structurestree in Data Structures
tree in Data Structures
 
Unit 5 Tree.pptx
Unit 5 Tree.pptxUnit 5 Tree.pptx
Unit 5 Tree.pptx
 
Tree Basic concepts of Tree in Data Structure
Tree Basic concepts of Tree in Data StructureTree Basic concepts of Tree in Data Structure
Tree Basic concepts of Tree in Data Structure
 
Trees in data structures
Trees in data structuresTrees in data structures
Trees in data structures
 
Tree Introduction.pptx
Tree Introduction.pptxTree Introduction.pptx
Tree Introduction.pptx
 
Trees
TreesTrees
Trees
 
DATA STUCTURES-TREES.pptx
DATA STUCTURES-TREES.pptxDATA STUCTURES-TREES.pptx
DATA STUCTURES-TREES.pptx
 
Module - 5_Trees.pdf
Module - 5_Trees.pdfModule - 5_Trees.pdf
Module - 5_Trees.pdf
 
cppggggggggggggggggggggggggggggggggggggggg.pptx
cppggggggggggggggggggggggggggggggggggggggg.pptxcppggggggggggggggggggggggggggggggggggggggg.pptx
cppggggggggggggggggggggggggggggggggggggggg.pptx
 
tree traversals.pdf
tree traversals.pdftree traversals.pdf
tree traversals.pdf
 
Tree_Definition.pptx
Tree_Definition.pptxTree_Definition.pptx
Tree_Definition.pptx
 
Unit 3 trees
Unit 3   treesUnit 3   trees
Unit 3 trees
 

Recently uploaded

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 

Recently uploaded (20)

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 

Terminology of tree

  • 1. TREE AND TERMINOLOGY -RACKSAVI.R, I M.Sc Information Technology, V.V.Vanniaperumal college for women, Virudhunagar.
  • 2. What is tree? • Tree is a non-linear data structure which organizes data in hierarchical structure and this is a recursive definition. • Tree data structure is a collection of data (Node) which is organized in hierarchical structure recursively
  • 3. • In a tree data structure, if we have N number of nodes then we can have a maximum of N-1 number of links.
  • 5. 1. Root • In a tree data structure, the first node is called as Root Node. • Every tree must have a root node. • We can say that the root node is the origin of the tree data structure. • In any tree, there must be only one root node. We never have multiple root nodes in a tree.
  • 6.
  • 7. 2. Edge • In a tree data structure, the connecting link between any two nodes is called as EDGE. In a tree with 'N' number of nodes there will be a maximum of 'N-1' number of edges.
  • 8. 3. Parent • In a tree data structure, the node which is a predecessor of any node is called as PARENT NODE. • The node which has a branch from it to any other node is called a parent node. • Parent node can also be defined as "The node which has child / children".
  • 9.
  • 10. 4. Child • n a tree data structure, the node which is descendant of any node is called as CHILD Node. • The node which has a link from its parent node is called as child node. • In a tree, any parent node can have any number of child nodes. • In a tree, all the nodes except root are child nodes.
  • 11.
  • 12. 5. Siblings • In a tree data structure, nodes which belong to same Parent are called as SIBLINGS.
  • 13. 6. Leaf • In a tree data structure, the node which does not have a child is called as LEAF Node. • In a tree data structure, the leaf nodes are also called as External Nodes. External node is also a node with no child. • In a tree, leaf node is also called as 'Terminal' node.
  • 14.
  • 15. 7. Internal • In a tree data structure, the node which has atleast one child is called as INTERNAL Node. • In a tree data structure, nodes other than leaf nodes are called as Internal Nodes. • The root node is also said to be Internal Node if the tree has more than one node. • Internal nodes are also called as 'Non-Terminal' nodes.
  • 16.
  • 17. 8. Degree • In a tree data structure, the total number of children of a node is called as DEGREE of that Node. • The highest degree of a node among all the nodes in a tree is called as 'Degree of Tree'
  • 18.
  • 19. 9. Level • In a tree data structure, the root node is said to be at Level 0 and the children of root node are at Level 1 and the children of the nodes which are at Level 1 will be at Level 2 and so on... • In a tree each step from top to bottom is called as a Level and the Level count starts with '0' and incremented by one at each level (Step).
  • 20.
  • 21. 10. Height • In a tree data structure, the total number of edges from leaf node to a particular node in the longest path is called as HEIGHT of that Node. • In a tree, height of the root node is said to be height of the tree. In a tree, height of all leaf nodes is '0'.
  • 22.
  • 23. 11. Depth • In a tree data structure, the total number of egdes from root node to a particular node is called as DEPTH of that Node. • In a tree, the total number of edges from root node to a leaf node in the longest path is said to be Depth of the tree. • In a tree, depth of the root node is '0'.
  • 24.
  • 25. 12. Path • In a tree data structure, the sequence of Nodes and Edges from one node to another node is called as PATH between that two Nodes. • Length of a Path is total number of nodes in that path. • For example the path A - B - E - J has length 4.
  • 26.
  • 27. 13. Sub Tree • In a tree data structure, each child from a node forms a subtree recursively. Every child node will form a subtree on its parent node.