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

PPT
PPt on Functions
coolhanddav
 
PDF
Lesson 2: Limits and Limit Laws
Matthew Leingang
 
PDF
Lesson 12: Linear Independence
Matthew Leingang
 
PPTX
8.1 intro to functions
Barbara Knab
 
PPTX
Limit of functions
Juan Apolinario Reyes
 
PPTX
General Mathematics - Representation and Types of Functions
Juan Miguel Palero
 
PPT
Parabola complete
MATOME PETER
 
PPTX
Radical and exponents (2)
Nurul Atiyah
 
PPt on Functions
coolhanddav
 
Lesson 2: Limits and Limit Laws
Matthew Leingang
 
Lesson 12: Linear Independence
Matthew Leingang
 
8.1 intro to functions
Barbara Knab
 
Limit of functions
Juan Apolinario Reyes
 
General Mathematics - Representation and Types of Functions
Juan Miguel Palero
 
Parabola complete
MATOME PETER
 
Radical and exponents (2)
Nurul Atiyah
 

What's hot (20)

PPTX
Domain-and-Range-of-a-Function
EmeraldAcaba
 
PPTX
Problem solving involving sets
Marites Ablay
 
PPT
Linear vector space
Safiya Amer
 
PPT
Inverse functions
Jessica Garcia
 
PPTX
INVERSE DIFFERENTIAL OPERATOR
sumanmathews
 
PDF
Lesson 25: Evaluating Definite Integrals (slides)
Matthew Leingang
 
PPT
Relations and Functions
toni dimella
 
PPTX
Ellipse
itutor
 
PPTX
Design and Analysis of Algorithms Lecture Notes
Sreedhar Chowdam
 
PPTX
Domain and range
Northside ISD
 
PDF
Polynomial Function and Synthetic Division
AleczQ1414
 
PPSX
Introduction to Function, Domain and Range - Mohd Noor
Mohd. Noor Abdul Hamid
 
PPTX
Polynomial equations
Arjuna Senanayake
 
PPTX
Graphing rational functions
rey castro
 
PPTX
Functions
Genny Phillips
 
PDF
Inverse trigonometric functions
Leo Crisologo
 
PDF
10.5 Circles in the Coordinate Plane
smiller5
 
PPT
Hyperbola
Hae Morgia
 
PPTX
Graphs of polynomial functions
Carlos Erepol
 
PPTX
Continuity of a Function
Vishvesh Jasani
 
Domain-and-Range-of-a-Function
EmeraldAcaba
 
Problem solving involving sets
Marites Ablay
 
Linear vector space
Safiya Amer
 
Inverse functions
Jessica Garcia
 
INVERSE DIFFERENTIAL OPERATOR
sumanmathews
 
Lesson 25: Evaluating Definite Integrals (slides)
Matthew Leingang
 
Relations and Functions
toni dimella
 
Ellipse
itutor
 
Design and Analysis of Algorithms Lecture Notes
Sreedhar Chowdam
 
Domain and range
Northside ISD
 
Polynomial Function and Synthetic Division
AleczQ1414
 
Introduction to Function, Domain and Range - Mohd Noor
Mohd. Noor Abdul Hamid
 
Polynomial equations
Arjuna Senanayake
 
Graphing rational functions
rey castro
 
Functions
Genny Phillips
 
Inverse trigonometric functions
Leo Crisologo
 
10.5 Circles in the Coordinate Plane
smiller5
 
Hyperbola
Hae Morgia
 
Graphs of polynomial functions
Carlos Erepol
 
Continuity of a Function
Vishvesh Jasani
 
Ad

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
Application of Mathematics in Business : F 107 - Group K
jafar_sadik
 
PPT
Force & Motion
Joan Shinkle
 
PPTX
Blood- composition and function
Vidhi Doshi
 
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
 
Application of Mathematics in Business : F 107 - Group K
jafar_sadik
 
Force & Motion
Joan Shinkle
 
Blood- composition and function
Vidhi Doshi
 
Ad

Similar to Tree, function and graph (20)

PPT
Graph theory concepts complex networks presents-rouhollah nabati
nabati
 
PPTX
GRAPH THEORY AND ITS APPLICATIONS.......
NIRAIMATHIE1
 
PDF
graph_theory_1-11.pdf___________________
ssuser1989da
 
PPTX
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Saurabh Kaushik
 
PPTX
DSA THE LECTURE NUMMBER 213 OF AJKAKWWJWJNWJJWJWJWH .ppt
maryamzahra3366
 
PDF
Cs6702 graph theory and applications 2 marks questions and answers
appasami
 
PPTX
Unit 2: All
Hector Zenil
 
PPTX
Graph data structure
Tech_MX
 
PPTX
NON-LINEAR DATA STRUCTURE-Graphs.pptx
Rajitha Reddy Alugati
 
PDF
Discrete Mathematics – Graphs and Trees.pdf
ruhamadana111
 
PPT
Graph-theory (1).ppt BBA 1st Semester Graph
swatiritvik
 
PPTX
Graphs.pptx
satvikkushwaha1
 
PPTX
Spanningtreesppt
Jyoshna Cec Cse Staf bejjam
 
PDF
graph theory, DS, Tree, shortest path problem
akhilesh kumar
 
DOC
Magtibay buk bind#2
Sofia Palawan
 
PPSX
Unit-6 Graph.ppsx ppt
DhruvilSTATUS
 
PPT
Graph-theory.ppt
AlpaSinghRajput1
 
PPT
Graph.ppt
AlpaSinghRajput1
 
PDF
Cs6702 2marks rejinpaul
stalinjothi
 
PDF
Cs6702 GCC
stalinjothi
 
Graph theory concepts complex networks presents-rouhollah nabati
nabati
 
GRAPH THEORY AND ITS APPLICATIONS.......
NIRAIMATHIE1
 
graph_theory_1-11.pdf___________________
ssuser1989da
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Saurabh Kaushik
 
DSA THE LECTURE NUMMBER 213 OF AJKAKWWJWJNWJJWJWJWH .ppt
maryamzahra3366
 
Cs6702 graph theory and applications 2 marks questions and answers
appasami
 
Unit 2: All
Hector Zenil
 
Graph data structure
Tech_MX
 
NON-LINEAR DATA STRUCTURE-Graphs.pptx
Rajitha Reddy Alugati
 
Discrete Mathematics – Graphs and Trees.pdf
ruhamadana111
 
Graph-theory (1).ppt BBA 1st Semester Graph
swatiritvik
 
Graphs.pptx
satvikkushwaha1
 
Spanningtreesppt
Jyoshna Cec Cse Staf bejjam
 
graph theory, DS, Tree, shortest path problem
akhilesh kumar
 
Magtibay buk bind#2
Sofia Palawan
 
Unit-6 Graph.ppsx ppt
DhruvilSTATUS
 
Graph-theory.ppt
AlpaSinghRajput1
 
Graph.ppt
AlpaSinghRajput1
 
Cs6702 2marks rejinpaul
stalinjothi
 
Cs6702 GCC
stalinjothi
 

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
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
Understanding operators in c language.pptx
auteharshil95
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PDF
Wings of Fire Book by Dr. A.P.J Abdul Kalam Full PDF
hetalvaishnav93
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Understanding operators in c language.pptx
auteharshil95
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
Wings of Fire Book by Dr. A.P.J Abdul Kalam Full PDF
hetalvaishnav93
 

Tree, function and graph