SlideShare a Scribd company logo
Discrete Mathematics
GRAPH THEORY
1. Assignment of jobs to employees of an organization
2. The outcomes of round-robin tournaments.
3. To model acquaintanceship between people
4. Telephone calls between telephone numbers, and links between
websites.
5. To walk down all the streets in a city without going down a street
twice
6. Circuit board.
7. Two chemical compounds with the same molecular formula but
different structures using graphs.
8. Computer networks.
Graph Theory Application
WHAT IS GRAPH THEORY?
• Graph theory is the study of mathematical
structures called graphs that are used to model
pairwise relations between objects from a
certain collection.
• The origin of graph theory can be traced back
to Leonard Euler's (German pronounciation ley-
awn-hahrt OY-lər) work on the “Konigsberg
bridge problem” on 1736.
Königsberg
City in Germany
THE Bridges of the Konigsberg
• The question is whether a person can plan a walk in
such a way that he will cross each of these bridges
once but not more than once.
This can be pictured as follows:
A
B
C
D
e1
e5
e2
e6
e4
e7
The vertices are V={A,B,C,D} and the edges are E =
{e1,e2,e3,e4,e,5,e6,e7}. e1 and e2 is associated with the unordered
pair (A,B), e5 and e6 is associated with (B,C), e3 is associated
with (B,D), e4 and e7 is associated with (A,D) and so on.
e3
Definition
A graph G = (V ,E) consists of V , a nonempty
set of vertices (or nodes) and E, a set of edges.
Each edge has either one or two vertices associated
with it, called its endpoints. An edge is said to
connect its endpoints.
Vertex Edge Graph
Vertex Edge Graph - A collection of points
some of which are joined by line segments
or curves.
This graph has 6 vertices and 7 edges
Each point is a vertex and each line is an edge
Example:
Let V ={1, 2, 3, 4}, and E={e1, e2, e3, e4, e5}.
Let γ be defined by e1=e5={1, 2}, e2={4, 3},
e3={1, 3}, e4={2, 4}.
Draw, G={V, E}
e1
e5
e2
e3
e4
e1
e5
e2
e3
e4
e1
e5
e2
e3
e4
The degree of a vertex in a graph is the number of
edges that touch it.
3
2
2
4
3
3
3 Each vertex is labeled
with its degree
A graph is regular if every vertex has the same degree.
22
2
A loop is an edge from a vertex to itself.
Two or more distinct edges with the same set of endpoints
are said to be parallel.
The degree of a vertex is not the same as the number of
edges that are incident with U since any loop in U is
counted twice.
An isolated vertex is a vertex of degree 0.
A vertex U is incident with an edge e, if e is either a loop at U or
it has the from e={u,v}.
Try this!
• Determine number of degrees of each
vertex.
Seatwork: Find the degree of each vertex.
Vertices Degree
A
B
C
D
E
Vertices Degree
A
B
C
D
E
1. 2.
3.
Vertices Degree
A
B
C
D
E
BASIC CONCEPTS
Let U and W be vertices of a graph G.
•A walk from U to W is an alternating sequence of
vertices and edges of G, beginning with the vertex U
and ending in the vertex W, with the property that
each edge is incident with the vertex immediately
preceding it and the vertex immediately following it
in the sequence.
•A walk that begins and ends at the same vertex is
called a closed walk. On the other hand, a walk that
begins and ends at two different vertices is called an
open walk.
BASIC CONCEPTS
• The complete graph of order n, denoted by Kn is the
graph that has n vertices and exactly one edge
connecting each of the possible pairs of distinct vertices.
• A graph H is called a subgraph of a graph G if every
vertex of H is also a vertex of G and every edge of H is
also an edge of G.
• A path in a graph is a sequence: v1, v2, v3, . . . vk, such
that it is possible to travel from v1 to vk without using the
same edge twice .
• A circuit is a path that begins and ends at the same
vertex.
Complete Graph
SUBGRAPH
Complete
Graph
Subgraphs:
An Eulerian path in a graph is a path that travels
along every edge of the graph exactly once. An
Eulerian path might pass through individual
vertices of the graph more than once.
Euler Graph (pronounced oilier)
Start and finish
Euler circuits is a path that ends at the same vertex it started
A Euler path is a
snowplow problem
where a snow plow
needs to plow every
street once.
QUIZ (1/4)
1. Two edges are said to be adjacent if they share
a common________.
2. The ________of a vertex U is number of times
an edge meets U.
3. The graph that has n vertices and exactly one
edge connecting each of the possible pairs of
distinct vertices.
4. A walk that begins and ends at the same vertex
is called a/an__________.
5. Two or more distinct edges with the same
set of endpoints are called _______.
SEATWORK:
For Items # 1 to # 3, consider the graph:
1. Identify the elements of V and
E.
2. List down the functions γ(e)
for all e.
3. Give the degree of each
vertex.
4. Draw the graph G = {V, E, γ}, where V={A, B, C, D,
E}, E ={e1, e2, e3, e4, e5, e6} , γ(e1)=γ(e5)={A, C} ,
γ(e2)={A, D}, γ(e3)={E, C}, γ(e4)={B, C}, and
γ(e6)={E, D}
THEORIES ABOUT EULER CIRCUITS
• A connected multigraph with at least
two vertices has an Euler circuit if and
only if each of its vertices has even
degree.
THEORIES ABOUT EULER PATHS
• A connected multigraph has an Euler
path but not an Euler circuit if and only
if it has exactly two vertices of odd
degree.
Draw the Vertex/edge graph and answer the following questions.
1) How many vertices are there?
2) How many edges are there?
3)How many vertices have a degree of 2?
4) How many vertices have a degree of 4?
Draw a Euler circuit starting at the vertex with a white dot.
Remember: A circuit travels along every path exactly once and
may pass through vertices multiple times before ending at the
starting vertex.
6
9
3
3
# of ODD Vertices Implication (for a connected graph)
0
There is at least
one Euler Circuit.
1 THIS IS IMPOSSIBLE! Can’t be drawn
2
There is no Euler Circuit
but at least 1 Euler Path.
more than 2
There are no Euler Circuits
or Euler Paths.
Use this chart to see if a Euler path or circuit may be drawn
Problem: Find an Euler path in the graph
below. B
A
F
E
D
C
Answer
There are two odd vertices, A and F.
B
A
F
E
D
C
Which of the following have an Euler
circuit, an Euler path but not a Euler
circuit, or neither?
Neither: NO EP, NO EC EP BUT NOT EC
Which of the following have an Euler
circuit, an Euler path but not a Euler
circuit, or neither?
NO EP, BUT EC
Quiz
Which of the undirected graphs in Figure 3
have an Euler circuit? Of those that do not,
which have an Euler path?
1. 2. 3.
Which of the directed graphs in Figure 4 have
an Euler circuit? Of those that do not, which
have an Euler path?
4. 5. 6.
Sir William Rowan Hamilton
• In the 19th
century, an Irishman named Sir
William Rowan Hamilton (1805-1865)
invented a game called the Icosian game.
• The game consisted of a graph in which the
vertices represented major cities in Europe.
Hamiltonian Circuit/Paths:
A Hamiltonian path in a graph is a path that
passes through every vertex in the graph exactly
once. A Hamiltonian path does not necessarily
pass through all the edges of the graph, however.
A Hamiltonian path which ends in the same place in
which it began is called a Hamiltonian circuit.
Example
• Which of the simple graphs have a Hamilton
circuit or, if not, a Hamilton path, or neither?
Solution:
G1 Hamilton circuit: a, b, c, d, e, a.
G2 There is no Hamilton circuit, but G2 does have a Hamilton path, namely,
a, b, c, d.
G3 has neither a Hamilton circuit nor a Hamilton path, because any path
containing all vertices must contain one of the edges {a, b}, {e, f}, and {c, d}
more than once.
Examples
Hamiltonian
path: a, b, c, d, e
Hamiltonian circuit: A,
D, C, B, A
Trace a Hamiltonian path
Only a path, not a circuit. The path did
not end at the same vertex it started.
The path does not need to go over every edge but it can only go
over an edge once and must pass through every vertex exactly
once.
Hamiltonian Circuits
are often called the
mail man circuit
because the mailman
goes to every mailbox
but does not need to go
over every street.
1. Determine if the following graph
has a Hamiltonian circuit, a
Hamiltonian path but no Hamiltonian
circuit, or neither.
a, b, c, d, e, a is a Hamilton circuit
2. Does the graph have a Hamilton path? Ifso, find such a
path. If it does not, give an argument to show why no
such path exists.
a, b, c, f, d, e is a Hamilton path
3. Does the graph in Exercise 32 have a Hamilton path? If
so, find such a path. If it does not, give an argument to
show why no such path exists.
f, e, d, a, b, c is a Hamilton path.
Review:
Euler Graphs Passes over edge exactly once. May pass
through a vertex more than once.
Hamiltonian
Graphs
Passes through every vertex exactly once but
not necessarily over every edge.
Circuits The path ends at the same vertex it started.
Quiz Answer
1. VERTEX
2. DEGREE
3. COMPLETE GRAPH
4. CLOSE WALK
5. PARALLEL
Quiz Answer
Solution:
1. G1 has an Euler circuit, a, e, c, d, e, b, a.
2. G2 Neither
3. G3 has an Euler path, namely, a, c, d, e, b, d, a, b.
4. H1 Neither
5. H2 has an Euler circuit, a, g, c, b, g, e, d, f, a
6. H3 has an Euler path, namely, c, a, b, c, d, b

