The minimum reload s-t path/trail/walk problems Current Trends in Theory and Practice of Comp. Science, SOFSEM09 L. Gourvès, A. Lyra, C. Martinhon, J.

Slides:



Advertisements
Similar presentations
NP and NP Complete. Definitions A problem is in the class P if there is a polynomial time solution to the problem A problem is in the class NP if there.
Advertisements

1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
NP-Complete Problems Polynomial time vs exponential time
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Approximation Algorithms Chapter 5: k-center. Overview n Main issue: Parametric pruning –Technique for approximation algorithms n 2-approx. algorithm.
On the complexity of orthogonal compaction maurizio patrignani univ. rome III.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
February 23, 2015CS21 Lecture 201 CS21 Decidability and Tractability Lecture 20 February 23, 2015.
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
Techniques for Proving NP-Completeness
Vertex Cover, Dominating set, Clique, Independent set
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Computability and Complexity 16-1 Computability and Complexity Andrei Bulatov NP-Completeness.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
88- 1 Chapter 8 The Theory of NP-Completeness P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class.
Last class Decision/Optimization 3-SAT  Independent-Set Independent-Set  3-SAT P, NP Cook’s Theorem NP-hard, NP-complete 3-SAT  Clique, Subset-Sum,
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
A 2-Approximation algorithm for finding an optimum 3-Vertex-Connected Spanning Subgraph.
1 NP-Complete Problems Polynomial time vs exponential time –Polynomial O(n k ), where n is the input size (e.g., number of nodes in a graph, the length.
Coloring Algorithms and Networks. Coloring2 Graph coloring Vertex coloring: –Function f: V  C, such that for all {v,w}  E: f(v)  f(w) Chromatic number.
Black-box (oracle) Feed me a weighted graph G and I will tell you the weight of the max-weight matching of G.
1 The Theory of NP-Completeness 2 NP P NPC NP: Non-deterministic Polynomial P: Polynomial NPC: Non-deterministic Polynomial Complete P=NP? X = P.
Theory of Computing Lecture 19 MAS 714 Hartmut Klauck.
Randomized Algorithms Morteza ZadiMoghaddam Amin Sayedi.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Graph Theory Topics to be covered:
The minimum reload s-t path/trail/walk problems Current Trends in Theory and Practice of Comp. Science, SOFSEM09 L. Gourvès, A. Lyra, C. Martinhon, J.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
NP-complete Problems SAT 3SAT Independent Set Hamiltonian Cycle
On s-t paths and trails in edge-colored graphs L. Gourvès, A. Lyra*, C. Martinhon, J. Monnot, F. Protti Lagos 2009 (RS, Brazil)
1 3-COLOURING: Input: Graph G Question: Does there exist a way to 3-colour the vertices of G so that adjacent vertices are different colours? 1.What could.
Incidentor coloring: methods and results A.V. Pyatkin "Graph Theory and Interactions" Durham, 2013.
Complexity 25-1 Complexity Andrei Bulatov Counting Problems.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
Paths and Trails in Edge Colored Graphs Latin-American on Theoretical Informatics Symposium LATIN 2008 Abouelaoualim, K. Das, L. Faria, Y. Manoussakis,
Unit 9: Coping with NP-Completeness
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
NP-Completeness (Nondeterministic Polynomial Completeness) Sushanth Sivaram Vallath & Z. Joseph.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong The Cook-Levin.
1 Suppose I construct a TM M f which: 1. Preserves its input u. 2. Simulates a machine M b on input ε. 3. If M b hangs on input ε, force an infinite loop.
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?
NPC.
CSC 413/513: Intro to Algorithms
NP-Completeness Note. Some illustrations are taken from (KT) Kleinberg and Tardos. Algorithm Design (DPV)Dasgupta, Papadimitriou, and Vazirani. Algorithms.
1 Assignment #3 is posted: Due Thursday Nov. 15 at the beginning of class. Make sure you are also working on your projects. Come see me if you are unsure.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Complexity 24-1 Complexity Andrei Bulatov Counting Problems.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
COMPLEXITY THEORY IN PRACTICE
Richard Anderson Lecture 26 NP-Completeness
(xy)(yz)(xz)(zy)
What is the next line of the proof?
Problem Solving 4.
Presentation transcript:

The minimum reload s-t path/trail/walk problems Current Trends in Theory and Practice of Comp. Science, SOFSEM09 L. Gourvès, A. Lyra, C. Martinhon, J. Monnot Špindlerův Mlýn / Czech Republic

Topics 1. Motivation and basic definitions 2. Minimum reload s-t walk problem; 3. Paths\trails with symmetric reload costs: Polynomial and NP-hard results. 4. Paths\trails with asymmetric reload costs: Polynomial and NP-hard results. 5. Conclusions and open problems

1. Cargo transportation network when the colors are used to denote route subnetworks; 2. Data transmission costs in large communication networks when a color specify a type of transmission; 3. Change of technology when colors are associated to technologies; etc Some applications involving reload costs

Basic Definitions Paths, trails and walks with minimum reload costs s t Reload cost matrix R = a bc d

Basic Definitions Minimum reload s-t walk s t c(W) Reload cost matrix R = 3 a bc d

Basic Definitions Minimum reload s-t trail s t c(W) ≤ c(T) Reload cost matrix R = 34 a bc d

Basic Definitions Minimum reload s-t path s t c(W) ≤ c(T) ≤ c(P) Reload cost matrix R = 345 a bc d

Basic Definitions Symmetric or asymmetric reload costs r ij ≠ r ji Triangle inequality (between colors) z y w x 12 3 r ij ≤ r jk + r ik for colors “i” and “j” r ij = r ji or for colors 1,2,3

Basic Definitions NOTE: Paths (resp., trails and walks) with reload costs generalize both properly edge-colored (pec) and monochromatic paths (resp., trails and walks). s t r ij = 0, for i j and r ii = 1≠ pec s-t path cost of the minimum reload s-t path is 0

s t r ij = 1, for i j and r ii = 0≠ monochomatic s-t path cost of the min. reload s-t path is 0 Basic Definitions NOTE: Paths (resp., trails and walks) with reload costs generalize both properly edge-colored (pec) and monochromatic paths (resp., trails and walks).

Minimum reload s-t walk Minimum reload s-t walk in G Shortest s 0 -t 0 path in H t s v1v1 v2v2 c

Minimum reload s-t walk t s v1v1 v2v2 All cases can be solved in polynomial time !

z y v 1 2 x 1 a) Neighbourhood of “v” in G b) Weighted non-colored subgraph G(v) c Symmetric R Minimum symmetric reload s-t trail

