Introduction to Graph Theory Euler and Hamilton Paths and Circuits

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE An Euler.
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.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
AMDM UNIT 7: Networks and Graphs
IEOR266 © Classification of MCNF problems.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Euler and Hamilton Paths
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.
Can you find a way to cross every bridge only once?
GRAPH Learning Outcomes Students should be able to:
EECS 203: It’s the end of the class and I feel fine. Graphs.
Graph Theory Topics to be covered:
Euler and Hamilton Paths
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
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.
Introduction to Graph Theory
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
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.
AND.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
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.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Lecture 52 Section 11.2 Wed, Apr 26, 2006
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.
Introduction to Graph Theory
1) Find and label the degree of each vertex in the graph.
Euler and Hamiltonian Graphs
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
An Introduction to Graph Theory
EECS 203 Lecture 19 Graphs.
Euler and Hamiltonian Graphs
Graphs: Definitions and Basic Properties
CSC 172 DATA STRUCTURES.
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Euler and Hamiltonian Graphs
Euler Paths and Circuits
Agenda Lecture Content: Introduction to Graph Path and Cycle
Discrete Structures – CNS2300
EECS 203 Lecture 20 More Graphs.
Spanning Trees Discrete Mathematics.
Discrete Math: Hamilton Circuits
CSC 172 DATA STRUCTURES.
Can you draw this picture without lifting up your pen/pencil?
This unit is all about Puzzles Games Strategy.
Euler Paths & Euler Circuits
Graph Theory.
Lecture 15: Graph Theory II
CSE 373, Copyright S. Tanimoto, 2002 Graphs 1 -
Konigsberg- in days past.
Graph Theory What is a graph?.
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
5.4 T-joins and Postman Problems
Euler and Hamilton Paths
Euler and Hamiltonian Graphs
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Chapter 10 Graphs and Trees
Hamilton Paths and Circuits
Presentation transcript:

Introduction to Graph Theory Euler and Hamilton Paths and Circuits

Write definitions here Vertices: Edges: Loop: Order of the graph: Degree of a vertex:

A multigraph has multiple edges and loops.

Complete Graphs A graph is complete if, between any two vertices, there exists and edge connecting these two vertices.

The Seven bridges of Königsberg

Euler Paths and Circuits b c d A B C D

Euler Paths and Circuits An Euler path is a path using every edge of the graph G exactly once. An Euler circuit is an Euler path that returns to its start. A B C D Does this graph have an Euler circuit?

Necessary and Sufficient Conditions How about multigraphs? A connected multigraph has a Euler circuit iff each of its vertices has an even degree. A connected multigraph has a Euler path but not an Euler circuit iff it has exactly two vertices of odd degree.

Example Which of the following graphs has an Euler circuit? yes no no d a c b e d a c b e c a d b yes no no (a, e, c, d, e, b, a)

Example Which of the following graphs has an Euler path? yes no yes d a c b e d a c b e c a d b yes no yes (a, e, c, d, e, b, a ) (a, c, d, e, b, d, a, b)

Euler Circuit in Directed Graphs NO (a, g, c, b, g, e, d, f, a) NO

Euler Path in Directed Graphs NO (a, g, c, b, g, e, d, f, a) (c, a, b, c, d, b)

Hamilton Paths and Circuits A Hamilton path in a graph G is a path which visits every vertex in G exactly once. A Hamilton circuit is a Hamilton path that returns to its start.

Hamilton Circuits Dodecahedron puzzle and it equivalent graph Is there a circuit in this graph that passes through each vertex exactly once?

Hamilton Circuits Yes; this is a circuit that passes through each vertex exactly once.

Finding Hamilton Circuits Which of these three figures has a Hamilton circuit? Of, if no Hamilton circuit, a Hamilton path?

Finding Hamilton Circuits G1 has a Hamilton circuit: a, b, c, d, e, a G2 does not have a Hamilton circuit, but does have a Hamilton path: a, b, c, d G3 has neither.

Finding Hamilton Circuits Unlike the Euler circuit problem, finding Hamilton circuits is hard. There is no simple set of necessary and sufficient conditions, and no simple algorithm.

Properties to look for ... No vertex of degree 1 If a node has degree 2, then both edges incident to it must be in any Hamilton circuit. No smaller circuits contained in any Hamilton circuit (the start/endpoint of any smaller circuit would have to be visited twice).

A Sufficient Condition Let G be a connected simple graph with n vertices with n  3. If the degree of each vertex is  n/2, then G has a Hamilton circuit.

Travelling Salesman Problem A Hamilton circuit or path may be used to solve practical problems that require visiting “vertices”, such as: road intersections pipeline crossings communication network nodes A classic example is the Travelling Salesman Problem – finding a Hamilton circuit in a complete graph such that the total weight of its edges is minimal. https://youtu.be/SC5CX8drAtU

Summary Property Euler Hamilton Repeated visits to a given node allowed? Yes No Repeated traversals of a given edge allowed? Omitted nodes allowed? Omitted edges allowed?