The Route Inspection Problem. The Chinese Postman Problem

Similar documents
Chinese postman problem

The number of marks is given in brackets [ ] at the end of each question or part question. The total number of marks for this paper is 72.

Chapter 6: Graph Theory

Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, Chapter 7: Digraphs

MATHEMATICS Unit Decision 1

WAN Wide Area Networks. Packet Switch Operation. Packet Switches. COMP476 Networked Computer Systems. WANs are made of store and forward switches.

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

Social Media Mining. Graph Essentials

Cpt S 223. School of EECS, WSU

Decision Mathematics D1. Advanced/Advanced Subsidiary. Friday 12 January 2007 Morning Time: 1 hour 30 minutes. D1 answer book

Graph Theory Origin and Seven Bridges of Königsberg -Rhishikesh

Graph Theory Problems and Solutions

Euler, Mei-Ko Kwan, Königsberg, and a Chinese Postman

INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET)

MATHEMATICS Unit Decision 1

Graph Theory Techniques in Model-Based Testing

Decision Mathematics D1 Advanced/Advanced Subsidiary. Tuesday 5 June 2007 Afternoon Time: 1 hour 30 minutes

Euler Paths and Euler Circuits

V. Adamchik 1. Graph Theory. Victor Adamchik. Fall of 2005

Data Structures and Algorithms Written Examination

The Goldberg Rao Algorithm for the Maximum Flow Problem

Class One: Degree Sequences

Decision Mathematics 1 TUESDAY 22 JANUARY 2008

Midterm Practice Problems

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis

Analysis of Algorithms, I

Problem Set 7 Solutions

Data Structures. Chapter 8

Search Heuristics for Load Balancing in IP-networks

Topological Properties

Networks and Paths. The study of networks in mathematics began in the middle 1700 s with a famous puzzle called the Seven Bridges of Konigsburg.

SEMITOTAL AND TOTAL BLOCK-CUTVERTEX GRAPH

in R Binbin Lu, Martin Charlton National Centre for Geocomputation National University of Ireland Maynooth The R User Conference 2011

Graph theory and network analysis. Devika Subramanian Comp 140 Fall 2008

TIBCO Spotfire Network Analytics 1.1. User s Manual

3 Some Integer Functions

3. Eulerian and Hamiltonian Graphs

Random Map Generator v1.0 User s Guide

Cloud Enabled Emergency Navigation Using Faster-than-real-time Simulation

An Introduction to The A* Algorithm

Lecture 17 : Equivalence and Order Relations DRAFT

Reductions & NP-completeness as part of Foundations of Computer Science undergraduate course

Introduction to Graph Theory

Discrete Mathematics & Mathematical Reasoning Chapter 10: Graphs

RIP: Routing Information Protocol

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis. Contents. Introduction. Maarten van Steen. Version: April 28, 2014

Simple Graphs Degrees, Isomorphism, Paths

Vectors. Objectives. Assessment. Assessment. Equations. Physics terms 5/15/14. State the definition and give examples of vector and scalar variables.

Seminar. Path planning using Voronoi diagrams and B-Splines. Stefano Martina

Design and Analysis of ACO algorithms for edge matching problems

SOME APPLICATIONS OF EULERIAN GRAPHS

Extremal Wiener Index of Trees with All Degrees Odd

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction

LINEAR EQUATIONS IN TWO VARIABLES

IE 680 Special Topics in Production Systems: Networks, Routing and Logistics*

Minimum cost maximum flow, Minimum cost circulation, Cost/Capacity scaling

Math 115 Spring 2011 Written Homework 5 Solutions

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Max Flow, Min Cut, and Matchings (Solution)

FACTORS, PRIME NUMBERS, H.C.F. AND L.C.M.

RIP: Routing Information Protocol

Mining Social Network Graphs

Answers to Sample Questions on Network Layer

Lecture 2.1 : The Distributed Bellman-Ford Algorithm. Lecture 2.2 : The Destination Sequenced Distance Vector (DSDV) protocol

An Introduction to APGL

A Review And Evaluations Of Shortest Path Algorithms

Routing in packet-switching networks

Graph Theory and Complex Networks: An Introduction. Chapter 08: Computer networks

MATHEMATICS Unit Decision 1

Asking Hard Graph Questions. Paul Burkhardt. February 3, 2014

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form

Multi-Robot Traffic Planning Using ACO

Approximation Algorithms

COWLEY COUNTY COMMUNITY COLLEGE REVIEW GUIDE Compass Algebra Level 2

CRITICAL PATH ANALYSIS AND GANTT CHARTS

Network (Tree) Topology Inference Based on Prüfer Sequence

2.8 An application of Dynamic Programming to machine renewal

The positive minimum degree game on sparse graphs

Social Media Mining. Network Measures

