6 - Mathematics - of - Graphs - PPTX Filename - UTF-8''6 Mathematics of Graphs
6 - Mathematics - of - Graphs - PPTX Filename - UTF-8''6 Mathematics of Graphs
Graphs
Outline
2.
Euler Circuits
•A path in a graph can be thought of as a movement from
one vertex to another by traversing edges.
•If a path ends at the same vertex at which it started, it is
considered a closed path, or circuit.
•A circuit that uses every edge, but never uses the same
edge twice, is called an Euler circuit.
•The number of edges that meet at a vertex is called the
degree of a vertex.
Eulerian Graph Theorem
Note:
If the graph does not meet the requirements of the
Dirac’s Theorem, it still might be Hamitonian.
Weighted Graph
Note:
The greedy algorithm attempts to give a
circuit of minimal total weight, although it
does not always succeed.
Example: Greedy Algorithm
Use the greedy algorithm to find a Hamiltonian circuit
starting at vertex A in the given weighted graph.
The Edge-Picking Algorithm
Note:
The edge-picking algorithm attempts to give
a circuit of minimal total weight, although it
does not always succeed.
Example: Edge Picking Algorithm
Use the edge-picky algorithm to find a Hamiltonian circuit
in the given weighted graph.
Example: Edge Picking Algorithm
The table shows the lengths of cables needed to connect
computers to create a network. Find the minimum length
of cable using the edge-picking algorithm.
A B C D E F
A -- 10 22 9 15 8
B 10 -- 12 14 16 5
C 22 12 -- 14 9 16
D 9 14 14 -- 7 15
E 15 16 9 7 -- 13
F 8 5 16 15 13 --
Example: Hamiltonian Circuit
Use (a.) the greedy algorithm starting at vertex A and (b.)
edge-picky algorithm to find a Hamiltonian circuit in the
given weighted graph.
Applications of Weighted Graphs
(Aufmann) Route Planning: Brian needs to visit the pet store, the
shopping mall, the local farmers market and the pharmacy. His
estimated driving times (in minutes) between the locations are given
the table below. Use the greedy algorithm and the edge-picking
algorithm to find two possible routes, starting and ending at home, that
will help Brian minimize his total travel time.
Home Pet store Shopping Farmers Pharmacy
mall market
Home - 18 27 15 8
Pet store 18 - 24 22 10
Shopping 27 24 - 20 32
mall
Farmers 15 22 20 - 22
market
Pharmacy 8 10 32 22 -
Planarity and Euler’s Formula
Planar Graphs
Subgraph Theorem
“If a graph G has a subgraph that is not planar, the G is
also not planar. In particular, if contains the Utilities
Graph or K5 as a subgraph, G is not planar.”