z y v 1 2 x 1 a) Neighbourhood of “v” in G b) Weighted non-colored subgraph G(v) c Symmetric R Minimum symmetric reload s-t trail

z y v 1 2 x 1 a) Neighbourhood of “v” in G b) Weighted non-colored subgraph G(v) c Minimum symmetric reload s-t trail Minimum perfect matching Symmetric R Minimum symmetric reload s-t trail

z y v 1 2 x 1 a) Neighbourhood of “v” in G b) Weighted non-colored subgraph G(v) c Symmetric R The minimum symmetric reload s-t trail can be solved in polynomial time ! Minimum symmetric reload s-t trail

NP-completeness Theorem 1 The minimum symmetric reload s–t path problem is NP-hard if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 4.

x i is false Gadget for literal x i Gadget for clause C j x i is true Reduction from the (3, B2)-SAT (2-Balanced 3-SAT) Each clause has exactly 3 literals Each variable apears exactly 4 times (2 negated and 2 unnegated) Theorem 1 (Proof)

C3C3 C6C6 C4C4 C5C5 literal x 7

Every other entries of R are set to 1 C6C6 Theorem 1 (Proof) C3C3 C4C4 C5C5

t s

We modify the reload costs, so that: OPT(G c )=0 I is satisfiable. OPT(G c ) >M I is not satisfiable. In this way, to distinguish between OPT(G c )=0 or OPT(G c ) ≥M is NP- complete, otherwise P=NP! Non-approximation Theorem 2 In the general case, the minimum symmetric reload s–t path problem is not approximable at all if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 4.

