Introduction to Graph Theory Lecture 11: Eulerian and Hamiltonian Graphs.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

CS 336 March 19, 2012 Tandy Warnow.
Coloring Warm-Up. A graph is 2-colorable iff it has no odd length cycles 1: If G has an odd-length cycle then G is not 2- colorable Proof: Let v 0, …,
Bart Jansen 1.  Problem definition  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least k leaves?
Tutorial 5 of CSCI2110 Eulerian Path & Hamiltonian Cycle Tutor: Zhou Hong ( 周宏 )
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Bipartite Matching, Extremal Problems, Matrix Tree Theorem.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Lecture 17 Path Algebra Matrix multiplication of adjacency matrices of directed graphs give important information about the graphs. Manipulating these.
Applied Combinatorics, 4th Ed. Alan Tucker
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Vertex Cut Vertex Cut: A separating set or vertex cut of a graph G is a set S  V(G) such that G-S has more than one component. a b c d e f g h i.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
Definition Hamiltonian graph: A graph with a spanning cycle (also called a Hamiltonian cycle). Hamiltonian graph Hamiltonian cycle.
Vertex Cut Vertex Cut: A separating set or vertex cut of a graph G is a set SV(G) such that S has more than one component. Connectivity of G ((G)): The.
1 CIS /204—Spring 2008 Recitation 10 Friday, April 4, 2008.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Definition Dual Graph G* of a Plane Graph:
Vertex Cut Vertex Cut: A separating set or vertex cut of a graph G is a set SV(G) such that G-S has more than one component. d f b e a g c i h.
Introduction to Graph Theory
GRAPH Learning Outcomes Students should be able to:
Subdivision of Edge In a graph G, subdivision of an edge uv is the operation of replacing uv with a path u,w,v through a new vertex w.
Turan’s theorem and extremal graphs Question: How many edges a simple graph must have to guarantee that the graph contains a triangle? Since K m,m and.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
4.1 Connectivity and Paths: Cuts and Connectivity
Approximation Algorithms
CS 200 Algorithms and Data Structures
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Planar Graphs Graph Coloring
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Connectivity and Paths 報告人:林清池. Connectivity A separating set of a graph G is a set such that G-S has more than one component. The connectivity of G,
Chap. 11 Graph Theory and Applications 1. Directed Graph 2.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Introduction to Graph Theory Lecture 13: Graph Coloring: Edge Coloring.
Introduction to Graph Theory
CSC 413/513: Intro to Algorithms
Introduction to Graph Theory
Introduction to Graph Theory
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
COMPSCI 102 Introduction to Discrete Mathematics.
12. Lecture WS 2012/13Bioinformatics III1 V12 Menger’s theorem Borrowing terminology from operations research consider certain primal-dual pairs of optimization.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
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.
Proof of correctness of Dijkstra’s algorithm: Basically, we need to prove two claims. (1)Let S be the set of vertices for which the shortest path from.
Trees.
Graphs. Representations of graphs : undirected graph An undirected graph G have five vertices and seven edges An adjacency-list representation of G The.
An Introduction to Graph Theory
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
SULE SOLMAZ BEYZA AYTAR
Graph theory Definitions Trees, cycles, directed graphs.
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Hamiltonian cycle part
Greedy Algorithms / Minimum Spanning Tree Yin Tat Lee
CSE 421: Introduction to Algorithms
ICS 353: Design and Analysis of Algorithms
Graph Theory.
Graphs Chapter 13.
Discrete Math II Howon Kim
V12 Menger’s theorem Borrowing terminology from operations research
Richard Anderson Winter 2019 Lecture 5
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Introduction to Graph Theory Lecture 11: Eulerian and Hamiltonian Graphs

Hamiltonicity As opposed to Eulerian graphs, we now want to make sure we visit each vertex just once. The famous application for such a graph is the traveling salesman problem  Starting from the home city, the salesman should visit each city to show his merchandise.

