Anticoloring Problems on Graphs

Slides:



Advertisements
Similar presentations
C&O 355 Lecture 23 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Advertisements

1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
C&O 355 Mathematical Programming Fall 2010 Lecture 22 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Totally Unimodular Matrices
Techniques for Dealing with Hard Problems Backtrack: –Systematically enumerates all potential solutions by continually trying to extend a partial solution.
Dragan Jovicic Harvinder Singh
Approximation Algorithms for Capacitated Set Cover Ravishankar Krishnaswamy (joint work with Nikhil Bansal and Barna Saha)
C&O 355 Mathematical Programming Fall 2010 Lecture 21 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Instructor Neelima Gupta Table of Contents Lp –rounding Dual Fitting LP-Duality.
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Computer Algorithms Integer Programming ECE 665 Professor Maciej Ciesielski By DFG.
1 Shira Zucker Ben-Gurion University of the Negev Advisors: Prof. Daniel Berend Prof. Ephraim Korach Anticoloring for Toroidal Grids.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
Backtracking Reading Material: Chapter 13, Sections 1, 2, 4, and 5.
Linear Programming – Max Flow – Min Cut Orgad Keller.
Packing Element-Disjoint Steiner Trees Mohammad R. Salavatipour Department of Computing Science University of Alberta Joint with Joseph Cheriyan Department.
Approximation Algorithms: Bristol Summer School 2008 Seffi Naor Computer Science Dept. Technion Haifa, Israel TexPoint fonts used in EMF. Read the TexPoint.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding ILPs with Branch & Bound ILP References: ‘Integer Programming’
C&O 355 Mathematical Programming Fall 2010 Lecture 17 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Decision Procedures An Algorithmic Point of View
C&O 355 Mathematical Programming Fall 2010 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Design Techniques for Approximation Algorithms and Approximation Classes.
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Edge-disjoint induced subgraphs with given minimum degree Raphael Yuster 2012.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
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?
Chapter 13 Backtracking Introduction The 3-coloring problem
ICS 353: Design and Analysis of Algorithms Backtracking King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Optimization - Lecture 5, Part 1 M. Pawan Kumar Slides available online
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Linear Programming Piyush Kumar Welcome to CIS5930.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
The Theory of NP-Completeness
Lap Chi Lau we will only use slides 4 to 19
Computation of the solutions of nonlinear polynomial systems
Integer Programming An integer linear program (ILP) is defined exactly as a linear program except that values of variables in a feasible solution have.
Topics in Algorithms Lap Chi Lau.
Non-additive Security Games
The minimum cost flow problem
Richard Anderson Lecture 25 Min Cut Applications and NP-Completeness
Chapter 5. Optimal Matchings
NP-Completeness Yin Tat Lee
Analysis and design of algorithm
Polyhedron Here, we derive a representation of polyhedron and see the properties of the generators. We also see how to identify the generators. The results.
Analysis of Algorithms
Integer Programming (정수계획법)
Polyhedron Here, we derive a representation of polyhedron and see the properties of the generators. We also see how to identify the generators. The results.
Linear Programming and Approximation
Chapter 11 Limitations of Algorithm Power
Chapter 1. Formulations (BW)
TRLabs & University of Alberta © Wayne D. Grover 2002, 2003, 2004
Integer Programming (정수계획법)
NP-Completeness Yin Tat Lee
Constraint satisfaction problems
CSE 6408 Advanced Algorithms.
Flow Feasibility Problems
The Theory of NP-Completeness
ICS 353: Design and Analysis of Algorithms
Chapter 1. Formulations.
Prepared by Po-Chuan on 2016/05/24
Constraint satisfaction problems
Presentation transcript:

Anticoloring Problems on Graphs Ben-Gurion University of the Negev Faculty of Natural Sciences Department of Computer Science Anticoloring Problems on Graphs By: Orly Yahalom Advisors: Prof. Daniel Berend Dr. Ephraim Korach

Foreword The Anticoloring Problem – Version 1 The Anticoloring Problem – Additional Versions. Version 1 - Rooks on a Chessboard Semi-Queens

