Project Report for CMSC 858F (Previous Work)

Similar documents
Movement Problems. CMSC 858F Network Design. December 2015

Minimizing Movement: Fixed-Parameter Tractability

O(1)-Approximations for Maximum Movement Problems

Minimizing Movement: Fixed-Parameter Tractability

A Minimizing Movement: Fixed-Parameter Tractability 1

Euclidean Movement Minimization

The k-center problem Approximation Algorithms 2009 Petros Potikas

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

On Exploring Temporal Graphs of Small Pathwidth

Constrained k-center and movement to independence

Hardness of Subgraph and Supergraph Problems in c-tournaments

On minimum m-connected k-dominating set problem in unit disc graphs

Lecture 4: September 11, 2003

Minimizing Movement. Erik D. Demaine MohammadTaghi Hajiaghayi Hamid Mahini Amin S. Sayedi-Roshkhar Shayan Oveisgharan Morteza Zadimoghaddam.

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Math 776 Graph Theory Lecture Note 1 Basic concepts

Lecture 8: The Traveling Salesman Problem

Important separators and parameterized algorithms

Treewidth and graph minors

Matchings in Graphs. Definition 1 Let G = (V, E) be a graph. M E is called as a matching of G if v V we have {e M : v is incident on e E} 1.

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

Parameterized coloring problems on chordal graphs

Algorithms for minimum m-connected k-tuple dominating set problem

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices

K 4 C 5. Figure 4.5: Some well known family of graphs

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

All-Pairs Nearly 2-Approximate Shortest-Paths in O(n 2 polylog n) Time

Algorithms for Minimum m-connected k-dominating Set Problem

11.4 Bipartite Multigraphs

A TIGHT BOUND ON THE LENGTH OF ODD CYCLES IN THE INCOMPATIBILITY GRAPH OF A NON-C1P MATRIX

1 Matchings in Graphs

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

Math 485, Graph Theory: Homework #3

Definition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.

1 The Traveling Salesperson Problem (TSP)

Geometric Red-Blue Set Cover for Unit Squares and Related Problems

CS261: A Second Course in Algorithms Lecture #16: The Traveling Salesman Problem

Minimizing the Diameter of a Network using Shortcut Edges

Theorem 2.9: nearest addition algorithm

CS 598CSC: Approximation Algorithms Lecture date: March 2, 2011 Instructor: Chandra Chekuri

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

Advanced Methods in Algorithms HW 5

CME 305: Discrete Mathematics and Algorithms Instructor: Reza Zadeh HW#3 Due at the beginning of class Thursday 02/26/15

Introduction to Approximation Algorithms

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

CME 305: Discrete Mathematics and Algorithms Instructor: Reza Zadeh HW#3 Due at the beginning of class Thursday 03/02/17

Solving NP-hard Problems on Special Instances

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

Paths, Flowers and Vertex Cover

1 Matching in Non-Bipartite Graphs

Ma/CS 6b Class 5: Graph Connectivity

Paths, Flowers and Vertex Cover

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

Solutions for the Exam 6 January 2014

Chordal Graphs: Theory and Algorithms

Popular matchings with two-sided preferences and one-sided ties

Augmenting Graphs to Minimize the Diameter

Online Stochastic Matching CMSC 858F: Algorithmic Game Theory Fall 2010

Multicasting in the Hypercube, Chord and Binomial Graphs

NP-Complete Reductions 2

Motion Planning in Certain Lexicographic Product Graphs

Characterizations of graph classes by forbidden configurations

Graphs and Algorithms 2015

Parameterized graph separation problems

Constant Price of Anarchy in Network Creation Games via Public Service Advertising

Approximation slides 1. An optimal polynomial algorithm for the Vertex Cover and matching in Bipartite graphs

Lecture 4: Primal Dual Matching Algorithm and Non-Bipartite Matching. 1 Primal/Dual Algorithm for weighted matchings in Bipartite Graphs

Faster parameterized algorithms for Minimum Fill-In

Lecture Overview. 2 Shortest s t path. 2.1 The LP. 2.2 The Algorithm. COMPSCI 530: Design and Analysis of Algorithms 11/14/2013

Connecting face hitting sets in planar graphs

Approximation of satisfactory bisection problems

Faster parameterized algorithms for Minimum Fill-In

arxiv: v1 [cs.ds] 8 Jan 2019

Important separators and parameterized algorithms

Matching Theory. Figure 1: Is this graph bipartite?

