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.

Slides:



Advertisements
Similar presentations
Bellman-Ford algorithm
Advertisements

CSE 211 Discrete Mathematics
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Discrete Maths Chapter 5: Route Inspection Lesson 1: Chinese Postman.
Design and Analysis of Algorithms Single-source shortest paths, all-pairs shortest paths Haidong Xue Summer 2012, at GSU.
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
Approximation Algorithms for the Traveling Salesperson Problem.
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.
Chapter 4 Graphs.
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.
(a) (b) (c) (d). What is (1,2,3)  (3,4,2)? (a) (1, 2, 3, 4) (b) (1,2)  (3,4) (c) (1,3,4,2) (d) (3,1)  (4,2)
Graphs and Euler cycles Let Maths take you Further…
Eulerian Graphs CSE 331 Section 2 James Daly. Reminders Project 3 is out Covers graphs Due Friday.
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.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
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.
Graph Theory Chapter 7 Eulerian Graphs 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
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.
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.
Chapter 2: Graphs and Networks Lesson 2: Hello Mr Euler…
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
Shortest Path Algorithms. Definitions Variants  Single-source shortest-paths problem: Given a graph, finding a shortest path from a given source.
1 Approximation Algorithm Updated on 2012/12/25. 2 Approximation Algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
The Travelling Salesperson Problem A salesperson needs to visit London, Nottingham, Manchester and Leeds, he lives in Birmingham. Find the shortest route.
Mathematics in Management Science
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Eulerian Paths and Cycles. What is a Eulerian Path Given an graph. Find a path which uses every edge exactly once. This path is called an Eulerian Path.
By Meli & Amy & Meggie & Bex. What is route inspection hmmmm??? Objective: Is to go along every single edge and end up back to where you started from.
Introduction to Graph Theory
Prims Algorithm for finding a minimum spanning tree
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.
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
Nuffield Free-Standing Mathematics Activity
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Graph theory Definitions Trees, cycles, directed graphs.
Graph Algorithm.
Can you draw this picture without lifting up your pen/pencil?
Graph Theory.
Graph.
Lecture 16 Maximum Matching
THE CHINESE POSTMAN PROBLEM Liz Biz and Hells Bells.
Foundations of Discrete Mathematics
Maximum Flows of Minimum Cost
Nuffield Free-Standing Mathematics Activity
Lecture 19-Problem Solving 4 Incremental Method
Section 2: Multiple choice
Shortest Path Algorithms
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.
Hamiltonian Circuits and Paths Vocabulary
5.4 T-joins and Postman Problems
Relations and Functions
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,
3D Shape + Addition.
Graph Theory Relations, graphs
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Weighted Graphs AQR.
Graph Theory: Euler Graphs and Digraphs
Presentation transcript:

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 point. Starting and ending at different points.

Non-EulerianSemi-EulerianEulerian

Notes Eulerian Trails: – All vertices are even. – All edges used only once. – Starting and ending at the same place. Semi-Eulerian Trails: – 2 odd vertices. – All edges used only once. – Start and end at the odd vertices. Non-Eulerian Trails: – More than 2 odd vertices. – Some edges will need to be used twice.

All Even Vertices Example

2 Odd Vertices Example

Question 1

Question 2

Question 3

Question 4

4 Odd Vertices This is the most common type of exam question. You need to consider the weight all possible pairs of odd vertices. Choose the two pairs with the shortest total weight. You can then use this result to solve the problem.

4 Odd Vertices Example Possible PairsShortest PathsWeights and += += +=