More Related Content

What's hot

Graph theory
Graph theory Graph theory
Graph theory
iranian translate
 
ABSTRACT ALGEBRA
ABSTRACT ALGEBRAABSTRACT ALGEBRA
ABSTRACT ALGEBRA
MANJULAKAMALANATHAN
 
Graph theory
Graph  theoryGraph  theory
Graph theory
Manash Kumar Mondal
 
logic and set theory
logic and set theorylogic and set theory
logic and set theoryNathan Trillo
 
Applications of graph theory
                      Applications of graph theory                      Applications of graph theory
Applications of graph theory
NilaNila16
 
Graph theory
Graph theoryGraph theory
Graph theoryKumar
 
Algebraic Manipulation Lesson
Algebraic Manipulation LessonAlgebraic Manipulation Lesson
Algebraic Manipulation LessonJoyce23Liu
 
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
Sudiksha Joshi
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphismCore Condor
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
Aliul Kadir Akib
 
Hamilton path and euler path
Hamilton path and euler pathHamilton path and euler path
Hamilton path and euler path
Shakib Sarar Arnab
 
Euler and hamilton paths
Euler and hamilton pathsEuler and hamilton paths
Euler and hamilton paths
University of Potsdam
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
appasami
 
Graph theory
Graph theoryGraph theory
Graph theory
AparnaKumari31
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
Sikder Tahsin Al-Amin
 