On local structures of cubicity 2 graphs

Greedy Approximations

Bipartite Roots of Graphs

Greedy Algorithms 1. For large values of d, brute force search is not feasible because there are 2 d

Finding a -regular Supergraph of Minimum Order

Chordal deletion is fixed-parameter tractable

Topic: Local Search: Max-Cut, Facility Location Date: 2/13/2007

Chapter 11: Graphs and Trees. March 23, 2008

Parameterized Algorithm for Eternal Vertex Cover

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

Approximation Algorithms

CHAPTER 5. b-colouring of Line Graph and Line Graph of Central Graph

Ma/CS 6b Class 2: Matchings

2 The Fractional Chromatic Gap

Localization in Graphs. Richardson, TX Azriel Rosenfeld. Center for Automation Research. College Park, MD

Abstract Path Planning for Multiple Robots: An Empirical Study

Complexity and approximation of satisfactory partition problems

CS 4407 Algorithms. Lecture 8: Circumventing Intractability, using Approximation and other Techniques

Lecture 10,11: General Matching Polytope, Maximum Flow. 1 Perfect Matching and Matching Polytope on General Graphs

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Kernelization for Maximum Leaf Spanning Tree with Positive Vertex Weights

Counting the Number of Eulerian Orientations

Geometric Unique Set Cover on Unit Disks and Unit Squares

14 More Graphs: Euler Tours and Hamilton Cycles

CPSC 536N: Randomized Algorithms Term 2. Lecture 10

Transcription:

Project Report for CMSC 858F (Previous Work) Rajesh Chitnis M. Reza Khani Vahid Liaghat December 7, 2011 Abstract In this report we give a brief view of some tractability and intractability results in the framework of movement problems. First we introduce the framework of Demaine et al. (SODA 07). We then see that how some polynomial time solvable problems become computationally hard if we introduce the concept of movement. There are two parameters : property desired in final configuration and efficiency criteria which we want to minimize. We give proofs the following results : 1. ConMax is NP-complete (even to approximate better than 2) 2. PathMax and PathSum are NP-hard 3. FacilityLocationMax has a 2-approximation algorithm. 4. FacilityLocationMax has no (2 ε)-approximation algorithm unless P=NP. 5. There is no constant c > 0 such that FacilityLocationMax has an additive c-approximation algorithm unless P=NP. Department of Computer Science, University of Maryland at College Park, USA. Email: {rchitnis, khani, vliaghat}@cs.umd.edu

1 Introduction In many real-life scenarios we must plan the coordinated motion of mobile agents in order to carry out certain tasks. Examples are SWAT teams responding to emergency situations, firefighters responding to fires, organizing behaviour of swarms of robots [6], etc. In practice the number of agents is small and the terrain they must cover is very large. We desire the most efficient way for the agents to achieve the final desired configuration(s). Efficiency can be measured by various parameters like time taken, energy spent, etc. Also we can consider various properties for the choice of desired final configuration(s). Henceforth we will denote agents by pebbles. Let us formalize the model now. In general, a movement minimization problem is defined by a set of final configuration(s) that we desire be formed by the pebbles and a movement objective function. The following examples are mentioned in Demaine et al. [2] who also gave some FPT results for various problems parameterized by the number of pebbles: The pebbles must move to form a connected subgraph so that the network is fault-tolerant. The pebbles must move to form an independent set. This has applications in map-labeling [3, 4]. The pebbles must arrange themselves in a certain topological formation such as a grid which has a robust structure. The pebbles must augment an existing immobile structure to achieve a certain desired property [1]. 2 Framework of Demaine et al. (SODA 07) Demaine et al. [3] gave the first systematic study of problems in the framework of movement. They considered the following efficiency criteria: 1. Max: minimize the maximum movement of any pebble. 2. Sum: minimize the total movement of all pebbles. 3. Num: minimize the number of pebbles that move. They considered the following properties desired in final configuration: 1. Con: the subgraph induced by the pebbles is connected. 2. DirCon: there is a directed path of pebbles from each vertex to some fixed root. 3. Path: there is a s t path of pebbles for some fixed vertices s and t. 4. Ind: the subgraph induced by the pebbles has no edges. 5. Match: the subgraph induced by the pebbles has a perfect matching. Subsequent Work: Berman, Demaine and Zadimoghaddam [APPROX 11] gave constant-factor approximation algorithms for ConMax and PathMax (and some other new problems). 3 NP-hardness of ConMax In this section we show the NP-hardness of minimizing the maximum movement version of the problem when we want the pebbles to induce a connected subgraph. We formally define the problems below. CONMAX Input : An undirected graph G, pebbles and their initial location on vertices of G. Output : A final configuration of pebbles minimizing the maximum movement of any pebbles such that the subgraph induced by the pebbles is connected. We reduce from Hamiltonian Path. Consider an instance G = (V,E) of Hamiltonian Path where V = {v 1,v 2,...,v n } and E = {e 1,e 2...,e m }. We build an instance G = (V,E ) of ConMax as shown in Figure: 1

