Chinese postman problem

Slides:



Advertisements
Similar presentations
The Chinese Postman Problem Route Planning Map Colouring
Advertisements

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.
Euler Circuits and Paths
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.
Eulerizing Graph Ch 5.
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.
MTH118 Sanchita Mal-Sarkar. Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible.
Graphs and Euler cycles Let Maths take you Further…
The Bridge Obsession Problem By Vamshi Krishna Vedam.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Management Science 461 Lecture 9 – Arc Routing November 18, 2008.
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
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.
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.
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.
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.
Chapter 2: Graphs and Networks Lesson 2: Hello Mr Euler…
Chapter 1: Urban Services Lesson Plan
Mathematics in Management Science
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
EULER PATHS & CHINESE POSTMAN SOL: DM.2 CLASSWORK WORKSHEET HOMEWORK (DAY 59) WORKSHEET.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
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,
Unit 3 Chinese Postman. Non - Eulerian Semi - Eulerian Eulerian.
Chinese Postman Problem
Shana Norman Dec 11, 2003 Final Project
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Çizge Algoritmaları.
Discrete Maths 9. Graphs Objective
Graph Algorithm.
Can you draw this picture without lifting up your pen/pencil?
Network Notes Ms Allan 2012 AS91260 (2.5) Designed to teach from,
Euler Circuits and Paths
Graph Theory.
Graph.
THE CHINESE POSTMAN PROBLEM Liz Biz and Hells Bells.
Foundations of Discrete Mathematics
Nuffield Free-Standing Mathematics Activity
Introduction to Vertex-Edge graphs (2 days)
Chapter 1: Urban Services Lesson Plan
Excursions in Modern Mathematics Sixth Edition
Konigsberg- in days past.
AB AC AD AE AF 5 ways If you used AB, then, there would be 4 remaining ODD vertices (C, D, E and F) CD CE CF 3 ways If you used CD, then, there.
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
Chapter 1: Urban Services Management Science
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,
Graph Theory Relations, graphs
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Weighted Graphs AQR.
Warm Up – 3/17 - Monday A) List the set of vertices.
Graph Theory: Euler Graphs and Digraphs
Chapter 1: Urban Services Lesson Plan
Presentation transcript:

Chinese postman problem BY LAKSHMA REDDY KUSAM

Outline : Real world problem Graph construction Graph problem Graph traversability Solution

Real world problem The Chinese postman problem is a general real world problem for the postman’s delivering the letter’s as they jobs major role. The Chinese Postman algorithm was invented in 1962 and takes its name from the Chinese mathematician Kuan Mei-Ko . In this postman have to travel along all the streets in a town or city without missing even a single street. Now, the problem is that to find the minimum route possible and walking in a street only once. There is no graph problem if there are even vertices in the map network. The problem rasies when there are odd edges

Graph construction 5 6 6 9 B E 4 2 2 6 C 4 F 4 G 4 2 2 A D H I 8 14 7

Graph construction (cont.. B 6 E 10 2 2 13 6 F G C 4 10 2 2 A 8 D 14 H I 7

Graph 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. A graph is said to be closed if it is started and end at the same end. Are these Graphs Traversable and closed? Traversable? Yes Yes Yes Closed ? No Yes Yes

Euler’s path Euler found that the order of the vertices determines whether or not a graph is traversable. If it is possible to traverse a graph starting and finishing at the same point then the graph has an Eulerian trail. If it is possible to traverse a graph starting at one point and finishing at a different point then the graph has a semi-Eulerian trail.

Cont.. order 1 order 3 order 2 order 4 order 5 order 6 Even vertices Odd vertices order 3 order 1 order 2 order 4 order 5 order 6

In each case the graph is now closed. 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]

Algorithm for Chinese postman problem Step 1: Sum all the vertices of the arcs in the graph. Step 2: Write down the degree of all the vertices to identify the odd vertices among them. Step 3: Pair all the nodes among themselves to make them even degree in such a way that the weight among them is minimum(matching up minimum possible distance). Step 4: Identify the odd vertices to be paired Step 5: Duplicate the vertices that are obtained from step4 .weight of the duplicated arc is same as the original arc. Add the weight of the duplicated arc to the original weight. Step 6: Now find the euler’s path of the obtained network.

Solution E B 6 Odd vertices 10 2 2 13 6 F G C 4 10 2 2 A 8 D 14 H I 7

Solution (cont..) Step 1: Total distance of the graph =7+10+10+2+4+2+14+8+13+2+2+6+2+6=88 Step 2: Degree of all the vertices A:2 ,B:3,C:3,D:3,E:3,F:3,G:4,H:3,I:2. From this the odd edges are B,C,D,E,F,H. Step 3: Possible combinations are BC, EF, DH BE,CF,DH. Those are the possible combinations now we calculate the distance between them. BC+EF+DH = 2+2+14=18 BE+CF+DH=6+6+14=26

Step 4: Now, from the above distance calculation we can see that 18<26 So we choose an extra duplicate path’s between BC,EF,DH. Step 5: Duplicate the edges between the BC,EF,DH. Now the total weight of the graph will be 88+18=106.

Now, we find out the euler’s route in the graph.

HDHIGFECDABCBEGH Now we have the shortest path between those vertices and thus gives the solution to the Chinese postman problem with minimum distance of 106 for the above network. .

ANY QUEIRES?

Thank you