Anticoloring Anticoloring of a graph G : Coloring of some of the vertices of G, such that no two neighboring vertices are colored in different colors. Black-and-white coloring: Anticoloring which uses 2 colors.

Anticoloring Example black white uncolored illegal legal

The Anticoloring Problem – Version 1 (Decision problem formulation) Input: Graph G, positive integers B1, ..., Bk . Question: Does G admit an anticoloring of Bj vertices in color j, j=1, ..., k. For k=2: The BWC problem. The decision and optimization problems are polynomially equivalent.

An Application Storing chemical products, where certain pairs of places cannot contain different products.

Past Research – BWC Version 1 Berge introduced the problem of placing black and white queens on an n x n chessboard, such that no black queen threatens a white queen. The complexity of this problem is still open.

Past Results - BWC Version 1 Introduction of the general problem and proof of its NP-completeness [1] Polynomial algorithm for trees [1] Polynomial algorithm for partial k-trees with fixed k.[2] _______________________________________________________ [1] P. Hansen, A. Hertz and N. Quinodoz, Splitting trees, Disc. Math. 165/167 (1997), 403-419 [2] D. Kobler, E. Korach and A. Hertz, On black-and-white colorings, anticolorings, and extensions, submitted

Integer Linear Programming (ILP) Formulation of BWC – Version 1 Denote the graph vertices by 1,...,n. For each vertex i we assign binary variables bi and wi, such that

Integer Linear Programming (ILP) Formulation of BWC – Version 1 Assuming B is given and W is to be maximized: max s.t. (1) bi + wi  1 ( 1  i  n) (2) bi + wj  1 (i, j are neighbors) (3) (4) 0  bi , wi  1 and integers ( 1  i  n)

BWC – Additional Versions Input: Graph G with an initial BWC. Problem: Extend the initial BWC, such that the number of colored vertices – in both colors – is maximized.

Weighted Versions of Version 2 Input: Graph G with an initial BWC, positive cost function on G’s vertices. Problem: Extend the initial BWC, such that the total cost of colored vertices is maximized. Version 3’ Same as Version 3’, but with cost function on the colors.

Remark: Versions 2, 3 are trivial unless the initial BWC includes both colors. Version 3’ is trivial unless the initial BWC include vertices colored in the color of lower cost. 3 4 c(black) = 1 c(white) = 3

Weighted Versions of Version 2 Input: Graph G=(V,E) with an initial BWC, positive cost function on V x {black, white}. Problem: Extend the anticoloring, such that the total cost of colored vertices is maximized.

Remark: Version 4 is non-trivial even if the initial anticoloring is empty. A B C 3 1 A B C 5 6 5

Past Research – Version 3 Version 3 of the BWC problem is polynomially equivalent to the 2-terminal node cut problem, which is polynomial. t s

Past Research – Version 3 The k-terminal node-cut problem is NP-complete for k  3, even for a constant cost function.[3] ______________________________________________________ [3] W. H. Cunningham, The optimal multiterminal cut problem, DIMACS Series in Disc. Math. and Theor. Comput. Sci 5 (1991), 105 – 120. The extension of Version 2 for three colors or more is NP-complete.

ILP Formulation of the BWC Problem – Version 4 max s.t. (1) bi + wi  1 ( 1  i  n) (2) bi + wj  1 (i, j are neighbors) (3.1) bi = 1, i  Vb, (3.2) wi = 1, i  Vw, (4) 0  bi , wi  1 and integers ( 1  i  n) cib (ciw) – Cost of coloring vertex i in black (white). Vb (Vw)- Vertices initially colored in black (white).

Linear Programming Background A linear program (LP) is a program of the form: max/min cTx s.t. Ax  b where: A is a given matrix, b, c are given vectors, x is a vector of decision variables. An ILP whose integrality constraint is relaxed is an LP. The LP version of an ILP program is called linear programming relaxation. LP’s are easy to solve, unlike ILP’s.