Infinite series 8.3
Infinite series 8.3 Infinite series 8.3
Infinite series 8.3
Mohsin Ramay
 
Coordinate proofs
Coordinate proofsCoordinate proofs
Coordinate proofs
Terry Gastauer
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 

What's hot (20)

Graph theory
Graph theory Graph theory
Graph theory
 
ABSTRACT ALGEBRA
ABSTRACT ALGEBRAABSTRACT ALGEBRA
ABSTRACT ALGEBRA
 
Graph theory
Graph  theoryGraph  theory
Graph theory
 
logic and set theory
logic and set theorylogic and set theory
logic and set theory
 
Binomial expansion
Binomial expansionBinomial expansion
Binomial expansion
 
Applications of graph theory
                      Applications of graph theory                      Applications of graph theory
Applications of graph theory
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Algebraic Manipulation Lesson
Algebraic Manipulation LessonAlgebraic Manipulation Lesson
Algebraic Manipulation Lesson
 
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
 
Hamilton path and euler path
Hamilton path and euler pathHamilton path and euler path
Hamilton path and euler path
 
Euler and hamilton paths
Euler and hamilton pathsEuler and hamilton paths
Euler and hamilton paths
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
Infinite series 8.3
Infinite series 8.3 Infinite series 8.3
Infinite series 8.3
 