Complexity Theory. IE 661: Scheduling Theory Fall 2003 Satyaki Ghosh Dastidar

The Clar Structure of Fullerenes

Chapter 11 Number Theory

1 Solution of Homework

2. Length and distance in hyperbolic geometry

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) Total 92.

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

Evaluation of Test Cases Using ACO and TSP Gulwatanpreet Singh, Sarabjit Kaur, Geetika Mannan CTITR&PTU India

Data Structure [Question Bank]

Optimized e-transportation System customized to user need

Introduction to Metropolitan Area Networks and Wide Area Networks

EdExcel Decision Mathematics 1

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

Experiment NO.3 Series and parallel connection

Hidden Treasure: A Coordinate Game. Assessment Management. Matching Number Stories to Graphs

CAB TRAVEL TIME PREDICTI - BASED ON HISTORICAL TRIP OBSERVATION

Transcription:

0.1 The Route Inspection Problem also known as The Chinese Postman Problem (use PgDn or Enter to move forward)

0.2 Node type An n-node is a node where n arcs join

0.2 Node type An n-node is a node where n arcs join and is said to be a node of order n.

0.2 Node type An n-node is a node where n arcs join and is said to be a node of order n. 1-nodes, 3-nodes, (and so on) are called odd nodes or nodes of odd order.

0.2 Node type An n-node is a node where n arcs join and is said to be a node of order n. 1-nodes, 3-nodes, (and so on) are called odd nodes or nodes of odd order. 2-nodes, 4-nodes, (and so on) are called even nodes or nodes of even order.

0.3 Numbers of nodes In any network there is always an even number of odd nodes.

0.3 Numbers of nodes In any network there is always an even number of odd nodes. Add together the node type numbers of all the nodes in a network.

0.3 Numbers of nodes In any network there is always an even number of odd nodes. Add together the node type numbers of all the nodes in a network. The sum will be twice the number of arcs because each arc is counted twice, once from each end.

0.3 Numbers of nodes In any network there is always an even number of odd nodes. Add together the node type numbers of all the nodes in a network. The sum will be twice the number of arcs because each arc is counted twice, once from each end.thus the sum of node type numbers is even for any network.

0.4 An odd number of odd nodes cannot exist because a sum containing an odd number of odd numbers would be odd. Thus any network must have an even number of odd nodes (if it has any odd nodes).

0.5 Traversability A network is said to be traversable (or Eulerian) if you can draw it without removing your pen from the paper and without retracing the same arc twice.

0.5 Traversability A network is said to be traversable (or Eulerian) if you can draw it without removing your pen from the paper and without retracing the same arc twice. For a network to be traversable it must have 0 or 2 odd nodes

0.5 Traversability A network is said to be traversable (or Eulerian) if you can draw it without removing your pen from the paper and without retracing the same arc twice. For a network to be traversable it must have 0 or 2 odd nodes and if we are able to start and finish at the same node it must have no odd nodes.

0.6 Chinese Postman Problem The Chinese postman problem concerns a postman who has to deliver mail to houses along each of the streets in a particular housing estate,

0.6 Chinese Postman Problem The Chinese postman problem concerns a postman who has to deliver mail to houses along each of the streets in a particular housing estate, and wants to minimse the distance he has to walk.

0.6 Chinese Postman Problem The Chinese postman problem concerns a postman who has to deliver mail to houses along each of the streets in a particular housing estate, and wants to minimse the distance he has to walk. The problem was first considered by the chinese mathematician Mei-ko Kwan in the 1960s, hence its name.

0.7 How does this problem differ from the problem of the travelling salesman?

0.7 How does this problem differ from the problem of the travelling salesman? The travelling salesman needs to visit every node (or vertex) whereas the Postman needs to travel along each arc (or edge).

0.7 How does this problem differ from the problem of the travelling salesman? The travelling salesman needs to visit every node (or vertex) whereas the Postman needs to travel along each arc (or edge). Therefore it is required that the network is traversable (Eulerian).

0.8 The problem is therefore to obtain a closed trail of minimum weight containing every arc.

0.8 The problem is therefore to obtain a closed trail of minimum weight containing every arc. Or put another way, find a route of minimum weight which traverses every edge at least once, returning to the start vertex.

0.8 The problem is therefore to obtain a closed trail of minimum weight containing every arc. Or put another way, find a route of minimum weight which traverses every edge at least once, returning to the start vertex. We first deal with traversability (the closed trail), then consider the mimimum weight condition (shortest distance).

Recall the result about traversability 0.9

0.9 Recall the result about traversability For a network to be traversable it must have 0 or 2 odd nodes

0.9 Recall the result about traversability For a network to be traversable it must have 0 or 2 odd nodes and if we are able to start and finish at the same node it must have no odd nodes.

