The Chinese Postman Problem Route Planning Map Colouring

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Decision Maths Networks Kruskals Algorithm Wiltshire Networks A Network is a weighted graph, which just means there is a number associated with each.
Discrete Mathematics 6. GRAPHS Lecture 10 Dr.-Ing. Erwin Sitompul
Discrete Maths Chapter 5: Route Inspection Lesson 1: Chinese Postman.
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.
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
The Seven Bridges Of Konigsberg.
Pamela Leutwyler. A river flows through the town of Konigsburg. 7 bridges connect the 4 land masses. While taking their Sunday stroll, the people of Konigsburg.
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
Euler and Hamilton Paths
Algorithms on graphs In Decision Mathematics, a graph consists of points (called vertices or nodes) which are connected by lines (edges or arcs). Eg in.
Graphs and Euler cycles Let Maths take you Further…
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.
The Bridge Obsession Problem By Vamshi Krishna Vedam.
Copyright © Cengage Learning. All rights reserved.
Can you find a way to cross every bridge only once?
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graph Theory Topics to be covered:
1 Starter of the day 23 x 27 = x 47 = x 87 = x 55 = x 58 = ???? 54 x 56 = ???? Can you spot the trick for this group of.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Networks.
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.
Euler and Hamilton Paths
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.
Chinese postman problem
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.
It's a world-wide webby wonderland.. Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented.
Graph Theory & Networks Name:____________Date:______ Try to trace each figure below without lifting your pencil from the paper and without retracing any.
CS 200 Algorithms and Data Structures
Aim: What is an Euler Path and Circuit?
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
Chapter 1: Urban Services Lesson Plan
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
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Aim: Graph Theory – Paths & Circuits Course: Math Literacy Do Now: Aim: What are Circuits and Paths? Can you draw this figure without retracing any of.
M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.
Introduction to Graph Theory
Konisberg Bridges (One-way street) SOL: DM.2 Classwork Quiz/worksheet Homework (day 62) worksheet.
Graph Theory Two Applications D.N. Seppala-Holtzman St. Joseph ’ s College.
1) Find and label the degree of each vertex in the graph.
Graph Theory Euler Paths and Euler Circuits. Euler Paths & Circuits Euler Paths and Euler Circuits (Euler is pronounced the same as Oiler) An Euler path.
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.
Graphs. Graph Definitions A graph G is denoted by G = (V, E) where  V is the set of vertices or nodes of the graph  E is the set of edges or arcs connecting.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare 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,
Teacher Notes: There is a famous problem in Discrete Mathematics called ‘The Bridges of Konigsberg’ in which it is said to be impossible to cross each.
Konisberg Bridges (One-way street) SOL: DM.2
Chinese Postman Problem
Excursions in Modern Mathematics Sixth Edition
Chapter 2: Business Efficiency Lesson Plan
Euler Circuits and Paths
THE CHINESE POSTMAN PROBLEM Liz Biz and Hells Bells.
Nuffield Free-Standing Mathematics Activity
Chapter 1: Urban Services Lesson Plan
Excursions in Modern Mathematics Sixth Edition
Konigsberg- in days past.
Graph Theory What is a graph?.
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.
Euler Circuits and Paths
Networks Kruskal’s Algorithm
Chapter 1: Urban Services Management Science
Graph Theory Relations, graphs
Chapter 1: Urban Services Lesson Plan
Presentation transcript:

The Chinese Postman Problem Route Planning Map Colouring Graphs & Networks Route Inspection The Chinese Postman Problem Route Planning Map Colouring

Where graph theory came from… The city of Königsberg in Prussia (now Kaliningrad, Russia) was set on both sides of the Pregel River, and included two large islands which were connected to each other and the mainland by seven bridges. The problem was to find a walk through the city that would cross each bridge once and only once. The islands could not be reached by any route other than the bridges, and every bridge must have been crossed completely every time (one could not walk half way onto the bridge and then turn around and later cross the other half from the other side).

Where graph theory came from…