graph theory
graph theory graph theory
graph theory
 
Coordinate proofs
Coordinate proofsCoordinate proofs
Coordinate proofs
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 

Viewers also liked

Steven Duplij - Generalized duality, Hamiltonian formalism and new brackets
Steven Duplij - Generalized duality, Hamiltonian formalism and new bracketsSteven Duplij - Generalized duality, Hamiltonian formalism and new brackets
Steven Duplij - Generalized duality, Hamiltonian formalism and new brackets
Steven Duplij (Stepan Douplii)
 
Elementary Landscape Decomposition of the Hamiltonian Path Optimization Problem
Elementary Landscape Decomposition of the Hamiltonian Path Optimization ProblemElementary Landscape Decomposition of the Hamiltonian Path Optimization Problem
Elementary Landscape Decomposition of the Hamiltonian Path Optimization Problem
jfrchicanog
 
Hamilton application
Hamilton applicationHamilton application
Hamilton application
Samad Akbar
 
Ch 8 eulerian and hamiltonian graphs
Ch 8 eulerian and hamiltonian graphsCh 8 eulerian and hamiltonian graphs
Ch 8 eulerian and hamiltonian graphs
Rupali Rana
 
N. Bilic - "Hamiltonian Method in the Braneworld" 1/3
N. Bilic - "Hamiltonian Method in the Braneworld" 1/3N. Bilic - "Hamiltonian Method in the Braneworld" 1/3
N. Bilic - "Hamiltonian Method in the Braneworld" 1/3
SEENET-MTP
 
S. Duplij, Constraintless approach to singular theories, new brackets and mul...
S. Duplij, Constraintless approach to singular theories, new brackets and mul...S. Duplij, Constraintless approach to singular theories, new brackets and mul...
S. Duplij, Constraintless approach to singular theories, new brackets and mul...
Steven Duplij (Stepan Douplii)
 
Basic Ray Theory
Basic Ray TheoryBasic Ray Theory
Basic Ray Theory
carlospiedrahitaescobar
 
The Variational Method
The Variational MethodThe Variational Method
The Variational Method
James Salveo Olarve
 
Dirac's Positron
Dirac's PositronDirac's Positron
Dirac's PositronArpan Saha
 
Time Dependent Perturbation Theory
Time Dependent Perturbation TheoryTime Dependent Perturbation Theory
Time Dependent Perturbation Theory
James Salveo Olarve
 
Against Space
Against SpaceAgainst Space
Against Space
Sean Carroll
 
Edith Hamilton’s Mythology Part 1: The Gods
Edith Hamilton’s Mythology Part 1: The GodsEdith Hamilton’s Mythology Part 1: The Gods
Edith Hamilton’s Mythology Part 1: The GodsJessica Pilgreen
 
Time Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correctionTime Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correction
James Salveo Olarve
 
Lagrange's Theorem
Lagrange's TheoremLagrange's Theorem
Lagrange's Theoremjohn1129
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
blaircomp2003
 
Lecture7
Lecture7Lecture7
Lecture7
Heather Kulik
 
3 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 20173 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 2017
Drift
 

Viewers also liked (20)

Graphs
GraphsGraphs
Graphs
 
zanardi
zanardizanardi
zanardi
 
Hamilton
HamiltonHamilton
Hamilton
 
Steven Duplij - Generalized duality, Hamiltonian formalism and new brackets
Steven Duplij - Generalized duality, Hamiltonian formalism and new bracketsSteven Duplij - Generalized duality, Hamiltonian formalism and new brackets
Steven Duplij - Generalized duality, Hamiltonian formalism and new brackets
 
Elementary Landscape Decomposition of the Hamiltonian Path Optimization Problem
Elementary Landscape Decomposition of the Hamiltonian Path Optimization ProblemElementary Landscape Decomposition of the Hamiltonian Path Optimization Problem
Elementary Landscape Decomposition of the Hamiltonian Path Optimization Problem
 
