Traveling-Salesman Problem Ch. 6. Hamilton Circuits Euler circuit/path => Visit each edge once and only once Hamilton circuit => Visit each vertex once.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
MCA 202: Discrete Mathematics under construction Instructor Neelima Gupta
Graph-02.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
1 Chapter 15.3 Hamilton Paths and Hamilton Circuits Objectives 1.Understand the definitions of Hamilton paths & Hamilton circuits. 2.Find the number of.
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.
A traveling salesman has customers in 5 cities which we will call A, B, C, D, and E. The salesman needs to travel to all 5 cities with his trip starting.
§ Hamiltonian Circuits and Paths; Complete Graphs A sample-return mission sent to discover signs of microbial life on Mars is scheduled to be launched.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Traveling-Salesman Problems
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.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 5,Wednesday, September 10.
Chapter 4 Graphs.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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,
5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead.
UNIT 3 THINKING MATHEMATICALLY BY BLITZER Hamilton Paths and Hamilton Circuits.
Ch. 15: Graph Theory Some practical uses Degree of separation- Hollywood, acquaintance, collaboration Travel between cities Konigsberg bridge Shortest.
Chapter 4 sections 1 and 2.  Fig. 1  Not connected  All vertices are even.  Fig. 2  Connected  All vertices are even.
Graph Algorithms Mathematical Structures for Computer Science Chapter 6 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesGraph Algorithms.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
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.
Aim: What is an Euler Path and Circuit?
Graph Theory. A branch of math in which graphs are used to solve a problem. It is unlike a Cartesian graph that we used throughout our younger years of.
6.1 Hamilton Circuits and Hamilton Path
Graph Theory Hamilton Paths Hamilton Circuits and.
Vertex-Edge Graphs Euler Paths Euler Circuits. The Seven Bridges of Konigsberg.
AND.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Eulerian Paths and Cycles. What is a Eulerian Path Given an graph. Find a path which uses every edge exactly once. This path is called an Eulerian Path.
1.Quiz 5 due tomorrow afternoon in E309 from 1pm to 4pm. 2.Homework grades will be based on ten graded homework assignments (dropping the lowest one).
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
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.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
1) Find and label the degree of each vertex in the graph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Hamilton Paths and Circuits 1 Click to Start 2 3 Start End.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
9.5 Euler and Hamilton graphs. 9.5: Euler and Hamilton paths Konigsberg problem.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
Euler and Hamiltonian Graphs
Konigsberg’s Seven Bridges
Discrete Structures – CNS2300
Hamilton Paths & Hamilton Circuits SOL: DM.2
Discrete Math: Hamilton Circuits
Can you draw this picture without lifting up your pen/pencil?
Euler Paths and Circuits
Hamiltonian Circuit/Paths:
* Hamiltonian Circuits introduction
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Lecture 15: Graph Theory II
6.1 Hamilton Circuits and Hamilton Path
Walks, Paths, and Circuits
A path that uses every vertex of the graph exactly once.
Euler and Hamilton Paths
Warm Up – Tuesday Find the critical times for each vertex.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Hamilton Paths and Circuits
Warm Up – 3/17 - Monday A) List the set of vertices.
Presentation transcript:

Traveling-Salesman Problem Ch. 6

Hamilton Circuits Euler circuit/path => Visit each edge once and only once Hamilton circuit => Visit each vertex once and only once (except at the end, where it returns to the starting vertex) Hamilton path => Visit each vertex once and only once Difference: Edge (Euler)  Vertex (Hamilton)

Examples of Hamilton circuits AB C D E Has many Hamilton circuits: 1)A, B, C, D, E, A 2)A, D, C, E, B, A Has many Hamilton paths: 1)A, B, C, D, E 2)A, D, C, E, B Has no Euler circuit, no Euler path => 4 vertices of odd degree Hamilton circuits can be shortened into a Hamilton path by removal of the last edge Graph 1

Examples of Hamilton circuits AB C D E Has no Hamilton circuits: What ever the starting point, we are going to have to pass through vertex E more than once to close the circuit. Has many Hamilton paths: A, B, E, C, D C, D, E, A, B Has Euler circuit => each vertex has even degree Graph 2

Examples of Hamilton circuits AB C D E Has many Hamilton circuits: 1)A, F, B, E, C, G, D, A 2)A, F, B, C, G, D, E, A Has many Hamilton paths: 1)A, F, B, E, C, G, D 2)A, F, B, C, G, D, E Has Euler circuit => Every vertex has even degree Graph 3 F G

Examples of Hamilton circuits AB CD E Has no Hamilton circuits: Has no Hamilton paths: Has no Euler circuit Has no Euler path => more than 2 vertices of odd degree Graph 4 F G H I

Complete graph A graph with N vertices in which every pair of vertices is joined by exactly one edge is called the complete graph. Total no. of edges = N(N-1)/2 AB C D In K 4, each vertex has degree 3 and the number of edges = 4 (3)/2 = 6

The six Hamilton circuits of K 4 AB C D A,B,C,D,AB,C,D,A,BC,D,A,B,CD,A,B,C,D A,B,D,C,AB,D,C,A,BC,A,B,D,CD,C,A,B, D A,C,B,D,AB,D,A,C,BC,B,D,A,CD,A,C,B,D A,C,D,B,AB,A,C,D,BC,D,B,A, CD,B,A,C,D A,D,B,C,AB,C,A,D,BC,A,D,B,CD,B,C,A,D A,D,C,B,AB,A,D,C,BC,B,A,D,CD,C,B,A,D Reference point A Reference point BReference point CReference point D Rows => 6 Hamilton circuits Cols=> same Hamilton circuit with different reference points Graph

Complete graph The number of Hamilton circuits in a complete graph can be computed by using factorials. N! (factorial of N) = 1x 2x3x4x … x(N-1)x N The complete graph with N vertices has (N-1)! Hamilton circuits. Example: The complete graph with 5 vertices has 4! = 1x2x3x4 = 24 Hamilton circuits

Factorial Which of the following is true? n! = n! x (n-1)! n! = n! + (n-1)! n! = n x (n-1)! n! = n + (n-1)!

No. of edges No of edges in K 10 is 10 10! 90 45

Complete graph In a complete graph with 14 vertices (A through N), the total number of Hamilton circuits (including mirror-image circuits) that start at vertex A is 14! (14x13)/2 15! 13!