* Hamiltonian Circuits introduction

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Graph-02.
Chapter 7 Graph Theory 7.1 Modeling with graphs and finding Euler circuits. Learning Objectives: Know how to use graphs as models and how to determine.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Chapter 4 sec. 2.  A famous and difficult problem to solve in graph theory.
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Homework collection Read Pages 175 – 184 Page 188: 21 – 26, 29 – 36, 41 – 44, 47 – 49, 51, 52, 59, 62, 63.
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.
Traveling-Salesman Problem Ch. 6. Hamilton Circuits Euler circuit/path => Visit each edge once and only once Hamilton circuit => Visit each vertex once.
Chapter 4 Graphs.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
GRAPH Learning Outcomes Students should be able to:
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Graph Theory Topics to be covered:
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Graph Theory Hamilton Paths and Hamilton Circuits.
Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
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.
CS 200 Algorithms and Data Structures
Page 714 #1-10 ANSWERS Lesson Reflection for Chapter 14 Section 7.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
6.1 Hamilton Circuits and Hamilton Path
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Graph Theory Hamilton Paths Hamilton Circuits 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.
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.
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) Find and label the degree of each vertex in the graph.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
(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,
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
An Introduction to Graph Theory
Hamilton Paths and Hamilton Circuits
Excursions in Modern Mathematics Sixth Edition
Weighted Graphs and traveling Salesperson problem
EECS 203 Lecture 19 Graphs.
Task Tables Draw a graph for the following task table.
Agenda Lecture Content: Introduction to Graph Path and Cycle
HAMILTONIAN CIRCUIT ALGORITHMS
EECS 203 Lecture 20 More Graphs.
Discrete Maths 9. Graphs Objective
Spanning Trees Discrete Mathematics.
Discrete Math: Hamilton Circuits
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Graph.
Lecture 15: Graph Theory II
Graphs Chapter 13.
Genome Assembly.
Foundations of Discrete Mathematics
Chapter 2: Business Efficiency Business Efficiency
6.1 Hamilton Circuits and Hamilton Path
Introduction to Vertex-Edge graphs (2 days)
Discrete Math II Howon Kim
Konigsberg- in days past.
Hamiltonian Circuits and Paths Vocabulary
Discrete math Objectives: To learn vocabulary, vertex/edge patterns in discrete math. Vertex Edge Graph - A collection of points some of which are joined.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Hamilton Paths and Hamilton Circuits
Chapter 1: Urban Services Management Science
Euler circuit Theorem 1 If a graph G has an Eulerian path, then it must have exactly two odd vertices. Theorem 2 If a graph G has an Eulerian circuit,
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Presentation transcript:

* Hamiltonian Circuits introduction 07/16/96 Management Science Hamiltonian Circuits introduction *

What’s the difference? Euler Circuit Problems: Problems where travel * 07/16/96 What’s the difference? Euler Circuit Problems: Problems where travel along every EDGE was required *

What’s the difference? Hamiltonian Circuit Problems: * 07/16/96 What’s the difference? Hamiltonian Circuit Problems: Problems that require travel To every VERTEX *

Ch 6: Vocabulary Hamilton Path: path that passes through every vertex of the graph Hamilton Circuit: circuit that visits each vertex only once (except where it returns to the starting vertex) Note – Hamilton Paths and circuits are NOT mutually exclusive of one another!

Ch 6: Vocabulary Complete Graph: every pair of vertices is joined by exactly one edge. Each of the N vertices has degree N-1 Total number of edges KN = N(N-1)/2 KN has the most edges of any graph of N vertices as long as there are no loops or multiple edges.

Ch 6: Vocabulary Weighted Graph: a graph whose edges have numbers attached to them. Weights – numbers could represent time, money, or distance.

Euler Circuits & Paths 2 4, 6, 8, …. 1, 3, 5 ….. Number of Odd Vertices Conclusion  Euler Circuit 2  Euler Path 4, 6, 8, ….  Neither 1, 3, 5 …..  

Hamilton Circuits Dirac’s Theorem – If a connected graph has N vertices (N>2) and all of them have degree bigger than or equal to N/2, then the graph has a Hamilton Circuit.

Hamilton’s Circuits If a graph is complete it has a Hamilton Circuit.

Number of Hamilton Circuits in KN There are (N – 1)! Distinct Hamilton Circuits in KN Example: D C B A Is this graph complete? N = 4, every vertex degree → 3  # of Hamilton circuits? (4-1)! = 6 Find Them

Are you finding more than expected? Lets take a look at why our numbers aren’t matching up. CADBC BCADB D C B A D C B A

Distinct Hamilton Circuits in KN There are (N – 1)! Distinct Hamilton Circuits in KN If it is the same circuit, but different reference point, It is not distinct

Find all 6 DISTINCT HC’s Mirror images ABCDA ABDCA ACBDA ACDBA ADBCA ADCBA Mirror images

Mirror images ABCDA ADCBA ABDCA ACDBA ACBDA ADBCA # of distinct HC, disregarding mirror images 𝑁−1 ! 2

Factorials N 1 2 Remember…… 3 (6)! = 4 6 x 5 x 4 x 3 x 2 x 1 5 6 7 8 9 10 Remember…… (6)! = 6 x 5 x 4 x 3 x 2 x 1

Factorial Examples 20! 10! 11! 10! (9!+11!) 10! How many edges in K21?

EXAMPLES OF HAMILTONIAN CIRCUIT PROBLEMS * 07/16/96 EXAMPLES OF HAMILTONIAN CIRCUIT PROBLEMS The traveling salesman City bus routes (pick ups at a specific stop) Tour bus routes (to specific sites) Field trip routes (to specific displays/exhibits/areas of interest) *

Hamiltonian Circuit Application * 07/16/96 Hamiltonian Circuit Application Fred is really quite lazy. He has to deliver flowers to 3 different houses, and really doesn’t enjoy the walk. He wants to figure out the shortest route (# of blocks) that will take him to each of the 3 houses one time, and get him back to the greenhouse. *

The GRAPHIC interpretations of the solutions to the “Fred is lazy” problem... Route #1 G B R O Route #2 The original “map” can be drawn in this way... To simplify the look of the problem. There are only 3 distinct routes that could be used... G B R O Route #3

Hamiltonian SUBGRAPHS... Route #1 G B R O Route #2 G B R O Route #3 You should notice that these 3 figures represent the ONLY possible routes Fred could take. Each figure is called a SUBGRAPH of the original graph. Each figure can be used to describe a number of routes depending on the starting point.

Using Hamiltonian subgraphs to find hamiltonian circuits... Route #1 G B R O Route #2 G B R O Route #3 ROUTE #1: Two possible circuits that could be drawn on this subgraph are: G-B-O-R-G or G-R-O-B-G, if the greenhouse must be the starting and ending point. Notice that these circuits are “mirror images” of one another. ROUTE #2: could be described G-R-B-O-G or its mirror image circuit. ROUTE #3: G-B-R-O-G or its mirror image circuit.

The “lazy Fred” application If you are given the total number of blocks from one house to another, you can examine the three subgraphs to determine the most efficient route Fred could take. In this case, the OPTIMAL solution will be the one that covers the fewest blocks. 3 2 1 4 G B R O The numbers on the edges of the graph represent the # of blocks from one house to the other along a given edge. We will call these values the WEIGHTS of the edges.

The OPTIMAL ROUTE?... G B R O G B R O G B R O For ROUTE #1, the total WEIGHT is: 3+3+4+3 = 13 blocks ROUTE #2: wt. = 1+2+3+4 = 10 blocks ROUTE #3: wt.= 1+2+3+3 = 9 blocks Making route #3 Fred’s most efficient way to deliver the flowers.