Figure 1: Results of Demaine et al. (SODA 07) 1. Split each edge into a path of length 1. If u v is an edge we add two vertices u v and uv in between with u v closer to u than v. 2. Attach a leaf β i to v i for each i [n] 3. For each i [n] place two pebbles at v i and one pebble at β i Theorem 3.1. ConMax is NP-complete (even to approximate better than factor 2). Proof. Refer to Figure 2. We claim that G has a Hamiltonian path if and only if ConMax has a solution of cost at most 1. This claim proves our theorem since any solution for ConMax is integral and hence a (2 ε) approximation for a solution of cost 1 would tell us that it is in fact 1 and we will be able to solve the Hamiltonian Path problem in polynomial time. Suppose G has a Hamiltonian path say v i1 v i2... v in. For each j [n] shift the pebble from β j to v j. For each k [n 1] shift 1 pebble from v ik to v i k v ik+1 and 1 pebble from v ik+1 to v ik v i k+1. This clearly gives a solution of ConMax of cost 1. Suppose ConMax has a solution of cost n. WLOG we can assume that each β i shifts its pebble to v i since each pebble can move at most 1 and this move only helps in the connectivity of induced subgraph. Note that each v i has 3 pebbles now out of which 1 cannot be moved any more. Therefore all vertices of V must be connected in the subgraph induced by the pebbles. So there is a tree T containing all vertices of V. No vertex of V has degree 3 in this tree as that would imply that this vertex gave away all his 3 pebbles but this was not possible as the pebble which came from its leaf cannot move any further. So we have a Hamiltonian Path in G. 4 NP-hardness of Path Problems In this section we show the NP-hardness of two versions of s t path problem in the movement setting. We formally define the problems below. PATHMAX Input : An undirected graph G, pebbles and their initial location on vertices of G. Output : A final configuration of pebbles minimizing the maximum movement of any pebbles such that there is a s t path which only contains vertices with pebbles. 2

s v 1 1 v n 1 v 1 2 v n 2 v 1 n v n n t W 1 W 2 W n Figure 2: Path problems are NP-hard : Red paths are length 1 and green paths are length n PATHSUM Input : An undirected graph G, pebbles and their initial location on vertices of G. Output : A final configuration of pebbles minimizing the total movement of all pebbles such that there is a s t path which only contains vertices with pebbles. 4.1 PathMax is NP-hard We reduce from Hamiltonian Path. Consider an instance G = (V,E) of Hamiltonian Path where V = {v 1,v 2,...,v n } and E = {e 1,e 2...,e m }. We build an instance G = (V,E ) of PathMax as shown in Figure 2: 1. For each i [n] define V i = {v i 1,vi 2,...,vi n} 2. Add two new vertices s and t. 3. For each i [n] add a vertex W i. 4. For each j [n] add paths of length n from W j to v 1 j,v2 j,...,vn j. 5. From each of s and t add a path of length n. 6. Connect s to each vertex in V 1 and t to each vertex in V n. 7. Between two consecutive layers V i and V i+1 add an edge between v i j edge between v j and v k in G Theorem 4.1. PathMax is NP-hard. and vi+1 k if and only if there is and 3