Non-approximation Theorem 2 In the general case, the minimum symmetric reload s–t path problem is not approximable at all if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 4. Proof: r 1,2 = r 2,1 = M r 1,3 = r 3,1 = 0 r 2,2 = 0 r 1,1 = 0 r 2,3 = r 3,2 = 0

t s Non-approximation (Proof) r 1,2 = r 2,1 = M

Theorem 3 If, for every i,j the minimum symmetric reload s–t path problem is not -approximable for every if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 4. Proof: r 1,2 = r 2,1 = M r 1,3 = r 3,1 = 1 r 2,2 = 1 r 1,1 = 1 r 2,3 = r 3,2 = 1 Non-approximation

Theorem 3 If, for every i,j the minimum symmetric reload s–t path problem is not -approximable for every if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 4. Proof: Non-approximation It is NP –complete to distinguish between

Corollary 4: The minimum symmetric reload s–t path problem is NP-hard if c ≥ 4, the graph is planar, the triangle inequality holds and the maximum degree is equal to 4. NP-Completeness

a b d c a b d c f a b d c a b d c f d’ c’ a’ b’ r 3,4 = r 4,3 = M Corollary 4 (Proof): r 1,2 = r 2,1 = M

Some polynomial cases Theorem 5 Consider G c with c=2 colors. Further, suppose that the reload cost matrix R satisfies the triangle inequality. Then, the minimum symmetric reload s–t path problem can be solved in polynomial time.

Some polynomial cases Theorem 5 Consider G c with c=2 colors. Further, suppose that the reload cost matrix R satisfies the triangle inequality. Then, the minimum symmetric reload s–t path problem can be solved in polynomial time. If the triangle ineq. does not hold??

Some polynomial cases The minimum toll cost s–t path problem may be solved in polynomial time. ∀ r i,j =r j, for colors i and j and r i,i =0 s t s 0 auxiliar vertex and edge toll points

NP-completeness Theorem 6 The minimum asymmetric reload s–t trail problem is NP-hard if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 4.

NP-completeness (Proof) Variable graph Clause graph Reduction from the (3, B2)-SAT (2-Balanced 3-SAT) Each clause has exactly 3 literals Each variable apears exactly 4 times (2 negated and 2 unnegated) False True

x3x3 Reload costs = M NP-completeness (Proof)

(b) If, for every i,j the minimum asymmetric reload s–t trail problem is not -approximable for every if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 3. Non-approximation Theorem 7 (a) In the general case, the minimum asymmetric reload s–t trail problem is not approximable at all if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 3.

(b) If, for every i,j the minimum asymmetric reload s–t trail problem is not -approximable for every if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 3. Non-approximation Theorem 7 (a) In the general case, the minimum asymmetric reload s–t trail problem is not approximable at all if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 3.

(b) If, for every i,j the minimum asymmetric reload s–t trail problem is not -approximable for every if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 3. Non-approximation Theorem 7 (a) In the general case, the minimum asymmetric reload s–t trail problem is not approximable at all if c ≥ 3, the triangle inequality holds and the maximum degree of G c is equal to 3.

A polynomial case Theorem 8 Consider G c with c=2 colors. Further, suppose that the reload cost matrix R satisfies the triangle inequality. Then, the minimum asymmetric reload s–t trail problem can be solved in polynomial time.

A polynomial case Theorem 8 Consider G c with c=2 colors. Further, suppose that the reload cost matrix R satisfies the triangle inequality. Then, the minimum asymmetric reload s–t trail problem can be solved in polynomial time. If the triangle ineq. does not hold??

Conclusions and Open Problems Polynomial time problemsNP-hard problems s-t walk s-t trail s-t path

Conclusions and Open Problems Input: Let be 2-edge-colored graph and 2 vertices Question: Does the minimum symmetric reload s-t path problem can be solved in polynomial time? Note: If the triangle ineq. holds Yes! Problem 1

Conclusions and Open Problems Input: Let be 2-edge-colored graph and 2 vertices Question: Does the minimum asymmetric reload s-t trail problem can be solved in polynomial time? Note: If the triangle ineq. holds Yes! Problem 2

Thanks for your attention!!