SlideShare a Scribd company logo
Tree
Function
Graph
Discrete Mathematics
Function Requirements
There are rules for functions to be well defined, or correct.
• No element of the domain must be left unmapped.
• No element of the domain may map to more than one
element of the co-domain.
Tree, function and graph
Definition 1
• Let A and B be nonempty sets.
A function f from A to B is an
assignment of exactly one
element of B to each element
of A.
Functions are specified as assignments as in Figure 1.
DEFINITION 2
If f is a function from A to
B, we say that A is the
domain of f and B is the
co-domain of f.
Figure 2 represents a function f from A to B.
Is it a function? If not state
the reasons.
One-to-One
one-to-one or an injunction function never
assign the same value to two different domain
elements.
Explain why?
When every member of the codomain is the image of some element of
the domain then functions are called onto functions or a surjection.
Onto Functions.
Explain Why?
Check these!
Bijective(both one-to-one and
onto)
• If the function is both one-to-
one and onto that function is
bijective.
L23 15
Trees
A very important type of graph in CS is called a
tree:
Real
Tree
transformation
L23 16
Trees
A very important type of graph in CS is called a
tree:
Real Abstract
Tree Tree
transformation
Tree!A tree is a connected undirected graph with no simple circuits.
Find which of them are not trees and why!
A tree with n vertices has n − 1 edges.
Tree, function and graph
Spanning Trees
• Let G be a simple graph. A spanning
tree of G is a subgraph of G that is a
tree containing every vertex of G.
• A simple graph with a spanning tree
must be connected, because there is
a path in the spanning tree between
any two vertices.
Producing Spanning Tree
Other 4 Spanning trees of G
Minimum Spanning Trees
A minimum spanning tree in a
connected weighted graph is a
spanning tree that has the
smallest possible sum of weights
of its edges.
Find Minimum Spanning Tree
We will discuss two
algorithms for
constructing minimum
spanning trees.
Prim’s Algorithm
Solution
Try this
Kruskal’s Algorithm
Tree, function and graph
Reviews from previous
classes
The diameter of a graph is the length of the shortest path between the most distanced
nodes. The highest value of the topological distance of this matrix is the diameter of
the graph (d=4).
Diameter of a Graph
Find out the diameter of the following
graph
If P, A1, A2, A5, A3, A6, Q are the nodes then D=?
Isolated vertex
• A vertex of degree zero is called isolated. It
follows that an isolated vertex is not adjacent
to any vertex.
Adjacent edge
• When two vertices of a graph are
connected by an edge, these
vertices are adjacent vertices.
• When two edges meet at the
same vertex, those two edges are
said to be adjacent.
Write the adjacent edges of vertex a.
An Unconnected, undirected graph
• Clearly, the graph is not connected.However, the figure actually represents
the undirected graph G8=(v , e) , given by
Write the degree of the entire graph.
L23 39
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 40
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 41
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 42
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 43
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 44
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 45
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 46
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 47
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 48
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
L23 49
Bipartite Graphs
EG: C4 is a bichromatic:
And so is bipartite, if we redraw it:
Q: For which n is Cn bipartite?
Check whether bipartite or not!
Best wishes!

More Related Content

What's hot (20)

PPTX
Graph Theory
Ehsan Hamzei
 
PPT
Graph coloring
Delowar Hossain
 
PDF
Chapter 2: Relations
nszakir
 
PPTX
CONTEXT FREE GRAMMAR
Zahid Parvez
 
PPTX
Interesting applications of graph theory
Tech_MX
 
PPT
Graph theory presentation
Aliul Kadir Akib
 
PDF
introduction to graph theory
Chuckie Balbuena
 
PPTX
Graph theory
AparnaKumari31
 
PPTX
Kruskal’s algorithm
Abdul Moiz Lakhani
 
PPTX
Context free grammar
Mohammad Ilyas Malik
 
PPT
Graph theory
Jeane Paguio
 
PPTX
Binomial expansion
Denmar Marasigan
 
PPT
System Of Linear Equations
saahil kshatriya
 
PPT
Graphs - Discrete Math
Sikder Tahsin Al-Amin
 
PDF
Graph Theory: Planarity & Dual Graph
Ashikur Rahman
 
PPTX
Propositional logic
ForwardBlog Enewzletter
 
PPTX
Network and Tree in Graph Theory
Rabin BK
 
PDF
Math induction principle (slides)
IIUM
 
PPT
Rational functions
zozima
 
Graph Theory
Ehsan Hamzei
 
Graph coloring
Delowar Hossain
 
Chapter 2: Relations
nszakir
 
CONTEXT FREE GRAMMAR
Zahid Parvez
 
Interesting applications of graph theory
Tech_MX
 
