SlideShare a Scribd company logo
1 of 15
Welcome
to ❤ my
Presentation
Hello!
I am Marjuk Ahmed Siddiki
ID: 171-15-8959
Bio-Informatics
Daffodil International University
Discrete Mathematics - Trees
3
What is Discrete Math ?
"Discrete Math" is not the name of a branch of
mathematics, like number theory, algebra, calculus, etc.
Rather, it's a description of a set of branches of math
that all have in common the feature that they are
"discrete" rather than "continuous".
Discrete Math
What is tree?
An undirected graph is a tree if and only if there is a unique simple path
between any two of its vertices.
Every tree is a Graph, but every Graph is not a tree.
4
Basic of Tree
Node
Edge
Root
Leaf node
Depth
Height
5
Parent
Children
Sibling
Ancestors
Descendants
Subtree
Basic of Tree
○ Node: A node is a fundamental part of a
tree. Each letter represents one node.
Node often represent entities(complex
objects) such as people,car parts etc.
○ Edge: The arrows from one node to
another are called edge. Edge betweer the
nodes represent the way the nodes are
related.
6
Basic of Tree
○ Root: The root of the tree is the only node
in the tree that has no incoming edges.
Here, a is the root.
7
○ Leaf Node: A leaf node is a node that has no children.The
bottom nodes (with no outgoing edges) are the leaves .
○ Here, c , i , j , k , l , m are leaves Node.
Basic of Tree
○ Depth: Depth tells the number of steps
(nodes) to get from a node back to the
root.
8
○ Height: The height of a tree is equal to the
maximum level of any node in the tree.
This tree has height 5, so the maximum
depth is 4 (height - 1).
Basic of Tree
Parent: Any node, except root has exactly
one edge running upward to another node.
The node above it is called parent.
 a is the parent of b , c , d
 b is the parent of e
 d is the parent of f , g , h
 e is the parent of i , j
 f is the parent of k
 h is the parent of l , m
9
Basic of Tree
Sibling:
10
 b , c , d are siblings of each other
 f , g , h are siblings of each other
 i , j are siblings of each other
 l , m are siblings of each other
Basic of Tree
Child: Any node may have one or more lines
running downward to other nodes. Nodes
below are children.
11
 b , c , d are children of a
 f , g , h are children of d
 e is the children of b
 i , j are the children of e
 k is the children of f
 l , m are the children of h
Basic of Tree
Sub-Tree: A sub-tree of a given node
includes one of its children and all of that
child's descendants.
12
Basic of Tree
m-ary tree : A rooted tree is called an m-ary
tree if every internal vertex has no more
than m children.
13
full m-ary tree :A tree is called
a full m-ary tree if every internal
vertex has exactly m children.
m-ary tree
full-ary tree
Basic of Tree
binary tree : An m-ary tree with m = 2 is
called a binary tree
14
Thank ❤ YOU

More Related Content

Similar to Discrete Mathematics - Trees

Describe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docxDescribe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docx
andyb37
 
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
Manoj PAtil
 

Similar to Discrete Mathematics - Trees (20)

trees-and-forest.pdf
trees-and-forest.pdftrees-and-forest.pdf
trees-and-forest.pdf
 
Describe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docxDescribe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docx
 
Trees
TreesTrees
Trees
 
Farhana shaikh webinar_treesindiscretestructure
Farhana shaikh webinar_treesindiscretestructureFarhana shaikh webinar_treesindiscretestructure
Farhana shaikh webinar_treesindiscretestructure
 
Binary tree traversal ppt - 02.03.2020
Binary tree traversal   ppt - 02.03.2020Binary tree traversal   ppt - 02.03.2020
Binary tree traversal ppt - 02.03.2020
 
Tree(Directed and undirected tree)
Tree(Directed and undirected tree)Tree(Directed and undirected tree)
Tree(Directed and undirected tree)
 
Tree
TreeTree
Tree
 
Tree in data structure
Tree in data structureTree in data structure
Tree in data structure
 
discrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptxdiscrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptx
 
DSA IV Unit.pptx
DSA IV Unit.pptxDSA IV Unit.pptx
DSA IV Unit.pptx
 
Dsc++ unit 3 notes
Dsc++ unit 3 notesDsc++ unit 3 notes
Dsc++ unit 3 notes
 
7 chapter4 trees_binary
7 chapter4 trees_binary7 chapter4 trees_binary
7 chapter4 trees_binary
 
Trees
TreesTrees
Trees
 
Lect 21 Zaheer Abbas
Lect 21 Zaheer AbbasLect 21 Zaheer Abbas
Lect 21 Zaheer Abbas
 
