Algorithms for hard problems Parameterized complexity – definitions, sample algorithms Juris Viksna, 2015.

Slides:



Advertisements
Similar presentations
Bart Jansen 1.  Problem definition  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least k leaves?
Advertisements

Introduction to Kernel Lower Bounds Daniel Lokshtanov.
Bart Jansen, Utrecht University. 2  Max Leaf  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least.
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
Approximative Kernelization: On the Trade-off between Fidelity and Kernel Size joint with Michael Fellows and Frances Rosamond Charles Darwin University.
Fixed Parameter Complexity Algorithms and Networks.
Bart Jansen, Utrecht University. 2  Max Leaf  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Data Transmission and Base Station Placement for Optimizing Network Lifetime. E. Arkin, V. Polishchuk, A. Efrat, S. Ramasubramanian,V. PolishchukA. EfratS.
Balanced Graph Partitioning Konstantin Andreev Harald Räcke.
Randomized Algorithms and Randomized Rounding Lecture 21: April 13 G n 2 leaves
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
An Efficient Fixed Parameter Algorithm for 3-Hitting Set
1 Vertex Cover Problem Given a graph G=(V, E), find V' ⊆ V such that for each edge (u, v) ∈ E at least one of u and v belongs to V’ and |V’| is minimized.
A Beginner in Parameterized Complexity Jian Li Fudan University May,2006.
Randomized Process of Unknowns and Implicitly Enforced Bounds on Parameters Jianer Chen Department of Computer Science & Engineering Texas A&M University.
Analysis of Algorithms CS 477/677
Joint with Christian KnauerFreie U., Berlin Andreas SpillnerJena Takeshi TokuyamaTohoku University Alexander WolffUniversity of Karlsruhe Algorithms for.
Chapter 11: Limitations of Algorithmic Power
Toward NP-Completeness: Introduction Almost all the algorithms we studies so far were bounded by some polynomial in the size of the input, so we call them.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 22 Instructor: Paul Beame.
Linear Programming and Parameterized Algorithms. Linear Programming n real-valued variables, x 1, x 2, …, x n. Linear objective function. Linear (in)equality.
1 Refined Search Tree Technique for Dominating Set on Planar Graphs Jochen Alber, Hongbing Fan, Michael R. Fellows, Henning Fernau, Rolf Niedermeier, Fran.
Hardness Results for Problems
Data reduction lower bounds: Problems without polynomial kernels Hans L. Bodlaender Joint work with Downey, Fellows, Hermelin, Thomasse, Yeo.
Fixed Parameter Complexity Algorithms and Networks.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Fixed Parameter Complexity Algorithms and Networks.
Simple and Improved Parameterized Algorithms for Multiterminal Cuts Mingyu Xiao The Chinese University of Hong Kong Hong Kong SAR, CHINA CSR 2008 Presentation,
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
Approximation Algorithms
IPEC Kernelization1 A tutorial on Kernelization Hans L. Bodlaender.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
FPT is Characterized by Useful Obstruction Sets Bart M. P. Jansen Joint work with Michael R. Fellows, Charles Darwin Univ. June 21st 2013, WG 2013, Lübeck.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
The Dominating Set and its Parametric Dual  the Dominated Set  Lan Lin prepared for theory group meeting on June 11, 2003.
Minicourse on parameterized algorithms and complexity Part 4: Linear programming Dániel Marx (slides by Daniel Lokshtanov) Jagiellonian University in Kraków.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
Data Reduction for Graph Coloring Problems Bart M. P. Jansen Joint work with Stefan Kratsch August 22 nd 2011, Oslo.
Parameterized algorithms and their applications Juris Viksna Riga, IMCS.
Algorithms for hard problems Introduction Juris Viksna, 2015.
Algorithms for hard problems WQO theory and applications to parameterized complexity Juris Viksna, 2015.
Chapter 15 P, NP, and Cook’s Theorem. 2 Computability Theory n Establishes whether decision problems are (only) theoretically decidable, i.e., decides.
Algorithms for hard problems Parameterized complexity Bounded tree width approaches Juris Viksna, 2015.
Algorithms for hard problems Parse trees for graphs Juris Viksna, 2015.
Fixed Parameter Tractability for Graph Drawing Sue Whitesides Computer Science Department.
The Theory of NP-Completeness
P & NP.
Chapter 10 NP-Complete Problems.
Parameterized algorithms and their applications
Algorithms for hard problems
NP-Completeness Yin Tat Lee
Computability and Complexity
Parameterised Complexity
Bart M. P. Jansen June 3rd 2016, Algorithms for Optimization Problems
Coping With NP-Completeness
Fixed Parameter Tractability
Bart Jansen Polynomial Kernels for Hard Problems on Disk Graphs
REDUCESEARCH Polynomial Kernels for Hitting Forbidden Minors under Structural Parameterizations Bart M. P. Jansen Astrid Pieterse ESA 2018 August.
Computation Basics & NP-Completeness
Graphs and Algorithms (2MMD30)
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
The Theory of NP-Completeness
Hamiltonicity below Dirac’s condition
Coping With NP-Completeness
Presentation transcript:

Algorithms for hard problems Parameterized complexity – definitions, sample algorithms Juris Viksna, 2015

Parameterized complexity Combinatorial "explosion" for NP-hard problems [Adapted from R.Downey and M.Fellows]

Parameterized complexity Parameterized complexity attempts to confine combinatorial "explosion" [Adapted from R.Downey and M.Fellows]

