5.4 T-joins and Postman Problems

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Chapter 8 Topics in Graph Theory
1 Matching Polytope x1 x2 x3 Lecture 12: Feb 22 x1 x2 x3.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Graph-02.
 期中测验时间:本周五上午 9 : 40  教师 TA 答疑时间 : 周三晚上 6 : 00—8 : 30  地点:软件楼 315 房间,  教师 TA :李弋老师  开卷考试.
Combinatorial Algorithms
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
k-Factor Factor: a spanning subgraph of graph G
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Matchings Matching: A matching in a graph G is a set of non-loop edges with no shared endpoints Maximal Matching: A maximal matching in a graph is a matching.
Graph Theory TreesAlgorithms. Graphs: Basic Definitions 4 n Let n be the number of nodes (stations) and e be the number of edges (links). n A graph is.
Lecture 11. Matching A set of edges which do not share a vertex is a matching. Application: Wireless Networks may consist of nodes with single radios,
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Minimum Spanning Trees. Subgraph A graph G is a subgraph of graph H if –The vertices of G are a subset of the vertices of H, and –The edges of G are a.
GRAPH Learning Outcomes Students should be able to:
Management Science 461 Lecture 9 – Arc Routing November 18, 2008.
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
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.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Introduction to Graph Theory
The countable character of uncountable graphs François Laviolette Barbados 2003.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
EMIS 8373: Integer Programming Combinatorial Relaxations and Duals Updated 8 February 2005.
Lecture 10: Graph-Path-Circuit
Chapter 9 Finding the Optimum 9.1 Finding the Best Tree.
Chapter 8 Maximum Flows: Additional Topics All-Pairs Minimum Value Cut Problem  Given an undirected network G, find minimum value cut for all.
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Trees Thm 2.1. (Cayley 1889) There are nn-2 different labeled trees
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
Introduction to Graph Theory
12. Lecture WS 2012/13Bioinformatics III1 V12 Menger’s theorem Borrowing terminology from operations research consider certain primal-dual pairs of optimization.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
1. 期中测验时间和地点: 11 月 4 日, 上午 9:40—11 : 40 地点: 教室 2. 答疑时间和地点: 1)11 月 1 日 ( 周五 )13:00—15:00 软件楼 319 2)11 月 2 日和 3 日, 14:00—17:00 软件楼 3 楼 机房讨论室.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Trees.
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Euler and Hamiltonian Graphs
The countable character of uncountable graphs François Laviolette Barbados 2003.
Richard Anderson Lecture 26 NP-Completeness
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Algorithms and Networks
Advanced Algorithms Analysis and Design
Chapter 5. Optimal Matchings
1.3 Modeling with exponentially many constr.
CSE 421: Introduction to Algorithms
3.3 Applications of Maximum Flow and Minimum Cut
Connected Components Minimum Spanning Tree
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Lecture 16 Maximum Matching
Autumn 2015 Lecture 11 Minimum Spanning Trees (Part II)
3.5 Minimum Cuts in Undirected Graphs
Lecture 19-Problem Solving 4 Incremental Method
Discrete Math II Howon Kim
2.2 Shortest Paths Def: directed graph or digraph
1.3 Modeling with exponentially many constr.
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.
Flow Feasibility Problems
Euler and Hamilton Paths
V12 Menger’s theorem Borrowing terminology from operations research
Euler and Hamiltonian Graphs
Existence of 3-factors in Star-free Graphs with High Connectivity
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: Euler Graphs and Digraphs
Based on slides by Y. Peng University of Maryland
Presentation transcript:

5.4 T-joins and Postman Problems Assume 𝑐≥0 and 𝐺 is connected. Thm 5.23: A connected graph 𝐺 has an Euler tour if and only if every node of 𝐺 has even degree. Let 𝑥𝑒 be the number of extra traversals of edge 𝑒 in a postman tour. Construct the graph 𝐺𝑥 by making 1+𝑥𝑒 copies of 𝑒 for each 𝑒. 1 1 1 1 𝐺, x, and 𝐺𝑥 Combinatorial Optimization 2016

