Hamiltonian Circuits and Paths

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Graph-02.
B cd a e f g h i j k One answer is; a-g-c-b-f-e-i-k-h-d-j-a Year 2 Warm Up 10/21/10 State a Hamilton Circuit for the following figure:
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
AMDM UNIT 7: Networks and Graphs
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
Introduction to Graph Theory Lecture 19: Digraphs and Networks.
IEOR266 © Classification of MCNF problems.
§ Hamiltonian Circuits and Paths; Complete Graphs A sample-return mission sent to discover signs of microbial life on Mars is scheduled to be launched.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Euler and Hamilton Paths
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graphs and Euler cycles Let Maths take you Further…
Copyright © Cengage Learning. All rights reserved.
Graph Coloring.
Can you find a way to cross every bridge only once?
Take a Tour with Euler Elementary Graph Theory – Euler Circuits and Hamiltonian Circuits Amro Mosaad – Middlesex County Academy.
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
Graph Theory Topics to be covered:
Foundations of Discrete Mathematics
Euler and Hamilton Paths
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Hamiltonian Graphs By: Matt Connor Fall 2013.
It's a world-wide webby wonderland.. Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
CS 200 Algorithms and Data Structures
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
Discrete Mathematical Structures: Theory and Applications
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Directed Graphs AZ Standard Use directed graphs to solve problems.
Chapter 6: Graphs 6.1 Euler Circuits
Review Euler Graph Theory: DEFINITION: A NETWORK IS A FIGURE MADE UP OF POINTS (VERTICES) CONNECTED BY NON-INTERSECTING CURVES (ARCS). DEFINITION: A VERTEX.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
2/25/2016Tucker, Sec Applied Combinatorics, 4 th Ed. Alan Tucker Section 2.2 Hamilton Circuits Prepared by: Nathan Rounds and David Miller.
1) Find and label the degree of each vertex in the graph.
Graph Theory Euler Paths and Euler Circuits. Euler Paths & Circuits Euler Paths and Euler Circuits (Euler is pronounced the same as Oiler) An Euler path.
Euler and Hamiltonian Graphs
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Fleury's Algorithm Euler Circuit Algorithm
(CSC 102) Lecture 30 Discrete Structures. Graphs.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Hamiltonian Circuits and Paths
An Introduction to Graph Theory
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Homework 8 Graph G is given by the figure below.
Euler and Hamiltonian Graphs
Data Structures Graphs - Terminology
Euler and Hamiltonian Graphs
Task Tables Draw a graph for the following task table.
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Applied Combinatorics, 4th Ed. Alan Tucker
Chapter 4 Review Math Analysis
Euler Circuits and Paths
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Lecture 15: Graph Theory II
Discrete Math II Howon Kim
Konigsberg- in days past.
Hamiltonian Circuits and Paths
Euler Circuits and Paths
Euler and Hamilton Paths
Euler and Hamiltonian Graphs
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Presentation transcript:

Hamiltonian Circuits and Paths

Exploration Let’s pretend that you are a city inspector but this time you must inspect the fire hydrants that are located at each of the street intersections. To optimize your route, you must find a path that begins at the garage, G, visits each intersection exactly once, and returns to the garage.

Exploration f h d c G e a b i j

One Path Works! Notice that only one path meets these criteria. It is path G, h, f, d, c, a, b, e, j, i, G. Also notice, that is not necessary that every edge of the graph be traversed when visiting each vertex exactly once.

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.

The Icosian Game The object of the game was to find a path that visited each of the 20 vertices exactly once. In honor of Hamilton and the his game, a path that uses each vertex of a graph exactly once is known as a Hamiltonian path. If the path ends at the starting vertex, it is called a Hamiltonian circuit.

You Try Try to find the Hamiltonian circuit in each of the graphs below.

Intriguing Results Mathematicians are intrigued y this type of problem, because a simple test for determining whether a graph has a Hamiltonian circuit has not been found. The search continues but it now appears that a general solution may be impossible.

Hamiltonian Theorem This theorem guarantees the existence of a Hamilton circuit for certain kinds of graphs. If a connected graph has n vertices, where n>2 and each vertex has degree of at least n/2, then the graph has a Hamilton circuit.

Degrees Check the degrees of the figures in the graphs below.

Finding The Hamiltonian Since each of the five vertices of the graph has degrees of at least 5/2, the graph has a Hamiltonian circuit. Unfortunately, the theorem does not tell us how to find the circuit.

Hamiltonian Circuits If a graph has some vertices with degree less than n/2, the theorem does not apply. The second two of the figures that are drawn have vertices that have a degree less than 5/2, so no conclusion can be drawn. By inspection, the second figure has a Hamiltonian circuit but the last figure does not.

Comparison to Euler Circuits As with Euler circuits, it often is useful for the edges of the graph to have a direction. If we consider a competition where every player must play every other player. This can be shown by drawing a complete graph where the vertices represent the players.

Competition Example In this situation, a directed arrow from vertex A to vertex B would mean that player A defeated player B. This type of digraph is known as a tournament. One interesting property of such a digraph is that every tournament contains a Hamilton path which implies that at the end of the tournament it is possible to rank the teams in order, from winner to loser.

Example Suppose Four teams play in the school soccer round robin tournament. The results are as follows: Draw a digraph to represent the tournament. Find a Hamiltonian path and then rank the participants from winner to loser. Game AB AC AD BC BD CD Winner B A D

Example (cont’d) Remember that a tournament results from a complete graph when direction is given to the edges. There is only one Hamiltonian path for this graph, DBAC. Therefore, D is first, B is second, A is third and C is fourth. B A D C

Practice Problems Apply the Hamiltonian theorem to the graphs below and indicate which have Hamiltonian circuits. Explain why.

Practice Problems (cont’d) Give two examples of situations that could be modeled by a graph in which finding a Hamiltonian path or circuit would be of benefit. a. Construct a graph that has both an Euler and a Hamiltonian circuit. b. Construct a graph that has neither an Euler now a Hamiltonian circuit.

Practice Problems (cont’d) 4. Hamilton’s Icosian game was played on a wooden regular dodecahedron. In the planar representation of the game, find a Hamiltonian circuit for the graph. Is there only one Hamiltonian circuit for the graph? Can the circuit begin at any vertex?

Practice Problems

Practice Problems (cont’d) Draw a tournament with five players, in which player A beats everyone, B beats everyone but A, C is beaten by everyone and D beats E. Find all the directed Hamiltonian paths for the following tournaments: B A B A C D D C

Practice Problems (cont’d) Draw a tournament with 3 vertices in which a. One player wins all of the games it plays. b. Each player wins one game. c. Two players lose all of the games they play. Draw a tournament with five vertices in which there is a 3-way tie for first place.

Practice Problems (cont’d) When ties exist in a ranking for a tournament, is there a unique Hamiltonian path for the graph? Explain why or why not. In a tournament a transmitter is a vertex with a positive outdegree and a zero indegree. A receiver is a vertex with a positive indegree and a zero outdegree. Why can a tournament have at most one transmitter and one receiver?

Practice Problems (cont’d) Consider the set of preference schedules: A B C D B C B B D C C D D A A A 8 5 6 7

Practice Problems (cont’d) The first preference schedule could be represented by the following tournament: B A D C

Practice Problems (cont’d) Construct tournaments for the other three preference schedules. Construct a cumulative preference tournament that would show the overall results of the four preference schedules. Is there a Condorcet winner in the election? Find a Hamiltonian path for the cumulative tournament. What does this path indicate?