Terminology A graph with a spanning path is called traceable. A graph with a spanning cycle is called hamiltonian. The spanning cycle is called hamiltonian cycle. A traceable non-hamiltonian graph is called semi-hamiltonian  Having only hamiltonian path, not cycle

Observations Unlike eulerian graphs, it is often hard to determine if a graph is hamiltonian. Some necessary conditions for a graph to be hamiltonian  If graph G is bipartite, but not equitable, then not hamiltonian.  The graph must be 2-connected (no cut vertex) Can we see why?

Hamiltonicity of Hypercubes Hamiltonicity of a constructed graph can be derived from the component graphs. : consisting of 2 copies of G (G and G’). If G is traceable, then is hamiltonian.  Taking the spanning path P in G with endpoint x and y  Taking its mirror image path P’ in G’ with endpoint x’ and y’  Adding xx’ and yy’ to the path is hamiltonian, so are

Sufficient Conditions There exist many such conditions that guarantee that a given graph is hamiltonian. We just study one of them (popular and easier) Theorem 5.2: If G is a graph of order such that, then G is hamiltonian.

Proof of Theorem 5.2 If n=3, then implies that, which is hamiltonian. Now suppose n>3 and let be a path of maximum length in G  Observation1: Since, P must contain at least vertices. Reason: The only possible additional adjacencies of v 1 and v k lie within the set  Observation2: There must be some vertex such that and are adjacent while and are adjacent.

(cont)  Now we know that G contains a cycle  Suppose If there is a vertex u not in C. Using observation1, u must be adjacent to at least one vertex on C => a longer path than P. Therefore impossible.  Therefore C contains all vertices, and thus a hamiltonian cycle.

Some Remarks The converse of Theorem is not true. If G is hamiltonian, it needs not have the property Take for as an example Can you tell the difference between necessary and sufficient conditions?

Homogeneous Connected Given any vertex, there exists a hamiltonian path starting at v. Hamiltonian graph is homogeneous connected.  Simply by deleting an edge of the spanning cycle incident with v. Please note that the reverse is not always true.  E.g Peterson graph

Hamiltonian Connected Given any pair of vertices x and y, there is an x-y halmiltonian path for G For example, If G is hamiltonian connected, it is homogenous connected If order is at least 3, a hamiltonian-connected => hamiltonian  Proof?

Hypercubes We know that are hamiltonian for But hypercubes are not hamiltonian connected  Picking any two vertices x and y of the same color. in the bipartite hypercube.  has even order, thus the hamiltonian path is even order with end vertices of opposite colors  Therefore, there is no x-y hamiltonian path. But are hamilton laceable.

Hamilton Laceble An equitable bipartite graph G is hamilton laceble if there exists an x-y spanning path for G for any two oppositely colored vertices x and y. Theorem 5.4: is hamilton laceable  Proof by induction (some typos in the textbook)

Proof of Theorem 5.4 Basic case: true for n=1 or 2. Hypothesis: Assume true for n=k (Q k ) Prove that the theorem is true for n=k+1 (Q k+1 )  Let r and b be vertices of Q k+1, s.t. r is red and b is blue.  Split Q k+1 into two copies of Q k, R and B, such that  We know that R is hamiltonian and bipartite, so there exists a cycle spanning C containing r and its neighbor x.  Let x’ be a neighbor of x in B. Since x is blue, x’ must be red.  By the hypothesis, we can find an b-x’ spanning path L in B.  The required r-b spanning path for Q k+1 is M, xx’,L, where M is the spanning path from r to x on C.

Application: The Traveling Salesman We want to find the hamiltonian cycle of minimum weight --- least cost b a f c e d

Some Remarks In applications the problems are much more overwhelming There is no efficient method for solving the traveling salesman problem There are approximation techniques for this problem The problem is intrinsically difficult to solve.

Term Project Available online now.