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,

Slides:



Advertisements
Similar presentations
1. Find the cost of each of the following using the Nearest Neighbor Algorithm. a)Start at Vertex M.
Advertisements

 Theorem 5.9: Let G be a simple graph with n vertices, where n>2. G has a Hamilton circuit if for any two vertices u and v of G that are not adjacent,
Chapter 8 Topics in Graph Theory
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Graph-02.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Chapter 4 sec. 2.  A famous and difficult problem to solve in graph theory.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
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.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Chapter 4 Graphs.
MTH118 Sanchita Mal-Sarkar. Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
GRAPH Learning Outcomes Students should be able to:
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Chapter 4 sections 1 and 2.  Fig. 1  Not connected  All vertices are even.  Fig. 2  Connected  All vertices are even.
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
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.
Constructing Hamiltonian Circuits When all nodes have degree of at least n/2 (Also: an implementation in C++ using Boost) Presented by Alan SUnMaRC,
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
6.4: The Brute-Force Algorithms
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Mathematics in Management Science
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.
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.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Hamiltonian Cycles Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Turn in HW and Classwork sheet from last class. You have 10 minutes to complete the warm- up. After the warm-up, we will finish our notes on algorithms.
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,
Unit 3 Chinese Postman. Non - Eulerian Semi - Eulerian Eulerian.
Chapter 2: Business Efficiency Hamiltonian Circuit Visiting Vertices –In some graph theory problems, it is only necessary to visit specific locations (using.
Trees.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Chinese Postman Problem
Limitation of Computation Power – P, NP, and NP-complete
Excursions in Modern Mathematics Sixth Edition
6.4: The Brute-Force Algorithms
Konigsberg’s Seven Bridges
HAMILTONIAN CIRCUIT ALGORITHMS
Discrete Math: Hamilton Circuits
Graph Algorithm.
Can you draw this picture without lifting up your pen/pencil?
* Hamiltonian Circuits introduction
Graph Theory.
Graph.
Walks, Paths, and Circuits
A path that uses every vertex of the graph exactly once.
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
Cheapest-Link Algorithm/Sorted Edges (Unit 10) SOL: DM.2
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Hamiltonian Cycles.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Hamilton Paths and Hamilton Circuits
Graphs G = (V, E) V are the vertices; E are the edges.
Warm Up – Monday Calculate the Redundancy of the above network.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Warm Up – 3/14 - Friday 100 seats are to be apportioned.
Traveling Salesman Problems Nearest Neighbor Method
Warm Up – 3/17 - Monday A) List the set of vertices.
Presentation transcript:

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, then all of its vertices must be even vertices.

Euler circuit Hierholzer's algorithm: Create a circuit C 1 2 3 4 5 6 1 Delete edges from the graph Find a vertex v  C, v  C1 and create new circuit 2 5 3 6 2

Hamiltonian Circuit If there is a vertex of degree one in a graph then it is impossible for it to have a Hamiltonian circuit. Dirac’s Theorem- “If G is a simple graph with n vertices where n>==3 such that the degree of every vertex in G is at least n/2, then G has a Hamiltonian circuit.” Ore’s Theorem- “If G is a simple graph with n vertices with n>=3 such that the sum of degrees for every pair of non-adjacent vertices is greater than n, then G has a Hamiltonian circuit.”

Hamiltonian Circuit The Brute force algorithm: 1.     List all possible Hamiltonian circuits 2.     Find the length of each circuit by adding the edge weights 3.     Select the circuit with minimal total weight.

The Brute force algorithm Example: Circuit Weight ABCDA 4+13+8+1 = 26 ABDCA 4+9+8+2 = 23 ACBDA 2+13+9+1 = 25 13

Nearest Neighbor Algorithm (NNA) 1.     Select a starting point. 2.     Move to the nearest unvisited vertex (the edge with smallest weight). 3.     Repeat until the circuit is complete. 13 ADCBA with a total weight of 1+8+13+4=26

Sorted Edges algorithm 13

Sorted Edges algorithm AD

Sorted Edges algorithm AD AC

Sorted Edges algorithm AD AC BD

Sorted Edges algorithm AD AC BD BC