Hamilton application
Hamilton applicationHamilton application
Hamilton application
 
Ch 8 eulerian and hamiltonian graphs
Ch 8 eulerian and hamiltonian graphsCh 8 eulerian and hamiltonian graphs
Ch 8 eulerian and hamiltonian graphs
 
N. Bilic - "Hamiltonian Method in the Braneworld" 1/3
N. Bilic - "Hamiltonian Method in the Braneworld" 1/3N. Bilic - "Hamiltonian Method in the Braneworld" 1/3
N. Bilic - "Hamiltonian Method in the Braneworld" 1/3
 
S. Duplij, Constraintless approach to singular theories, new brackets and mul...
S. Duplij, Constraintless approach to singular theories, new brackets and mul...S. Duplij, Constraintless approach to singular theories, new brackets and mul...
S. Duplij, Constraintless approach to singular theories, new brackets and mul...
 
Basic Ray Theory
Basic Ray TheoryBasic Ray Theory
Basic Ray Theory
 
The Variational Method
The Variational MethodThe Variational Method
The Variational Method
 
Dirac's Positron
Dirac's PositronDirac's Positron
Dirac's Positron
 
Time Dependent Perturbation Theory
Time Dependent Perturbation TheoryTime Dependent Perturbation Theory
Time Dependent Perturbation Theory
 
Against Space
Against SpaceAgainst Space
Against Space
 
Edith Hamilton’s Mythology Part 1: The Gods
Edith Hamilton’s Mythology Part 1: The GodsEdith Hamilton’s Mythology Part 1: The Gods
Edith Hamilton’s Mythology Part 1: The Gods
 
Time Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correctionTime Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correction
 
Lagrange's Theorem
Lagrange's TheoremLagrange's Theorem
Lagrange's Theorem
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Lecture7
Lecture7Lecture7
Lecture7
 
3 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 20173 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 2017
 

Similar to Distruct week 15 graphs theory (updated)

Graph ds
Graph dsGraph ds
Graph theory
Graph theoryGraph theory
Graph theory
manikanta361
 
nossi ch 6
nossi ch 6nossi ch 6
nossi ch 6
lesaturner
 
ch10.5.pptx
ch10.5.pptxch10.5.pptx
ch10.5.pptx
GauravGautam216125
 
Euler graph
Euler graphEuler graph
Euler graph
AAQIB PARREY
 
Ds lec 5_chap4
Ds lec 5_chap4Ds lec 5_chap4
Ds lec 5_chap4
Self-Employed
 
Graph theory Eulerian graph
Graph theory Eulerian graphGraph theory Eulerian graph
Graph theory Eulerian graph
rajeshree nanaware
 
koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptx
Alpa Rajput
 
CST 504 Graphs
CST 504 GraphsCST 504 Graphs
CST 504 Graphs
Neil MacIntosh
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
Hector Zenil
 
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdfISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
murniatimurni9
 
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............
eustaquiojm1
 
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
Mitul Desai
 
burton_discrete_graph theory
burton_discrete_graph theoryburton_discrete_graph theory
burton_discrete_graph theoryguest63f42b
 
burton_discrete_graphtheory
burton_discrete_graphtheoryburton_discrete_graphtheory
burton_discrete_graphtheoryguest5d4128
 
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
University of Potsdam
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
abas1333
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Premsankar Chakkingal
 

Similar to Distruct week 15 graphs theory (updated) (20)

Graph ds
Graph dsGraph ds
Graph ds
 
Graph theory
Graph theoryGraph theory
Graph theory
 
nossi ch 6
nossi ch 6nossi ch 6
nossi ch 6
 
ch10.5.pptx
ch10.5.pptxch10.5.pptx
ch10.5.pptx
 
Euler graph
Euler graphEuler graph
Euler graph
 
Ds lec 5_chap4
Ds lec 5_chap4Ds lec 5_chap4
Ds lec 5_chap4
 
Graph theory Eulerian graph
Graph theory Eulerian graphGraph theory Eulerian graph
Graph theory Eulerian graph
 
koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptx
 
CST 504 Graphs
CST 504 GraphsCST 504 Graphs
CST 504 Graphs
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
 
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdfISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
 
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............
 
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
 
Presentation on graphs
Presentation on graphsPresentation on graphs
Presentation on graphs
 
burton_discrete_graph theory
burton_discrete_graph theoryburton_discrete_graph theory
burton_discrete_graph theory
 
burton_discrete_graphtheory
burton_discrete_graphtheoryburton_discrete_graphtheory
burton_discrete_graphtheory
 
Magtibay buk bind#2
Magtibay buk bind#2Magtibay buk bind#2
Magtibay buk bind#2
 
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
 

More from Robert Almazan

Arithmetic instructions
Arithmetic instructionsArithmetic instructions
Arithmetic instructions
Robert Almazan
 
Flag control
Flag controlFlag control
Flag control
Robert Almazan
 
Arithmetic and logical instructions set
Arithmetic and logical instructions setArithmetic and logical instructions set
Arithmetic and logical instructions set
Robert Almazan
 
Week 5 lan topology
Week 5 lan topologyWeek 5 lan topology
Week 5 lan topology
Robert Almazan
 
Week 5 lan topology part 2
Week 5 lan topology part 2Week 5 lan topology part 2
Week 5 lan topology part 2
Robert Almazan
 
Week 4 introducing network standards
Week 4 introducing network standardsWeek 4 introducing network standards
Week 4 introducing network standards
Robert Almazan
 
Week 3 basic network media
Week 3 basic network mediaWeek 3 basic network media
Week 3 basic network media
Robert Almazan
 
Week 2 network configurartion
Week 2 network configurartionWeek 2 network configurartion
Week 2 network configurartion
Robert Almazan
 
introduction to networking
introduction to networkingintroduction to networking
introduction to networking
Robert Almazan
 

More from Robert Almazan (9)

Arithmetic instructions
Arithmetic instructionsArithmetic instructions
Arithmetic instructions
 
Flag control
Flag controlFlag control
Flag control
 
Arithmetic and logical instructions set
Arithmetic and logical instructions setArithmetic and logical instructions set
Arithmetic and logical instructions set
 
Week 5 lan topology
Week 5 lan topologyWeek 5 lan topology
Week 5 lan topology
 
Week 5 lan topology part 2
Week 5 lan topology part 2Week 5 lan topology part 2
Week 5 lan topology part 2
 
Week 4 introducing network standards
Week 4 introducing network standardsWeek 4 introducing network standards
Week 4 introducing network standards
 
Week 3 basic network media
Week 3 basic network mediaWeek 3 basic network media
Week 3 basic network media
 
Week 2 network configurartion
Week 2 network configurartionWeek 2 network configurartion
Week 2 network configurartion
 
introduction to networking
introduction to networkingintroduction to networking
introduction to networking
 

Recently uploaded

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 

Recently uploaded (20)

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

