Discrete Maths Chapter 5: Route Inspection Lesson 1: Chinese Postman.

Slides:



Advertisements
Similar presentations
Discrete math Objectives: To learn vocabulary, vertex/edge patterns in discrete math. Vertex Edge Graph - A collection of points some of which are joined.
Advertisements

CSE 211 Discrete Mathematics
Decision Maths Networks Kruskals Algorithm Wiltshire Networks A Network is a weighted graph, which just means there is a number associated with each.
The Chinese Postman Problem Route Planning Map Colouring
O(N 1.5 ) divide-and-conquer technique for Minimum Spanning Tree problem Step 1: Divide the graph into  N sub-graph by clustering. Step 2: Solve each.
Introduction to Graphs
Discrete Maths Chapter 3: Minimum Connector Problems Lesson 1: Prim’s and Kruskal.
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
IEOR266 © Classification of MCNF problems.
Chapter 7 Network Flow Models.
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
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Graphs and Euler cycles Let Maths take you Further…
The Bridge Obsession Problem By Vamshi Krishna Vedam.
Management Science 461 Lecture 9 – Arc Routing November 18, 2008.
Chapter 4: Finding the Shortest Path Lesson 1: Dijkstra’s Algorithm
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.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Networks.
COSC 2007 Data Structures II Chapter 14 Graphs III.
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.
Lecture 16 Maximum Matching. Incremental Method Transform from a feasible solution to another feasible solution to increase (or decrease) the value of.
CSE, IIT KGP Euler Graphs and Digraphs. CSE, IIT KGP Euler Circuit We use the term circuit as another name for closed trail.We use the term circuit as.
Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
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
Spring 2015 Mathematics in Management Science Chinese Postman Problem What is CPP? CPP & ECs & EPs Fleury’s Algorithm Eulerization.
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.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Chapter 2: Graphs and Networks Lesson 2: Hello Mr Euler…
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
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.
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
Street Networks Ch. 1 Finite Math. Our Learning Goal (why am I doing this?) To be able to figure out the best path to choose when traveling a street network.
EULER PATHS & CHINESE POSTMAN SOL: DM.2 CLASSWORK WORKSHEET HOMEWORK (DAY 59) WORKSHEET.
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.
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,
STARTER: CAN YOU FIND A WAY OF CROSSING ALL THE BRIDGES EXACTLY ONCE? Here’s what this question would look like drawn as a graph.
Unit 3 Chinese Postman. Non - Eulerian Semi - Eulerian Eulerian.
Chinese Postman Problem
D1 Discrete Mathematics
Dijkstra’s shortest path Algorithm
Euler Circuits and Paths
D1 Discrete Mathematics
THE CHINESE POSTMAN PROBLEM Liz Biz and Hells Bells.
Nuffield Free-Standing Mathematics Activity
Graphs Chapter 11 Objectives Upon completion you will be able to:
Introduction to Vertex-Edge graphs (2 days)
Chapter 1: Urban Services Lesson Plan
Lecture 19-Problem Solving 4 Incremental Method
Excursions in Modern Mathematics Sixth Edition
Louisiana Travels.
Chapter 4: Finding the Shortest Path Lesson 1: Dijkstra’s Algorithm
Decision Maths Graphs.
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: Euler Graphs and Digraphs
Chapter 1: Urban Services Lesson Plan
Presentation transcript:

Discrete Maths Chapter 5: Route Inspection Lesson 1: Chinese Postman

Can you remember what Traversability means?... F D B C E A

Traverasbility 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. In order to start and end at the same node the network must be Eularian (all nodes must be even). If exactly two modes have odd order, the network is still traversable, but you start and end at different nodes (and the network is Semi-Eularian)

The Notes… 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. This is known as a route inspection problem and can be summarised as follows: ‘find a closed trail of minimum weight containing every arc’. If the graph in question is Eulerian then such a trail is easy to find. However, many graphs are not Eulerian and this is where the problem becomes more interesting. It is important to remember that if a graph is relatively small, trial and error may be able to be used. However, when a large graph is involved, an algorithm is needed and this is where the Chinese Postman algorithm is useful. Each arc in a network adds 1 to the orders of 2 nodes. Therefore, the total of the orders of all the nodes is twice the number of arcs. This means that in any network there is always an even number of odd nodes. (If there was an odd number of odd nodes, the total of the orders of all the nodes would be odd which is not possible) Such a network can be made traversable 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 Eulerian and traversable. The Chinese Postman algorithm considers all possible pairings of nodes of odd order and finds the connecting paths of minimum weight. The grouping with the minimum weight is then selected and these arcs are then duplicated. Finally, a trail is found containing every arc for the new Eulerian graph.

A EB C FD G Eulerian trail starting and ending at A not possible. Why not?

A EB C FD G Solution?

9 1 3 A EB C FD G Best Solution?

A EB C FD G

A EB C FD G Still not the best solution

A EB C FD G Best solution!

A EB C FD G Now find an Eulerian trail, starting and ending at A.

Chinese Postman Algorithm Step 1: Find all the nodes of odd order. Step 2: For each pair of odd nodes find the connecting path of minimum weight. Step 3: Pair up all the odd nodes so that the sum of the weights of the connecting paths from Step 2 is minimised. Step 4: In the original graph, duplicate the minimum weight paths found in Step 3. Step 5: Find a trail containing every arc for the new (Eulerian) Graph. Aim: To find the least-weight closed trail containing every arc

EXAMPLE: Calculate the Minimum Route, starting and ending at A