Postman Problem is equivalent to the problem: Minimize (𝑐𝑒𝑥𝑒:𝑒∈𝐸) (5.30) subject to 𝑥(𝛿(𝑣))≡|𝛿(𝑣)| (mod 2), for all 𝑣∈𝑉 𝑥𝑒≥0, for all 𝑒∈𝐸. 𝑥𝑒 integer, for all 𝑒∈𝐸. There is an optimal solution for which 𝑥 is {0, 1}-valued. (since 𝑐≥0) We call a set 𝐽⊆𝐸 a postman set of 𝐺 if, for every 𝑣∈𝑉, 𝑣 is incident with an odd number of edges from 𝐽 iff 𝑣 has odd degree in 𝐺. Postman Problem Given: A graph 𝐺=(𝑉, 𝐸) and 𝑐∈𝑅𝐸 such that 𝑐≥0. Objective: To find a postman set 𝐽 such that 𝑐(𝐽) is minimum. Combinatorial Optimization 2016

Optimal T-Join Problem (T-Joins) Let 𝐺=(𝑉, 𝐸) be a graph, and let 𝑇⊆𝑉 such that |𝑇| is even. A T-join of 𝐺 is a set 𝐽 of edges such that |𝐽∩𝛿(𝑣)|≡|𝑇∩{𝑣}| (mod 2), for all 𝑣∈𝑉 𝐽 is a 𝑇-join iff the odd-degree nodes of the subgraph (𝑉, 𝐽) are exactly the elements of 𝑇. Optimal T-Join Problem Given: A graph 𝐺=(𝑉, 𝐸), a set 𝑇⊆𝑉 such that |𝑇| is even, and a cost vector 𝑐∈𝑅𝐸. Objective: Find a 𝑇-join 𝐽 of 𝐺 such that 𝑐(𝐽) is minimum. Combinatorial Optimization 2016

Postman sets: Let 𝑇={𝑣∈𝑉: |𝛿(𝑣)| is odd} ( need 𝑐≥0) Even set: Examples: Postman sets: Let 𝑇={𝑣∈𝑉: |𝛿(𝑣)| is odd} ( need 𝑐≥0) Even set: Even set is a set 𝐴⊆𝐸 such that every node of (𝑉, 𝐴) has even degree. Let 𝑇=∅. If costs are nonnegative, ∅ is optimal. A set is even iff it can be decomposed into edge-sets of edge-disjoint circuits. Hence ∅ is optimal iff 𝐺 has no negative-cost circuit. (can find a negative-cost circuit or determine that none exists.) (𝑟, 𝑠)-paths: Let 𝑟, 𝑠∈𝑉, and 𝑇={𝑟, 𝑠}. Every 𝑇-join 𝐽 contains the edge-set of an (𝑟, 𝑠)-path (otherwise, the component of the subgraph (𝑉, 𝐽) containing 𝑟 has only one node of odd degree, which is impossible.). So minimal 𝑇-joins are edge-sets of simple (𝑟, 𝑠)-paths. Combinatorial Optimization 2016

(Pf) ( ⇒) Suppose 𝐽 is a 𝑇-join and 𝐽′ is a 𝑇′-join. Let 𝑣∈𝑉. Deleting a simple (𝑟, 𝑠)-path from a (not minimal) 𝑇-join 𝐽, we obtain even sets. Hence if the graph contains no negative-cost circuit, optimal 𝑇-join (and minimal) is minimum cost simple (𝑟, 𝑠)-path. (can solve the shortest simple (𝑟, 𝑠)-path problem for undirected graphs when negative edge costs are allowed, but negative cost circuits are not.) Prop 5.24: Let 𝐽′ be a 𝑇′-join of 𝐺. Then 𝐽 is a 𝑇-join of 𝐺 if and only if 𝐽△𝐽′ is a (𝑇△𝑇′)-join of 𝐺. (Pf) ( ⇒) Suppose 𝐽 is a 𝑇-join and 𝐽′ is a 𝑇′-join. Let 𝑣∈𝑉. Then |(𝐽△𝐽′)∩𝛿(𝑣)| is even ⇔ |𝐽∩𝛿(𝑣)|≡| 𝐽′∩𝛿(𝑣)| (mod 2) ⇔ 𝑣 is an element of neither or both of 𝑇 and 𝑇′. ⇔ 𝑣∉𝑇△𝑇′. (⇐) apply "only if" part with 𝐽 replaced by 𝐽△𝐽′ and 𝑇 replaced by 𝑇△𝑇′.  Combinatorial Optimization 2016