Distruct week 15 graphs theory (updated)

  • 2. 1. Assignment of jobs to employees of an organization 2. The outcomes of round-robin tournaments. 3. To model acquaintanceship between people 4. Telephone calls between telephone numbers, and links between websites. 5. To walk down all the streets in a city without going down a street twice 6. Circuit board. 7. Two chemical compounds with the same molecular formula but different structures using graphs. 8. Computer networks. Graph Theory Application
  • 3. WHAT IS GRAPH THEORY? • Graph theory is the study of mathematical structures called graphs that are used to model pairwise relations between objects from a certain collection. • The origin of graph theory can be traced back to Leonard Euler's (German pronounciation ley- awn-hahrt OY-lər) work on the “Konigsberg bridge problem” on 1736.
  • 5. THE Bridges of the Konigsberg • The question is whether a person can plan a walk in such a way that he will cross each of these bridges once but not more than once. This can be pictured as follows: A B C D e1 e5 e2 e6 e4 e7 The vertices are V={A,B,C,D} and the edges are E = {e1,e2,e3,e4,e,5,e6,e7}. e1 and e2 is associated with the unordered pair (A,B), e5 and e6 is associated with (B,C), e3 is associated with (B,D), e4 and e7 is associated with (A,D) and so on. e3
  • 6. Definition A graph G = (V ,E) consists of V , a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated with it, called its endpoints. An edge is said to connect its endpoints.
  • 7. Vertex Edge Graph Vertex Edge Graph - A collection of points some of which are joined by line segments or curves. This graph has 6 vertices and 7 edges Each point is a vertex and each line is an edge
  • 8. Example: Let V ={1, 2, 3, 4}, and E={e1, e2, e3, e4, e5}. Let γ be defined by e1=e5={1, 2}, e2={4, 3}, e3={1, 3}, e4={2, 4}. Draw, G={V, E}
  • 10. The degree of a vertex in a graph is the number of edges that touch it. 3 2 2 4 3 3 3 Each vertex is labeled with its degree A graph is regular if every vertex has the same degree. 22 2 A loop is an edge from a vertex to itself. Two or more distinct edges with the same set of endpoints are said to be parallel.
  • 11. The degree of a vertex is not the same as the number of edges that are incident with U since any loop in U is counted twice.
  • 12. An isolated vertex is a vertex of degree 0. A vertex U is incident with an edge e, if e is either a loop at U or it has the from e={u,v}.
  • 13. Try this! • Determine number of degrees of each vertex.
  • 14. Seatwork: Find the degree of each vertex. Vertices Degree A B C D E Vertices Degree A B C D E 1. 2.
  • 16. BASIC CONCEPTS Let U and W be vertices of a graph G. •A walk from U to W is an alternating sequence of vertices and edges of G, beginning with the vertex U and ending in the vertex W, with the property that each edge is incident with the vertex immediately preceding it and the vertex immediately following it in the sequence. •A walk that begins and ends at the same vertex is called a closed walk. On the other hand, a walk that begins and ends at two different vertices is called an open walk.
  • 17. BASIC CONCEPTS • The complete graph of order n, denoted by Kn is the graph that has n vertices and exactly one edge connecting each of the possible pairs of distinct vertices. • A graph H is called a subgraph of a graph G if every vertex of H is also a vertex of G and every edge of H is also an edge of G. • A path in a graph is a sequence: v1, v2, v3, . . . vk, such that it is possible to travel from v1 to vk without using the same edge twice . • A circuit is a path that begins and ends at the same vertex.
  • 21. An Eulerian path in a graph is a path that travels along every edge of the graph exactly once. An Eulerian path might pass through individual vertices of the graph more than once. Euler Graph (pronounced oilier) Start and finish Euler circuits is a path that ends at the same vertex it started A Euler path is a snowplow problem where a snow plow needs to plow every street once.
  • 22. QUIZ (1/4) 1. Two edges are said to be adjacent if they share a common________. 2. The ________of a vertex U is number of times an edge meets U. 3. The graph that has n vertices and exactly one edge connecting each of the possible pairs of distinct vertices. 4. A walk that begins and ends at the same vertex is called a/an__________. 5. Two or more distinct edges with the same set of endpoints are called _______.
  • 23. SEATWORK: For Items # 1 to # 3, consider the graph: 1. Identify the elements of V and E. 2. List down the functions γ(e) for all e. 3. Give the degree of each vertex. 4. Draw the graph G = {V, E, γ}, where V={A, B, C, D, E}, E ={e1, e2, e3, e4, e5, e6} , γ(e1)=γ(e5)={A, C} , γ(e2)={A, D}, γ(e3)={E, C}, γ(e4)={B, C}, and γ(e6)={E, D}
  • 24. THEORIES ABOUT EULER CIRCUITS • A connected multigraph with at least two vertices has an Euler circuit if and only if each of its vertices has even degree.
  • 25. THEORIES ABOUT EULER PATHS • A connected multigraph has an Euler path but not an Euler circuit if and only if it has exactly two vertices of odd degree.
  • 26. Draw the Vertex/edge graph and answer the following questions. 1) How many vertices are there? 2) How many edges are there? 3)How many vertices have a degree of 2? 4) How many vertices have a degree of 4? Draw a Euler circuit starting at the vertex with a white dot. Remember: A circuit travels along every path exactly once and may pass through vertices multiple times before ending at the starting vertex. 6 9 3 3
  • 27. # of ODD Vertices Implication (for a connected graph) 0 There is at least one Euler Circuit. 1 THIS IS IMPOSSIBLE! Can’t be drawn 2 There is no Euler Circuit but at least 1 Euler Path. more than 2 There are no Euler Circuits or Euler Paths. Use this chart to see if a Euler path or circuit may be drawn
  • 28. Problem: Find an Euler path in the graph below. B A F E D C
  • 29. Answer There are two odd vertices, A and F. B A F E D C
  • 30. Which of the following have an Euler circuit, an Euler path but not a Euler circuit, or neither? Neither: NO EP, NO EC EP BUT NOT EC
  • 31. Which of the following have an Euler circuit, an Euler path but not a Euler circuit, or neither? NO EP, BUT EC
  • 32. Quiz Which of the undirected graphs in Figure 3 have an Euler circuit? Of those that do not, which have an Euler path? 1. 2. 3.
  • 33. Which of the directed graphs in Figure 4 have an Euler circuit? Of those that do not, which have an Euler path? 4. 5. 6.
  • 34. Sir William Rowan Hamilton • In the 19th century, an Irishman named Sir William Rowan Hamilton (1805-1865) invented a game called the Icosian game. • The game consisted of a graph in which the vertices represented major cities in Europe.
  • 35. Hamiltonian Circuit/Paths: A Hamiltonian path in a graph is a path that passes through every vertex in the graph exactly once. A Hamiltonian path does not necessarily pass through all the edges of the graph, however. A Hamiltonian path which ends in the same place in which it began is called a Hamiltonian circuit.
  • 36. Example • Which of the simple graphs have a Hamilton circuit or, if not, a Hamilton path, or neither? Solution: G1 Hamilton circuit: a, b, c, d, e, a. G2 There is no Hamilton circuit, but G2 does have a Hamilton path, namely, a, b, c, d. G3 has neither a Hamilton circuit nor a Hamilton path, because any path containing all vertices must contain one of the edges {a, b}, {e, f}, and {c, d} more than once.
  • 37. Examples Hamiltonian path: a, b, c, d, e Hamiltonian circuit: A, D, C, B, A
  • 38. Trace a Hamiltonian path Only a path, not a circuit. The path did not end at the same vertex it started. The path does not need to go over every edge but it can only go over an edge once and must pass through every vertex exactly once. Hamiltonian Circuits are often called the mail man circuit because the mailman goes to every mailbox but does not need to go over every street.
  • 39. 1. Determine if the following graph has a Hamiltonian circuit, a Hamiltonian path but no Hamiltonian circuit, or neither. a, b, c, d, e, a is a Hamilton circuit
  • 40. 2. Does the graph have a Hamilton path? Ifso, find such a path. If it does not, give an argument to show why no such path exists. a, b, c, f, d, e is a Hamilton path
  • 41. 3. Does the graph in Exercise 32 have a Hamilton path? If so, find such a path. If it does not, give an argument to show why no such path exists. f, e, d, a, b, c is a Hamilton path.
  • 42. Review: Euler Graphs Passes over edge exactly once. May pass through a vertex more than once. Hamiltonian Graphs Passes through every vertex exactly once but not necessarily over every edge. Circuits The path ends at the same vertex it started.
  • 43. Quiz Answer 1. VERTEX 2. DEGREE 3. COMPLETE GRAPH 4. CLOSE WALK 5. PARALLEL
  • 44. Quiz Answer Solution: 1. G1 has an Euler circuit, a, e, c, d, e, b, a. 2. G2 Neither 3. G3 has an Euler path, namely, a, c, d, e, b, d, a, b. 4. H1 Neither 5. H2 has an Euler circuit, a, g, c, b, g, e, d, f, a 6. H3 has an Euler path, namely, c, a, b, c, d, b