Proof. Refer to Figure 2. We claim that G has a Hamiltonian path if and only if PathMax has a solution of cost at most n. Suppose G has a Hamiltonian path say v i1 v i2... v in. Then we give a solution of PathMax of cost n as follows: Move the pebble from the path of length n adjacent to s to s. Similarly for t. Now move pebble at W j to v i j for each j [n]. This gives a pebbled s t path with each pebble moving exactly n. Suppose PathMax has a solution of cost n. Without loss of generality we can assume that the pebbles on the paths of length n attached to s and t are moved to s and t respectively since we are allowed movement of at most n and these two pebbles cannot do anything else. Now each W i can move only on one path of length n. Also each W i must move a path of length n to a vertex in some V j as we have only n W -vertices and any pebbled s t path must have length at least n. So for each j [n] let W i j be the vertex whose pebbled moved to a vertex in V j. Then v i1 v i2... v in form a Hamiltonian path in G and we are done. 4.2 PathSum is NP-hard We again reduce from Hamiltonian Path. We build the same instance for PathSum that we had built for PathMax in previous section. Theorem 4.2. PathSum is NP-hard. Proof. Refer to Figure 2. We claim that G has a Hamiltonian path if and only if PathSum has a solution of cost at most n(n + 2). Suppose G has a Hamiltonian path say v i1 v i2... v in. Then we give a solution of PathMax of cost n as follows: Move the pebble from the path of length n adjacent to s to s. Similarly for t. Now move pebble at W j to v i j for each j [n]. This gives a pebbled s t path with each pebble moving exactly n for a total cost of n(n + 2) since we had (n + 2) pebbles. Suppose PathSum has a solution of cost n(n + 2). The pebbles on the paths of length n attached to s and t must move to s and t respectively since any pebbled s t path needs (n + 2) pebbles. This takes up 2n from the budget leaving n 2. Now each W i must move a path of length n to a vertex in some V j as we have only n W-vertices and any pebbled s t path must have length at least n. This takes up all the budget and hence this is the only scenario possible. So for each j [n] let W i j be the vertex whose pebbled moved to a vertex in V j. Then v i1 v i2... v in form a Hamiltonian path in G and we are done. 5 Facility Location with Movement In the movement variant of the facility location problem we have two types of pebbles: client and server. We are given an initial location of the pebbles on vertices of an unweighted undirected graph. We allow both clients and servers to move and the final desired configuration is that each client be co-located with some server. Both client and server pebbles are allowed to move. We formally define the minimizing the maximum movement version of the facility location problem: FACILITYLOCATIONMAX Input : An undirected graph G, client and server pebbles and their initial location on vertices of G. Output : A final configuration of pebbles minimizing the maximum movement of any pebble such that each client pebble is co-located with some server pebble. 5.1 2-approximation for FacilityLocationMax We do not allow the servers to move. As only clients can move, the problem becomes trivial as each client just moves to his nearest server. We claim this is gives a 2-approximation for FacilityLocationMax. Lemma 5.1. The above algorithm gives a 2-approximation for the FacilityLocationMax problem. Proof. Let OPT be the optimum when both kinds of pebbles can be moved. Therefore no pebble moves more than OPT distance to achieve a final configuration, i.e., each client pebble is at a distance of at most 2.OPT from some server pebble which proves our claim. 4

l 1 l 2 w 1 w 2 Complete Bipartite Graph f 1 f 2 l n w n f k E V F Figure 3: 2-approximation is tight for FacilityLocationMax 5.2 Tightness of 2-approximation for FacilityLocationMax Friggstad and Salavatipour [5] showed that the FacilityLocationMax problem cannot have an approximation ratio better than 2. We reduce from Vertex Cover. Consider an instance G = (V,E) of Vertex Cover where V = {v 1,v 2,...,v n } and E = {e 1,e 2...,e m }. We build an instance G of FacilityLocationMax as shown in Figure 3. 1. V = {w 1,w 2,...,w n } 2. E = {l 1,l 2,...,l m } 3. F = { f 1, f 2,..., f k } 4. Put an edge between w i and l j if and only if v i and e j are incident in G. 5. Put a complete bipartite graph between V and F. 6. Facilities = F 7. Clients = E Theorem 5.2. There is no (2 ε)-approximation for FacilityLocationMax unless P=NP. Proof. We refer to Figure 3. Claim is G has a vertex cover of size at most k if and only if FacilityLocationMax has a solution of cost 1. This claim proves our theorem since any solution for FacilityLocationMax is integral and hence a (2 ε) approximation for a solution of cost 1 would tell us that it is in fact 1 and we will hence be able to solve Vertex Cover problem in polynomial time. Suppose G has a vertex cover of size k. Without loss of generality let it be V 0 = {v 1,v 2,...,v k }. For each i [k] we move f i to w i at a cost of 1. Now since V 0 is a vertex cover each edge in E is incident to some v i for i [k], i.e., for every l j there is an edge to some v i for i [k]. Move l j along this edge. So finally each client is co-located with a server and each pebble has moved exactly 1, i.e., there is a solution for FacilityLocationMax of cost 1. Suppose there is a solution for FacilityLocationMax of cost 1. F has k vertices and solution has cost 1 these vertices move to at most k vertices in V. Without loss of generality let W 1 = {w 1,w 2,...,w k } be the vertices in V to which vertices of F move to in the final solution for some k k. We claim that V 1 = {v 1,v 2,...,v k } forms a vertex cover of G. Note that each vertex of E is a client. Since solution of FacilityLocationMax has cost 1, any vertex of F can only move to a vertex of W 1. Thus each vertex has to be able to move to some vertex in W 1 with cost 1. Therefore for each l j E there is a edge to some vertex in W 1, i.e., V 1 is a vertex cover of G. Since k k we are done. 5