Linear Programming – Solution Space The solution space of a linear program is defined by a polyhedron. The extreme points (“corners”) of the polyhedron are called basic solutions. An LP with non-empty solution space is called feasible. An LP with a bounded solution space is called bounded.

Linear Programming – Basic Solutions For any feasible bounded linear program, there exists an optimal solution which is a basic. Khachiyan[4]: There is a polynomial LP algorithm that finds an optimal basic solution, if exists (“The Ellipsoid Method”). _______________________________________ [4] L. G. Khachiyan, A polynomial-time algorithm for linear programming, Soviet Math. Dokl. 20/1 (1979), 191-194.

Totally Unimodular Matrices A matrix A is called totally unimodular (TUM) if every square submatrix of A is of determinant 0, 1, or –1. Ghouila-Houri[5]: A matrix A is totally unimodular  Every subset C of columns of A has a partition C = C1  C2 such that for each row i of A. _____________________________________________________________ [5] A. Ghouila-Houri, Caracterisation des matrices totalementunimodulaires, C. R. Acad. Sci. Paris 254 (1962), 1192-1194.

Totally Unimodular Matrices and LP Hoffman and Kruskal[6]: A system Ax  b (A, b have integer-valued elements) have only integer basic solutions  A is totally unimodular. _________________________________________ [6] A. Schrijver, Theory of Linear and Integer Programming, Wiley, Chichester, 1986.

Polynomiality of Version 4 Theorem 1: There is a polynomial algorithm for solving Version 4. Proof: We show that the matrix of constraints in the LP relaxation of Version 4 is TUM. Then Applying Khachiyan’s algorithm for the LP relaxation gives an integral optimal solution – a feasible solution for Version 4

Polynomiality of Version 4 Proof (cont.) Take: C1 = Coefficients of bi’s C2 = Coefficients of wi’s Then for each row (constraint), there is at most a single 1 in each subset of columns. Thus, the matrix of constraints of the LP relaxation of Version 4 is totally unimodular.

Version 4 – Polymonial Combinatorial Algorithm Polynomial-time reduction to the Independent Set problem in a bipartite graph, which is polynomially solvable.[7] _______________________________________ [7] G. L. Nemhauser and L. E. Trotter, Jr., Vertex packings: Structural properties and algorithms, Mathematical Programming 8 (1975), 232 -248.

Version 4 – Polymonial Combinatorial Algorithm Polynomial-time reduction to the Independent Set problem in a bipartite graph, which is polynomially solvable.[7] _______________________________________ [7] G. L. Nemhauser and L. E. Trotter, Jr., Vertex packings: Structural properties and algorithms, Mathematical Programming 8 (1975), 232 -248.

Reduction From Version 4 to IS in A Bipartite Graph w1 v1 b2 w2 v2 v6 v3 b3 w3 b4 w4 v4 b5 w5 v5 b6 w6 (a) (b)

Reduction From Version 4 to IS in A Bipartite Graph w1 v1 b2 w2 v2 v6 v3 b3 w3 b4 w4 v4 b5 w5 v5 b6 w6 (a) (b)

Reduction From Version 4 to IS in A Bipartite Graph w4 v4 b5 w5 v5 b6 w6 (a) (b)

Reduction From Version 4 to IS in A Bipartite Graph w4 v4 b5 w5 v5 b6 w6 (a) (b)

Reduction From IS in Bipartite Graphs to Min-Cut-Max-Flow

Reduction From IS in Bipartite Graphs to Min-Cut-Max-Flow  v c(v) u s c(u) t

Reduction From IS in Bipartite Graphs to Min-Cut-Max-Flow  v c(v) u s c(u) t Min Cut -> Min Co-IS -> Max IS

Special Graphs: Rooks on a chessboard Given B black rooks, place them on the chessboard such that W - the potential number of unthreatened white rooks - is maximized. The graph: Vertex for each position on the board. Edge between 2 vertices that represent points on the same row or column.

Rooks on an m x n Chessboard Assume m  n. r – number of rows containing rooks c – number of columns containing rooks Number of white rooks: W(r, c) = (m – r)(n – c) c r m m = 9, n = 10, B = 15, r = 4, c = 6, W = 20. n