Solving the Optimal T-Join Problem First, obtain an algorithm for the case 𝑐≥0. Then transform a problem with negative costs into one with nonnegative costs. When 𝑐≥0, there is always an optimal 𝑇-join that is minimal. The minimal 𝑇-join can be characterized, as follows. Prop 5.25: Every minimal 𝑇-join is the union of the edge-sets of |𝑇|/2 edge-disjoint simple paths, which join the nodes in 𝑇 in pairs. (Pf) {∪{ 𝑃 𝑖 }} is a 𝑇-join. Now, enough to show that any 𝑇-join contains such a set of edge-disjoint paths. Let 𝑢∈𝑇, and let 𝐻 be the component of (𝑉, 𝐽) that contains 𝑢. Then there is a node 𝑣≠𝑢 in 𝑇∩𝐻. (otherwise 𝑢 is the only node in 𝐻 of odd degree) So there is a simple (𝑢, 𝑣) path 𝑃 such that 𝐸(𝑃)⊆𝐽. Now 𝐽\E(𝑃) is a 𝑇′-join, where 𝑇′=𝑇∖{𝑢, 𝑣} by Proposition 5.24. Repeat the argument.  Combinatorial Optimization 2016

𝑐(𝐽\E(𝑃))+𝑐(𝐸(𝑃′)−2𝑐( (𝐽\E(𝑃))∩𝐸(𝑃′) ) ≤𝑐(𝐽)−𝑐(𝐸(𝑃))+𝑐(𝐸(𝑃′))<𝑐(𝐽), Suppose (𝑐≥0 and) an optimal 𝑇-join is expressed as union of edge-sets of paths as in Proposition 5.25, and 𝑃 is one of these paths, with 𝑃 joining 𝑢, 𝑣∈𝑇. Then 𝑃 is a minimum cost (𝑢, 𝑣)-path. Suppose there is a (𝑢, 𝑣)-path 𝑃′ in 𝐺 that has smaller cost than 𝑃. By Proposition 5.24, 𝐽△𝐸(𝑃)△𝐸(𝑃′) is a 𝑇-join. Since 𝐸(𝑃)⊆𝐽, its cost is 𝑐(𝐽\E(𝑃))+𝑐(𝐸(𝑃′)−2𝑐( (𝐽\E(𝑃))∩𝐸(𝑃′) ) ≤𝑐(𝐽)−𝑐(𝐸(𝑃))+𝑐(𝐸(𝑃′))<𝑐(𝐽), a contradiction. Hence Prop 5.26: Suppose that 𝑐≥0. Then there is an optimal 𝑇-join that is the union of |𝑇|/2 edge-disjoint shortest paths joining the nodes of 𝑇 in pairs. Combinatorial Optimization 2016

s.t. 𝑢1𝑣1, …, 𝑢𝑘𝑣𝑘 is a pairing of the elements of 𝑇. For any pair 𝑢, 𝑣 of nodes in 𝑇, let 𝑑(𝑢, 𝑣) be the cost of a least cost (𝑢, 𝑣)-path in 𝐺. Let |𝑇|=2𝑘. The minimum cost 𝑇-join is (assuming 𝑐≥0) minimize 𝑑 𝑢 𝑖 , 𝑣 𝑖 :𝑖=1,…,𝑘 s.t. 𝑢1𝑣1, …, 𝑢𝑘𝑣𝑘 is a pairing of the elements of 𝑇. Form a complete graph 𝐺 = 𝑇, 𝐸 , give edge 𝑢𝑣 weight 𝑑(𝑢, 𝑣), and find a minimum-weight perfect matching of 𝐺 . Join the selected pairs in 𝐺 using shortest paths. If some edges overlap (since 𝑐𝑒=0 allowed), take symmetric difference. 𝑞 8 2 𝑝 𝑟 𝑣 𝑏 1 1 1 4 4 3 2 2 𝑎 4 𝑢 𝑠 1 3 9 𝑡 Combinatorial Optimization 2016

𝑞 𝑞 8 2 5 2 6 5 7 𝑝 𝑟 𝑝 3 𝑟 𝑣 1 𝑏 6 1 1 4 4 5 4 3 4 3 3 2 2 𝑎 4 𝑢 𝑠 𝑢 𝑠 7 1 3 9 3 𝑞 𝑡 𝑡 8 2 𝑝 𝑟 𝑣 𝑏 1 1 1 4 3 4 2 2 𝑎 4 𝑢 𝑠 Optimal 𝑇-join 1 3 9 𝑡 Combinatorial Optimization 2016

Negative Costs Given 𝑐∈𝑅𝐸, let 𝑁={𝑒∈𝐸: 𝑐𝑒<0}. Let 𝑇′ be the set of nodes of 𝐺 that have odd degree in the subgraph (𝑉, 𝑁). Then 𝑁 is a 𝑇′-join. By proposition 5.24, 𝐽 is a 𝑇-join ⇔ 𝐽△𝑁 is a (𝑇△𝑇′)-join. 𝑐(𝐽)=𝑐(𝐽\N)+𝑐(𝐽∩𝑁) =𝑐(𝐽\N)−𝑐(𝑁∖J)+𝑐(𝑁\J)+𝑐(𝐽⋂𝑁) =|𝑐|(𝐽△𝑁)+𝑐(𝑁). ( |𝑐| is the vector defined by |𝑐|𝑒=|𝑐𝑒|.) 𝑐(𝑁) is a constant that does not depend on 𝐽. Hence 𝐽 is an optimal 𝑇-join w.r.t. cost vector 𝑐 ⇔ 𝐽△𝑁 is an optimal (𝑇△𝑇′)-join w.r.t. cost vector |𝑐|. Combinatorial Optimization 2016

Optimal T-Join Algorithm Step 1. Identify the set 𝑁 of edges having negative cost, and the set 𝑇′ of nodes incident with an odd number of edges from 𝑁. Replace 𝑐 by |𝑐| and 𝑇 by 𝑇△𝑇′. Step 2. Find a least-cost (𝑢, 𝑣)-path 𝑃𝑢𝑣 w.r.t. cost vector 𝑐 for each pair 𝑢, 𝑣 of nodes from 𝑇. Let 𝑑(𝑢, 𝑣) be the cost of 𝑃𝑢𝑣. Step 3. Form a complete graph 𝐺 = 𝑇, 𝐸 with 𝑢𝑣 having weight 𝑑(𝑢, 𝑣) for each 𝑢𝑣∈ 𝐸 . Find a minimum-weight perfect matching 𝑀 in 𝐺 . Step 4. Let 𝐽 be the symmetric difference of the edge-sets of paths 𝑃𝑢𝑣 for 𝑢𝑣∈𝑀. Step 5. Replace 𝐽 by 𝐽△𝑁. Combinatorial Optimization 2016

|𝑐|-optimal (𝑇△𝑇′)-join 𝑎 2 𝑏 𝑎 2 𝑏 -2 2 2 2 5 5 -3 3 𝑟 𝑐 𝑠 𝑟 𝑐 𝑠 1 6 1 6 1 2 1 2 2 2 𝑑 𝑒 𝑒 𝑑 𝐺, 𝑇, 𝑐 𝐺, 𝑇△𝑇′, |𝑐| 𝑎 𝑏 𝑎 𝑏 𝑟 𝑐 𝑠 𝑟 𝑐 𝑠 𝑑 𝑒 𝑑 𝑒 |𝑐|-optimal (𝑇△𝑇′)-join 𝑐-optimal 𝑇-join Combinatorial Optimization 2016