0.9 Recall the result about traversability For a network to be traversable it must have 0 or 2 odd nodes and if we are able to start and finish at the same node it must have no odd nodes. And consider its implications for the postman problem.

0.10 If there are no odd nodes in the network, the network is certainly traversable.

0.10 If there are no odd nodes in the network, the network is certainly traversable. The minimum distance is the sum of the arc distances and any Eulerian trail is an acceptable shortest route, so the problem is trivial.

0.11 We now consider the general situation where there are an even number of odd nodes.

0.11 We now consider the general situation where there are an even number of odd nodes. In such a case the network can be made traversable by linking together pairs of odd nodes with additional arcs.

0.11 We now consider the general situation where there are an even number of odd nodes. In such a case the 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 hence the network becomes traversable.

0.11 We now consider the general situation where there are an even number of odd nodes. In such a case the 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 hence the network becomes traversable. Note that this is always possible because the number of odd nodes is always even.

0.12 Example Z 5 B 8 C 4 A 10 4 10 11 D 8 11 4 8 6 G E 12 F

0.12 Example Z 5 B 8 C 4 A 10 4 10 11 D 8 11 4 8 6 G E 12 F

0.12 Example Z 5 B 8 C 4 A 10 4 10 11 D 8 11 4 8 6 G E 12 F

0.13 The length of the shortest possible route is the sum of all the arc lengths

0.13 The length of the shortest possible route is the sum of all the arc lengths plus the lengths of the additional arcs (ZB, AE, DF ).

0.13 The length of the shortest possible route is the sum of all the arc lengths plus the lengths of the additional arcs (ZB, AE, DF ). Shortest route = 101 + 5 + 4 + 4 = 114

0.13 The length of the shortest possible route is the sum of all the arc lengths plus the lengths of the additional arcs (ZB, AE, DF ). Shortest route = 101 + 5 + 4 + 4 = 114 There are many possible routes around the network.

0.13 The length of the shortest possible route is the sum of all the arc lengths plus the lengths of the additional arcs (ZB, AE, DF ). Shortest route = 101 + 5 + 4 + 4 = 114 There are many possible routes around the network. Since all nodes are of even order the postman can start at any node and he finishes there.

0.14 The additional arcs to join pairs of odd nodes were chosen to minimise the additional distance required to make the network traversable.

0.14 The additional arcs to join pairs of odd nodes were chosen to minimise the additional distance required to make the network traversable. In the example this was done by inspection

0.14 The additional arcs to join pairs of odd nodes were chosen to minimise the additional distance required to make the network traversable. In the example this was done by inspection but in more complex examples an algorithm is required.

0.14 The additional arcs to join pairs of odd nodes were chosen to minimise the additional distance required to make the network traversable. In the example this was done by inspection but in more complex examples an algorithm is required. What algorithm can be used to find a shortest path?

0.14 The additional arcs to join pairs of odd nodes were chosen to minimise the additional distance required to make the network traversable. In the example this was done by inspection but in more complex examples an algorithm is required. What algorithm can be used to find a shortest path? Dijkstra s algorithm.

0.15 It should also be noted that it is not sufficient to only consider one set of pairings of odd nodes,

0.15 It should also be noted that it is not sufficient to only consider one set of pairings of odd nodes, all such parings must be considered.

0.15 It should also be noted that it is not sufficient to only consider one set of pairings of odd nodes, all such parings must be considered. So we have the Chinese Postman Algorithm...

Find all nodes of odd order 0.16

0.16 Find all nodes of odd order For every pair of odd nodes find the connecting path of minimum weight

0.16 Find all nodes of odd order For every pair of odd nodes find the connecting path of minimum weight Pair up all the odd nodes so that the sum of weights of connecting paths is minimised

0.16 Find all nodes of odd order For every pair of odd nodes find the connecting path of minimum weight Pair up all the odd nodes so that the sum of weights of connecting paths is minimised Duplicate the minimum weight paths

0.16 Find all nodes of odd order For every pair of odd nodes find the connecting path of minimum weight Pair up all the odd nodes so that the sum of weights of connecting paths is minimised Duplicate the minimum weight paths Find a trail containing every arc for the new (Eulerian) graph.

0.17 Work through example 5.2.1 (page 59) and example 5.2.2 of OCR D1

0.17 Work through example 5.2.1 (page 59) and example 5.2.2 of OCR D1 Practise exercise 5 (page 61) - Yr 12.

0.17 Work through example 5.2.1 (page 59) and example 5.2.2 of OCR D1 Practise exercise 5 (page 61) - Yr 12. Practise exercise 3C (page 93) - Yr 13.

0.18 Go to.. mymathsteacher.com for more maths help. http://www.mymathsteacher.com Presentation produced using LAT E X and the Utopia Presentation Bundle A. G. Martin. December 31, 2001 Click here to go back. Click here to close, or here to exit.