5.3 No Additive Factor Approximation for FacilityLocationMax This observation is due to Marek Cygan. Theorem 5.3. There is no constant c > 0 such that there is an additive c-approximation for FacilityLocationMax unless P=NP. Proof. We use the same construction as in Figure 3 except that each edge is now replaced by a path of length c. We now claim the following: If G has a vertex cover of size at most k then there is a solution of FacilityLocationMax of cost c If G does not have a vertex cover of size at most k then there is no solution of FacilityLocationMax of cost at most (2c 1). Note that this proves our theorem since c + c = 2c > (2c 1) and hence we would be able to decide the Vertex Cover problem in polynomial time. Suppose G has a vertex cover of size at most k. Without loss of generality let it be V 0 = {v 1,v 2,...,v k } for some k k. For each i [k ] we move f i to w i at a cost of c. For k < j k move f i to w 1. Now since V 0 is a vertex cover each edge in E is incident to some v i for i [k], i.e., for every l j there is a path of length c to some v i for i [k]. Move l j along this path. So finally each client is co-located with a server and each pebble has moved exactly c, i.e., there is a solution for FacilityLocationMax of cost c. Suppose G does not have a vertex cover of size at most k. We want to show that there is no solution to FacilityLocationMax of cost at most (2c 1). Suppose to the contrary that there is such a solution. Color all vertices red on paths between E and V. Color all vertices green on paths between V and F. For i [k] we have only three cases when we allow maximum movement of (2c 1) for each server pebble: 1. f i ends up at a vertex in V. 2. f i ends up at a green vertex. Hence f i has either traveled through exactly one vertex of V or moved a distance less than c. In the first case, we take f i back to the vertex of V which it had crossed. In the second case, we move f i along the green path and let it meet the unique vertex of V at which the path of length c ends. 3. f i ends up at a red vertex. We move f i back to the unique vertex of V which it had crossed. For each j [m] we have only three cases when we allow maximum movement of (2c 1) for each client pebble: 1. e j ends up at a vertex in V. 2. e j ends up at a red vertex. Hence e j has either traveled through exactly one vertex of V or moved a distance less than c. In the first case, we take e j back to the vertex of V which it had crossed. In the second case, we move e j along the red path and let it meet the unique vertex of V at which the path of length c ends. 3. e j ends up at a green vertex. We move e j back to the unique vertex of V which it had crossed. It is easy to see that this modifications give a solution of cost at most (2c 1) where all pebbles are now located in V. Since we have exactly k server pebbles they can occupy k vertices in V for some k k. It is easy to see that these k vertices form a vertex cover in G which contradicts the fact that G does not have a vertex cover of size at most k. References [1] J. Bredin, E. D. Demaine, M. T. Hajiaghayi, and D. Rus. Deploying sensor networks with guaranteed capacity and fault tolerance. In MobiHoc, pages 309 319, 2005. [2] E. Demaine, M. Hajiaghayi, and D. Marx. Minimizing movement: fixed-parameter tractability. In In Proceedings of the 17th Annual European Symposium on Algorithms (ESA), 2009. [3] E. D. Demaine, M. T. Hajiaghayi, H. Mahini, A. S. Sayedi-Roshkhar, S. O. Gharan, and M. Zadimoghaddam. Minimizing movement. In SODA, pages 258 267, 2007. [4] S. Doddi, M. V. Marathe, A. Mirzaian, B. M. E. Moret, and B. Zhu. Map labeling and its generalizations. In SODA, pages 148 157, 1997. 6

[5] Z. Friggstad and M. R. Salavatipour. Minimizing movement in mobile facility location problems. In FOCS, pages 357 366, 2008. [6] S. M. LaValle. Planning algorithms, 2004. 7