Module 8.1 Trees.pdf
Module 8.1 Trees.pdfModule 8.1 Trees.pdf
Module 8.1 Trees.pdf
 
Lect 19 Zaheer Abbas
Lect 19 Zaheer AbbasLect 19 Zaheer Abbas
Lect 19 Zaheer Abbas
 
Introduction to Tree .pptx
Introduction to Tree .pptxIntroduction to Tree .pptx
Introduction to Tree .pptx
 
Introduction to tree ds
Introduction to tree dsIntroduction to tree ds
Introduction to tree ds
 
Chapter 8 ds
Chapter 8 dsChapter 8 ds
Chapter 8 ds
 
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
 

More from Marjuk Ahmed Siddiki

More from Marjuk Ahmed Siddiki (6)

Python Programming Full Course || Beginner to Intermediate || Bangla (বাংলা) ...
Python Programming Full Course || Beginner to Intermediate || Bangla (বাংলা) ...Python Programming Full Course || Beginner to Intermediate || Bangla (বাংলা) ...
Python Programming Full Course || Beginner to Intermediate || Bangla (বাংলা) ...
 
Rgb and-cmy-color-model
Rgb and-cmy-color-modelRgb and-cmy-color-model
Rgb and-cmy-color-model
 
Farm House - Java Project
Farm House - Java ProjectFarm House - Java Project
Farm House - Java Project
 
Internet of Things (IoT)
Internet of Things (IoT)Internet of Things (IoT)
Internet of Things (IoT)
 
Statistics and Probability - all in one
Statistics and Probability - all in oneStatistics and Probability - all in one
Statistics and Probability - all in one
 
Bio Informatics - Genome Assembly
Bio Informatics - Genome AssemblyBio Informatics - Genome Assembly
Bio Informatics - Genome Assembly
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.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...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Discrete Mathematics - Trees

  • 2. Hello! I am Marjuk Ahmed Siddiki ID: 171-15-8959 Bio-Informatics Daffodil International University
  • 4. What is Discrete Math ? "Discrete Math" is not the name of a branch of mathematics, like number theory, algebra, calculus, etc. Rather, it's a description of a set of branches of math that all have in common the feature that they are "discrete" rather than "continuous". Discrete Math What is tree? An undirected graph is a tree if and only if there is a unique simple path between any two of its vertices. Every tree is a Graph, but every Graph is not a tree. 4
  • 5. Basic of Tree Node Edge Root Leaf node Depth Height 5 Parent Children Sibling Ancestors Descendants Subtree
  • 6. Basic of Tree ○ Node: A node is a fundamental part of a tree. Each letter represents one node. Node often represent entities(complex objects) such as people,car parts etc. ○ Edge: The arrows from one node to another are called edge. Edge betweer the nodes represent the way the nodes are related. 6
  • 7. Basic of Tree ○ Root: The root of the tree is the only node in the tree that has no incoming edges. Here, a is the root. 7 ○ Leaf Node: A leaf node is a node that has no children.The bottom nodes (with no outgoing edges) are the leaves . ○ Here, c , i , j , k , l , m are leaves Node.
  • 8. Basic of Tree ○ Depth: Depth tells the number of steps (nodes) to get from a node back to the root. 8 ○ Height: The height of a tree is equal to the maximum level of any node in the tree. This tree has height 5, so the maximum depth is 4 (height - 1).
  • 9. Basic of Tree Parent: Any node, except root has exactly one edge running upward to another node. The node above it is called parent.  a is the parent of b , c , d  b is the parent of e  d is the parent of f , g , h  e is the parent of i , j  f is the parent of k  h is the parent of l , m 9
  • 10. Basic of Tree Sibling: 10  b , c , d are siblings of each other  f , g , h are siblings of each other  i , j are siblings of each other  l , m are siblings of each other
  • 11. Basic of Tree Child: Any node may have one or more lines running downward to other nodes. Nodes below are children. 11  b , c , d are children of a  f , g , h are children of d  e is the children of b  i , j are the children of e  k is the children of f  l , m are the children of h
  • 12. Basic of Tree Sub-Tree: A sub-tree of a given node includes one of its children and all of that child's descendants. 12
  • 13. Basic of Tree m-ary tree : A rooted tree is called an m-ary tree if every internal vertex has no more than m children. 13 full m-ary tree :A tree is called a full m-ary tree if every internal vertex has exactly m children. m-ary tree full-ary tree
  • 14. Basic of Tree binary tree : An m-ary tree with m = 2 is called a binary tree 14