Graph theory presentation
Aliul Kadir Akib
 
introduction to graph theory
Chuckie Balbuena
 
Graph theory
AparnaKumari31
 
Kruskal’s algorithm
Abdul Moiz Lakhani
 
Context free grammar
Mohammad Ilyas Malik
 
Graph theory
Jeane Paguio
 
Binomial expansion
Denmar Marasigan
 
System Of Linear Equations
saahil kshatriya
 
Graphs - Discrete Math
Sikder Tahsin Al-Amin
 
Graph Theory: Planarity & Dual Graph
Ashikur Rahman
 
Propositional logic
ForwardBlog Enewzletter
 
Network and Tree in Graph Theory
Rabin BK
 
Math induction principle (slides)
IIUM
 
Rational functions
zozima
 

Viewers also liked (20)

PPT
Law of motion
amitgarg46
 
PPTX
Rgb and cmy color model
University of Potsdam
 
PPT
Law of motion
Aashutosh Agrawal
 
PPTX
Reviewer prelims
Juan Apolinario Reyes
 
PPTX
Newton's 1st law of motion ~by A.S.Khan
A.Samad Khan
 
PPT
Motion and it's laws
Aditya Jalan
 
PPT
Graph functions
Shakila Safri
 
PPTX
Derivativedemo
Paul Roundy
 
PPTX
Calculus 11.2
melvinowilliams
 
PPTX
Right And Wrong’S Of Pre Calculus
guestfe28d3
 
PPTX
Math major 14 differential calculus pw
Reymart Bargamento
 
PPT
Add Math(F5) Graph Of Function Ii 2.1
roszelan
 
PPT
Pre-Calculus 11 - Introduction
Juan Miguel Palero
 
PPTX
Relations and functions (Mariam)
Mariam Bosraty
 
PPT
7_Intro_to_Functions
nechamkin
 
PPT
newton's law of motion
Christine Santos
 
PPTX
Relations & functions.pps
indu psthakur
 
PPT
PPt on Functions
coolhanddav
 
PPT
Application of Mathematics in Business : F 107 - Group K
jafar_sadik
 
PPT
Force & Motion
Joan Shinkle
 
Law of motion
amitgarg46
 
Rgb and cmy color model
University of Potsdam
 
Law of motion
Aashutosh Agrawal
 
Reviewer prelims
Juan Apolinario Reyes
 
Newton's 1st law of motion ~by A.S.Khan
A.Samad Khan
 
Motion and it's laws
Aditya Jalan
 
Graph functions
Shakila Safri
 
Derivativedemo
Paul Roundy
 
Calculus 11.2
melvinowilliams
 
Right And Wrong’S Of Pre Calculus
guestfe28d3
 
Math major 14 differential calculus pw
Reymart Bargamento
 
Add Math(F5) Graph Of Function Ii 2.1
roszelan
 
Pre-Calculus 11 - Introduction
Juan Miguel Palero
 
Relations and functions (Mariam)
Mariam Bosraty
 
7_Intro_to_Functions
nechamkin
 
newton's law of motion
Christine Santos
 
Relations & functions.pps
indu psthakur
 
PPt on Functions
coolhanddav
 
Application of Mathematics in Business : F 107 - Group K
jafar_sadik
 
Force & Motion
Joan Shinkle
 
Ad

Similar to Tree, function and graph (20)

PDF
graph_theory_1-11.pdf___________________
ssuser1989da
 
PDF
26 spanning
Aŕŷa Ķĥaŕel
 
PPT
Graph theory concepts complex networks presents-rouhollah nabati
nabati
 
PPTX
graph theory
Shashank Singh
 
PDF
Siegel
Joel Siegel
 
PDF
27-1. Connected Components Biconnected Components.pdf
arnavytstudio2814
 
PPT
Double Patterning (4/2 update)
Danny Luk
 
PPTX
Graph Theory for graduates level PPT by Biswas.pptx
surname7854
 
PDF
On Algorithmic Problems Concerning Graphs of Higher Degree of Symmetry
GiselleginaGloria
 
PDF
An introduction to the graph theory in discrete mathematics
hassanbokhari14
 
PPTX
Matrix representation of graph
Rounak Biswas
 
PPTX
GRAPH THEORY AND ITS APPLICATIONS.......
NIRAIMATHIE1
 
PPTX
Unit 2: All
Hector Zenil
 
PPT
Data Structures-Non Linear DataStructures-Graphs
sailaja156145
 
PDF
Deep learning book_chap_02
HyeongGooKang
 
PDF
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
Fransiskeran
 
PDF
transplantation-isospectral-poster
Feynman Liang
 
PDF
Graph Dynamical System on Graph Colouring
Clyde Shen
 