Rooks on an m x n Chessboard (cont.) For a given r, c should be as small as possible. One-variable function: W(r) = (m – r)(n – B/r ) B/r  r m m = 9, n = 10 B = 15, r = 4, B/r  = 6, W = 30. n

Rooks on an m x n Chessboard (cont.) Our problem: max W(r) = (m – r)(n – B/r ) s.t. 0 < r  min(B, m) and integer Without loss of generality r  c = B/r , thus r  min(B , m) r1 – optimal solution.

Rooks on an m x n Chessboard – Continuous Version Relaxing the integrality constraints on r and c: max W(r) = (m – r)(n –B/r ) s.t. B/n   r  min(B, m) Optimal solution: where r0 /c0 = m /n c0 r0 m n

Discrete vs. Continuous Solution (r1, c1) – Discrete solution(s). (r0, c0) – Continuous solution. Proposition 1 For each d, there exist m, n, and B for which |r1 – r0|  d. Proof For a = (d+1)2 +1, m = a2 –2a + 2, n = B = a2 - a +1 we have r0 > a-1 but r1 = a – 1 – d.

Discrete vs. Continuous Solution We have found upper bound on |r1 – r0| for various cases. An upper bound U on |r1 – r0| give rise to a search algorithm for r0: Compute W(r) for each integer r in the interval [r0 – U, r0 + U]. Choose the solution r for which W(r) is maximal. Time complexity: 2U. We give a tight upper bound for the general case and constant or small for special cases.

Proposition 2. The optimal solution for an n x n chessboard is: Rooks Problem – Closed-Form Solutions Proposition 2. The optimal solution for an n x n chessboard is: a a + 1 a a An a x (a+1) rectangle for a2 < B  a(a+1) ( a = B = r0 ) An a x a square for a(a-1) < B  a2 (a = B = r0 ) In both cases r1 = round(r0)

Proposition 3. The optimal solution for an m x km chessboard is: Rooks Problem – Closed-Form Solutions Proposition 3. The optimal solution for an m x km chessboard is: ro = a-1 ka ro = a k(a-1) a For ka(a-1) < B  ka2 r1 = a = r0

Rooks Problem – Closed-Form Solutions Proposition 3 (cont.) k(a+1) ro = a+1 ro = a ka a For ka2 < B  ka(a+1) r1 = a = r0 

Rooks Problem – Special Cases Proposition 4. Let , where p and q are integers and l is rational. Then Without loss of generality p < q. Thus q is not significant.

Rooks Problem – Special Cases Proposition 4 – Intuition n/m = q/p. Assume r1 < r0 – p. Take (r1 + p, c1 – y). To improve (m-r)(n-c), we need to have y > q. yr1 ~ p(c1 – y) and thus y ~ qc1/((q/p)r1 + q ). Since r1 + p < r0, (q/p)r1 + q < c0 < c1 and thus y < q.

Rooks Problem - Special Cases Proposition 5 (i) For each m, n, and B such that r0  2 we have r1 = 1. (ii) This upper bound is tight.

Rooks Problem – General Case Theorem 2 (i) For each m, n, and B (ii) The above bound is tight up to an additive constant. More specifically, the best possible upper bound U satisfies

Rooks Problem – General Case Proof of Theorem 2 The upper bound: Upper bound on W(r) as a function of  = r - r0. Lower bound on the max W(r). Using the fact that W(r)  maxr W(r). The tightness of the upper bound: Using the case of Proposition 1.

Multi-Colored Rooks on a Square Board Proposition 6 Given an n x n chessboard and integers B1,...,Bk it is possible to place Bj non-attacking rooks from each color j if and only if where

Semi-Queens A semi-queen on a square board is a piece that threatens its row, column and one of its extended diagonal. The board may be viewed as toral. The problem is complex.

Semi-Queens Proposition 7 Optimal solution for n = pq, q > 2 and B = p2. Example: p = 3, q = 5

Semi-Queens Example: Proposition 7 does not work for q = 2.

Thank you.