Parameterized complexity - Definitions Definition (FPT) A parametrized problem L   *  * is Fixed Parameter Tractable if there is an algorithm that for input (x,y)   *  * with |x| = k and |y| = n decides whether (x,y)  L in time f(k) n , where f is an arbitrary function and  is a constant. Definition does not change if f(k) n  is replaced by f(k) + n  (!)

Parameterized complexity - Definitions M k for every n solves the problem in time f(k) n  For each k there is a constant c k, such that f(k) n  > n  + 1 for n  c k M' k :- simulates M k for n  c k - looks up value from the table for n  c k M' k solves the problem in time f(k) c k + n a+1

Some parameterized problems VERTEX COVER Instance:A graph G=(V,E) Parameter:A positive integer k Question:Is there a subset S  V, such that |S|=k and for all {x,y}  E either x  S or y  S? [Adapted from R.Downey and M.Fellows]

Some parameterized problems GRAPH GENUS Instance:A graph G=(V,E) Parameter:A positive integer k Question:Does graph G have genus k? [Adapted from R.Downey and M.Fellows]

Some parameterized problems GRAPH LINKING NUMBER Instance:A graph G=(V,E) Parameter:A positive integer k Question:Can G be embedded in 3-space such that the maximum size of a collection of topologically linked disjoint cycles is bounded by k? [Adapted from R.Downey and M.Fellows]

Some parameterized problems VERTEX COVER: A single algorithm  running in time 2 k |G| for each k [Downey and Fellows 1992] GRAPH GENUS: A single algorithm  which for each fixed k determines whether graph G has genus k in time O(|G| 3 ) [Fellows and Langston 1988] GRAPH LINKING NUMBER: For each k there is an algorithm  k, which determines whether graph G has linking number k in time O(|G| 3 ) [Fellows and Langston 1988]

Parameterized complexity - Definitions A problem L is uniformly FPT, if there is an algorithm , a constant c and a function f, such that: - the running time of  (‹x,k › ) is at most f(k)|x| c - ‹x,k›  A iff  (‹x,k›) = 1. A problem L is strongly uniformly FPT, if L is uniformly FPT via some  and f, such that f is recursive. A problem L is nonuniformly FPT if there is a constant c, a function f and a collection of algorithms {  k } k  N, such that for each k: - the running time of  k (‹x,k›) is at most f(k)|x| c - ‹x,k›  A iff  k (‹x,k›) = 1.

"klam" values Algorithms for VERTEX COVER: O(f(k) n 3 ) [Fellows, Langston 1986] O(f(k) n 2 ) [Johnson, 1987] Tower of 2's of height described by tower of 2's of height described by tower of 2's... (impractical even for k = 1 :) k FPT if solvable in time f(k)+n c klam value - the largest k for which f(k) is less that some universal "speed limit" U (e.g. U= ) [Adapted from R.Downey and M.Fellows]

Parameterized complexity Parametrized tractability (methods for constructing FPT algorithms) Parametrized intractability (how to "prove" that there are no FPT algorithm for a given problem)

Bounded search tree methods First, construct a search space (tree), such that the size search space depends only from parameter k Then run some relatively efficient algorithm (say DFS) on each branch of the tree For fixed k search space is of constant size, thus we obtain a FPT algorithm

Bounded search tree methods - Vertex cover , G {v 1 }, G-{v 1 } {u 1 }, G-{u 1 } {v 1,v 2 }, G-{v 1,v 2 }{v 1,u 2 }, G-{v 1,u 2 } {u 2,v 2 } {u 1,v 1 } k+1 Theorem [Downey and Fellows 1992] VERTEX COVER is solvable in time O(2 k |V(G)|). By considering only graphs with vertices of degree 3 or higher, it is possible to shrink search space from 2 k to (5 1/4 ) k [Balasubramanian et al 1997]

Kernel methods The main idea of the reduction to problem kernel is to reduce a problem instance I to an equivalent instance I', where the size of I' is bounded by some function of the parameter k. The instance I' is then exhaustively analyzed, and a solution for I' lifted to a solution to I. Usually this will give and additive rather that multiplicative f(k) exponential factor

Kernel methods - Vertex cover Theorem [Buss 1989] VERTEX COVER is solvable in time O((2k) k + k |V(G)|). Observation Any vertex of degree greater than k must belong to every k-element vertex cover. Step 1 Locate all vertices in G of degree greater than k; let p equal the number of such vertices. If p > k, there is no k-vertex cover. Otherwise let k' = k – p. Step 2 Discard all vertices found in step 1 and the edges incident to them. If the resulting graph G' has more than k'(k+1) vertices, reject.

Kernel methods - Vertex cover Observation Any vertex of degree greater than k must belong to every k-element vertex cover. Step 1 Locate all vertices in G of degree greater than k; let p equal the number of such vertices. If p > k, there is no k-vertex cover. Otherwise let k' = k – p. Step 2 Discard all vertices found in step 1 and the edges incident to them. If the resulting graph G' has more than k'(k+1) vertices, reject. Step 3 If G' has no k'-vertex cover, reject. Otherwise, any k'-vertex cover of G' plus the p vertices from step 1 constitutes a k-vertex cover for G. Graph with k' vertex cover and vertex degree bounded by k has up to k'(k+1) vertices Doable in O((2k) k ) time

Kernel methods - Vertex cover Kernel method O((2k) k + k |V(G)|) Search tree method O(2 k |V(G)|) O((5 1/4 ) k |V(G)|) If we use reduction to problem kernel first, and then apply search tree method to problem kernel, we improve additive bounds to: O(kn + 2 k k 2 )[Balasubramanian et al 1992] O(kn + ((5 1/4 ) k k 2 )[Balasubramanian et al 1992]

Closest string problem