CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Copyright © 2005 Pearson Education, Inc. Slide 13-1.
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.
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.
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.
AMDM UNIT 7: Networks and Graphs
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.
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.
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
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.
The Travelling Salesman Algorithm A Salesman has to visit lots of different stores and return to the starting base On a graph this means visiting every.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
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.
GRAPH Learning Outcomes Students should be able to:
Take a Tour with Euler Elementary Graph Theory – Euler Circuits and Hamiltonian Circuits Amro Mosaad – Middlesex County Academy.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
SPANNING TREES Lecture 21 CS2110 – Spring
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
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.
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.
There is a Postman who delivers mail to a certain neighborhood of streets. The postman is unwilling to walk far so he wants to find the shortest route.
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
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.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Spring 2015 Mathematics in Management Science Traveling Salesman Problem Approximate solutions for TSP NNA, RNN, SEA Greedy Heuristic Algorithms.
CS 200 Algorithms and Data Structures
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
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.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees.
6.1 Hamilton Circuits and Hamilton Path
Mathematics in Management Science
AND.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
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.
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.
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.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Unit 2 Hamiltonian Circuits. Hamiltonian Circuit: A tour that starts at a vertex of a graph and visits each vertex once and only once, returning to where.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
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,
Mathematical modeling To describe or represent a real-world situation quantitatively, in mathematical language.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Hamilton Paths and Hamilton Circuits
HAMILTONIAN CIRCUIT ALGORITHMS
EECS 203 Lecture 20 More Graphs.
Chapter 2: Business Efficiency Lesson Plan
Chapter 2: Business Efficiency Lesson Plan
Can you draw this picture without lifting up your pen/pencil?
Graph Theory.
Graphs Chapter 13.
Chapter 2: Business Efficiency Business Efficiency
6.1 Hamilton Circuits and Hamilton Path
A path that uses every vertex of the graph exactly once.
Shortest Route Problems
Presentation transcript:

CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg

Terminology Network – a group or system of interconnected people or things Graph – a mathematical structure consisting of vertices and edges Vertices – points on a graph that may represent locations, people, or anything of interest Edges – the lines that connect the vertices Path – a connected sequence of edges in a graph

Circuit – a path that starts and ends at the same vertex Valence – the number of edges connected to any given vertex Connected graph – for every pair of vertices there is at lest one path connecting the two vertices

Euler Circuits In an Euler circuit, you start and end at the same vertex while traveling each edge of the graph exactly once. Fact: For any given graph, it has an Euler circuit if and only if it is connected and has all vertices of even valence. If no Euler circuit exists, we may try to add edges in order to make it happen.

Eulerizations Eulerization video

Hamilton and some salesman CIRCUITS, PATHS AND SCHEDULES

W.R. Hamilton Euler focused on the traveling of edges. Hamilton was more concerned with the visiting of vertices. Hamiltonian circuit – start where you end (circuit) in which you visit each vertex once and only once. Hamiltonian circuits provide the most efficient way to run errands

Terminology Weight – a number added to an edge that may be distance, cost, or even length of time Complete graph – every pair of vertices is joined by an edge. That is, you can get to any vertex directly from the one that you are already at via only one edge.

The Best? To find the best Hamiltonian circuit for any particular weighted connected graph, you need to list all the Hamiltonian circuits and choose the shortest. This takes time and effort so being organized is key!

Traveling Salesman Problem Hamiltonian circuits led to the Traveling Salesman Problem (TSP). TSP is trying to get a salesman through his route with as little cost as possible. In order to solve the TSP we will use two types of algorithms (step-by-step procedures).

Nearest-Neighbor Algorithm Start at any vertex. Choose the next vertex by using the edge of the least weight. Choose the next vertex by using the edge of the least weight not already used, AND that does not close off the circuit. Continue until all vertices are visited. This is not always best…it is said to be a greedy algorithm.

Sorted-Edges Algorithm Make a list of the weights in an increasing order, low to high. Select an edge keeping two things in mind: We don’t have to make a circuit as we go. We cannot add an edge that would prevent a Hamiltonian circuity from being formed. Cannot use three edges from a single vertex and cannot close off a path that leaves out a vertex. This solution may not be optimal, but it is usually “good enough.”