The Chinese Postman algorithm was invented in 1962 and takes its name from the Chinese mathematician Kuan Mei-Ko who considered the problem of a postman who has to deliver mail to houses along each of the streets in a particular housing estate and wants to minimise the distance he has to walk. He must return to his starting position

Traversability A network is said to be Traversable if you can draw it without removing your pen from the paper and without retracing the same arc twice. Are these Graphs Traversable?

What is the difference between the 3 graphs? No Yes Yes

To be traversable it must have 2 or 0 odd nodes In order to start and end at the same node the network must be Eularian (all nodes must be even). If exactly two nodes have odd order, the network is still traversable, but you start and end at different nodes (and the network is Semi-Eularian) To be route for a postman it must be closed and so have 0 odd nodes

Traversability Yes Yes Yes No Yes Yes A network is said to be Traversable if you can draw it without removing your pen from the paper and without retracing the same arc twice. It is Closed if you can start anywhere and finish at the start point. Are these Graphs Traversable? Are they closed? Yes Yes Yes Traversable? No Yes Yes Closed?

Number of even vertices For each network, count the number of odd vertices and the number of even vertices, then complete the table. Network Number of even vertices Number of odd vertices Traversable? Closed?

Notes… If the graph in question is closed then such a trail is easy to find. However, many graphs are not closed and this is where the problem becomes more interesting. Such a network can be made closed by linking together pairs of odd nodes with additional arcs. The effect of adding these extra arcs is to make all nodes even and thus the network is now closed. This graph has four vertices of odd order and so it is not closed or traversable.

We need to pair the vertices together by adding an extra edge to make the order of each vertex four. We can join AB and CD, or AC and BD, or AD and BC. In each case the graph is now closed. [You only need to add one arc to be traversable]

Starting and finishing at A write down one solution such as ABGC…. If the length of each road is 1 mile, find the length of an optimal Chinese postman closed route for these networks Starting and finishing at A write down one solution such as ABGC…. Draw extra line from B to C 9 miles: One route is AFEDCGBCBA Draw two extra lines B to C and E to F 12 miles: One route is: AFGEFEDCGBCBA 12 miles: One route is: ABCEDCGBFGEFA

Draw an extra route from B to E A groundsman at a local sports centre has to mark out the lines of several five-a-side pitches using white paint. He is unsure as to the size of the goal area and he decides to paint the outline as given below, where all the distances are in metres. He starts and finishes at the point A. Find the minimum total distance that he must walk and give one of the corresponding possible routes. Draw an extra route from B to E 180 metres: One possible route: ABEBCDEFA

Draw an extra route from D to E and D to C A local council is responsible for gritting roads. The following diagram shows the lengths of roads, in miles, that have to be gritted. He starts and finishes at the point A. Find the minimum total distance that he must drive and give one of the corresponding possible routes. Draw an extra route from D to E and D to C 80.5 miles: One possible route: ABFEBCDEDCA

43 93 Find the length of an optimal Chinese postman route for the networks below. Start and end at C. 43 93

Directed Chinese Postman Problem There are many variations to the Chinese Postman Problem, most notably whether the roads are one-way Taking each arc to be of equal weight, one optimal closed Chinese Postman Tour of this graph is: 0, 1, 3, 0, 1, 2, 3, 0, 2, 3, 0, traversing 10 arcs. A least cost open tour is:1 , 3, 0, 1, 2, 3, 0, 2, which traverses only 7 arcs.

Route Planning Problem Is it possible to plan a walk in which each door is passed through exactly once? Each room is represented by a vertex point. Notice that a vertex (point P) is needed to represent the region outside the floor plan. Now we need to count the order of each of the nodes.

Is it possible to plan a walk in which each door is passed through exactly once? Can you start inside or outside the building?

Graph Coloring Problem Your mission color the entire map of South America. 1. No country may touch another country of the same color. 2. You will be charged each time you use a color 3. You must color the map as cheaply as possible. We start with the graph representation: vertices represent countries. Two vertices are adjacent if two countries have a common boarder. So we reduce a problem to vertex coloring. Adjacent vertices must be colored in different colors.