PPTX
General_Mathematics_Chapter_1_(Part1)_Lesson_1.1_Representation_of_Functions....
ErickoAlegria2
 
PPTX
Elements of Graph Theory for IS.pptx
miki304759
 
graph_theory_1-11.pdf___________________
ssuser1989da
 
26 spanning
Aŕŷa Ķĥaŕel
 
Graph theory concepts complex networks presents-rouhollah nabati
nabati
 
graph theory
Shashank Singh
 
Siegel
Joel Siegel
 
27-1. Connected Components Biconnected Components.pdf
arnavytstudio2814
 
Double Patterning (4/2 update)
Danny Luk
 
Graph Theory for graduates level PPT by Biswas.pptx
surname7854
 
On Algorithmic Problems Concerning Graphs of Higher Degree of Symmetry
GiselleginaGloria
 
An introduction to the graph theory in discrete mathematics
hassanbokhari14
 
Matrix representation of graph
Rounak Biswas
 
GRAPH THEORY AND ITS APPLICATIONS.......
NIRAIMATHIE1
 
Unit 2: All
Hector Zenil
 
Data Structures-Non Linear DataStructures-Graphs
sailaja156145
 
Deep learning book_chap_02
HyeongGooKang
 
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
Fransiskeran
 
transplantation-isospectral-poster
Feynman Liang
 
Graph Dynamical System on Graph Colouring
Clyde Shen
 
General_Mathematics_Chapter_1_(Part1)_Lesson_1.1_Representation_of_Functions....
ErickoAlegria2
 
Elements of Graph Theory for IS.pptx
miki304759
 
Ad

More from University of Potsdam (20)

PPTX
Computer fundamentals 01
University of Potsdam
 
PPTX
Workshop on android apps development
University of Potsdam
 
PDF
Transparency and concurrency
University of Potsdam
 
PDF
Database System Architecture
University of Potsdam
 
PDF
Functional dependency and normalization
University of Potsdam
 
PDF
indexing and hashing
University of Potsdam
 
PDF
data recovery-raid
University of Potsdam
 
PDF
Query processing
University of Potsdam
 
PDF
Machine Learning for Data Mining
University of Potsdam
 
PDF
Sets in discrete mathematics
University of Potsdam
 
PPT
Set in discrete mathematics
University of Potsdam
 
PPT
Series parallel ac rlc networks
University of Potsdam
 
PPT
Series parallel ac networks
University of Potsdam
 
PPT
Relations
University of Potsdam
 
PDF
Relations
University of Potsdam
 
PPT
Propositional logic
University of Potsdam
 
PDF
Propositional logic
University of Potsdam
 
PDF
Prim algorithm
University of Potsdam
 
PPT
Predicate & quantifier
University of Potsdam
 
Computer fundamentals 01
University of Potsdam
 
Workshop on android apps development
University of Potsdam
 
Transparency and concurrency
University of Potsdam
 
Database System Architecture
University of Potsdam
 
Functional dependency and normalization
University of Potsdam
 
indexing and hashing
University of Potsdam
 
data recovery-raid
University of Potsdam
 
Query processing
University of Potsdam
 
Machine Learning for Data Mining
University of Potsdam
 
Sets in discrete mathematics
University of Potsdam
 
Set in discrete mathematics
University of Potsdam
 
Series parallel ac rlc networks
University of Potsdam
 
Series parallel ac networks
University of Potsdam
 
Propositional logic
University of Potsdam
 
Propositional logic
University of Potsdam
 
Prim algorithm
University of Potsdam
 
Predicate & quantifier
University of Potsdam
 

Recently uploaded (20)

PPTX
ENGlish 8 lesson presentation PowerPoint.pptx
marawehsvinetshe
 
PDF
Vietnam Street Food & QSR Market 2025-1.pdf
ssuserec8cd0
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PPTX
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
PPTX
How to Manage Expiry Date in Odoo 18 Inventory
Celine George
 
PPTX
Marketing Management PPT Unit 1 and Unit 2.pptx
Sri Ramakrishna College of Arts and science
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PPT
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
PPTX
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPTX
Different types of inheritance in odoo 18
Celine George
 
ENGlish 8 lesson presentation PowerPoint.pptx
marawehsvinetshe
 
Vietnam Street Food & QSR Market 2025-1.pdf
ssuserec8cd0
 
Controller Request and Response in Odoo18
Celine George
 
epi editorial commitee meeting presentation
MIPLM
 
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
How to Manage Expiry Date in Odoo 18 Inventory
Celine George
 
Marketing Management PPT Unit 1 and Unit 2.pptx
Sri Ramakrishna College of Arts and science
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Horarios de distribución de agua en julio
pegazohn1978
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
Different types of inheritance in odoo 18
Celine George
 

Tree, function and graph