SlideShare a Scribd company logo
1 of 44
Download to read offline
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.
2
2
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

Similar to distructweek15graphstheoryupdated-160227143444.pdf

koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxAlpa Rajput
 
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdfISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdfmurniatimurni9
 
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............eustaquiojm1
 
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
 
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Mitul Desai
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_abas1333
 
Presentation on Graph
Presentation on GraphPresentation on Graph
Presentation on GraphSalim Hosen
 
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theoryBCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theoryRai University
 
Euleria
EuleriaEuleria
Eulerianarca
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theoryArvindBorge
 
Lecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxChandanGiri21
 

Similar to distructweek15graphstheoryupdated-160227143444.pdf (20)

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. ..............
 
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
 
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Magtibay buk bind#2
Magtibay buk bind#2Magtibay buk bind#2
Magtibay buk bind#2
 
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
 
Hamilton path and euler path
Hamilton path and euler pathHamilton path and euler path
Hamilton path and euler path
 
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
 
Presentation on Graph
Presentation on GraphPresentation on Graph
Presentation on Graph
 
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theoryBCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
 
Euleria
EuleriaEuleria
Euleria
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
 
Lecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptx
 

More from ansariparveen06

discrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptxdiscrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptxansariparveen06
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptansariparveen06
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptansariparveen06
 
Combinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptxCombinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptxansariparveen06
 
presentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptxpresentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptxansariparveen06
 
BCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptxBCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptxansariparveen06
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.pptansariparveen06
 
UNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxUNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxansariparveen06
 
1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptx1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptxansariparveen06
 

More from ansariparveen06 (20)

discrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptxdiscrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptx
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).ppt
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
kmap.pptx
kmap.pptxkmap.pptx
kmap.pptx
 
Combinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptxCombinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptx
 
presentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptxpresentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptx
 
BCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptxBCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptx
 
dsa.ppt
dsa.pptdsa.ppt
dsa.ppt
 
11-IOManagement.ppt
11-IOManagement.ppt11-IOManagement.ppt
11-IOManagement.ppt
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
UNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxUNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptx
 
1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptx1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptx
 
CHAP4.pptx
CHAP4.pptxCHAP4.pptx
CHAP4.pptx
 
green IT cooling.pptx
green IT cooling.pptxgreen IT cooling.pptx
green IT cooling.pptx
 
06-Deadlocks.ppt
06-Deadlocks.ppt06-Deadlocks.ppt
06-Deadlocks.ppt
 
chp9 green IT.pptx
chp9 green IT.pptxchp9 green IT.pptx
chp9 green IT.pptx
 
regex.ppt
regex.pptregex.ppt
regex.ppt
 
BOM.ppt
BOM.pptBOM.ppt
BOM.ppt
 
Cooling.pptx
Cooling.pptxCooling.pptx
Cooling.pptx
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

distructweek15graphstheoryupdated-160227143444.pdf

  • 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. 2 2 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