Introduction to Parameterized Complexity

Similar documents
Parameterized Complexity - an Overview

W[1]-hardness. Dániel Marx. Recent Advances in Parameterized Complexity Tel Aviv, Israel, December 3, 2017

W[1]-hardness. Dániel Marx 1. Hungarian Academy of Sciences (MTA SZTAKI) Budapest, Hungary

Fixed Parameter Algorithms

NP-Completeness. Algorithms

8.1 Polynomial-Time Reductions

NP-Complete Reductions 2

Parameterized Reductions

NP and computational intractability. Kleinberg and Tardos, chapter 8

W4231: Analysis of Algorithms

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

PCP and Hardness of Approximation

Exact Algorithms Lecture 7: FPT Hardness and the ETH

9.1 Cook-Levin Theorem

Computability Theory

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Fixed-Parameter Algorithms, IA166

CS 151 Complexity Theory Spring Final Solutions. L i NL i NC 2i P.

SAT-CNF Is N P-complete

Hardness of Subgraph and Supergraph Problems in c-tournaments

KERNELIZATION. Polynomial time preprocessing - data reduction

Chordal deletion is fixed-parameter tractable

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

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Fixed-Parameter Algorithms

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/27/18

Reductions and Satisfiability

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

Where Can We Draw The Line?

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

9. Parameter Treewidth

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/18/14

1 Definition of Reduction

Randomness and Computation March 25, Lecture 5

P and NP (Millenium problem)

Decision Procedures. An Algorithmic Point of View. Decision Procedures for Propositional Logic. D. Kroening O. Strichman.

On the Hardness of Counting the Solutions of SPARQL Queries

1 Introduction. 1. Prove the problem lies in the class NP. 2. Find an NP-complete problem that reduces to it.

P -vs- NP. NP Problems. P = polynomial time. NP = non-deterministic polynomial time

8.1 Polynomial-Time Reductions

Chordal deletion is fixed-parameter tractable

Reductions. Linear Time Reductions. Desiderata. Reduction. Desiderata. Classify problems according to their computational requirements.

10. EXTENDING TRACTABILITY

Fixed-Parameter Algorithm for 2-CNF Deletion Problem

Chordal graphs MPRI

P = NP; P NP. Intuition of the reduction idea:

Vertex Cover is Fixed-Parameter Tractable

Parameterized graph separation problems

Umans Complexity Theory Lectures

Ch9: Exact Inference: Variable Elimination. Shimi Salant, Barak Sternberg

Copyright 2000, Kevin Wayne 1

Parameterized Computational Complexity of Dodgson and Young Elections

Chapter 10 Part 1: Reduction

The Complexity of Change

Parameterized Complexity of Finding Subgraphs with Hereditary Properties

Exercises Computational Complexity

Complexity of unique list colorability

8 NP-complete problem Hard problems: demo

In this lecture we discuss the complexity of approximation problems, and show how to prove they are NP-hard.

arxiv: v2 [cs.cc] 29 Mar 2010

P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang

Recent Advances in FPT and Exact Algorithms for NP-Complete Problems

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example

Genus Characterizes the Complexity of Certain Graph Problems: Some Tight Results

Graph Crossing Number and Isomorphism SPUR Final Paper, Summer 2012

P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang

Treewidth and graph minors

Hardness of r-dominating set on graphs of diameter (r + 1)

Complexity of Disjoint Π-Vertex Deletion for Disconnected Forbidden Subgraphs

A Retrospective on Datalog 1.0

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Algorithms For Inference Fall 2014

The Square Root Phenomenon in Planar Graphs

CS521 \ Notes for the Final Exam

On the Complexity of k-sat

Static, Incremental and Parameterized Complexity of Consistent Query Answering in Databases Under Cardinality-Based Semantics

Introduction to Algorithms. Lecture 24. Prof. Patrick Jaillet

Chapter 8. NP-complete problems

Preventing Unraveling in Social Networks: The Anchored k-core Problem

The Touring Polygons Problem (TPP)

The Complexity of König Subgraph Problems and Above-Guarantee Vertex Cover.

Lecture 2: NP-Completeness

ALGORITHMS EXAMINATION Department of Computer Science New York University December 17, 2007

Core Membership Computation for Succinct Representations of Coalitional Games

10. EXTENDING TRACTABILITY

APPROXIMATION ALGORITHMS FOR GEOMETRIC PROBLEMS

Random Instances of W[2]-complete Problems: thresholds, complexity, and algorithms

Paths, Flowers and Vertex Cover

SAT Solver. CS 680 Formal Methods Jeremy Johnson

The Robust Set problem: parameterized complexity and approximation

Practical Fixed-Parameter Algorithms for Graph-Modeled Data Clustering

Let G 1 = (V 1, E 1 ) and G 2 = (V 2, E 2 ) be graphs. Introduction. Some facts about Graph Isomorphism. Proving Graph Isomorphism completeness

Some Hardness Proofs

Boolean Functions (Formulas) and Propositional Logic

arxiv: v1 [cs.db] 23 May 2016

Fixed-parameter tractable canonization and isomorphism test for graphs of bounded treewidth

On the Max Coloring Problem

2SAT Andreas Klappenecker

REU Problems of the Czech Group

Transcription:

Introduction to Parameterized Complexity M. Pouly Department of Informatics University of Fribourg, Switzerland Internal Seminar June 2006

Outline Introduction & Motivation The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism 1 Introduction & Motivation 2 3 4

The Misery of Dr. O The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism The scientist Dr. O has collected a number of data points that support a new theory. But some of these observations are in conflict. Naturally, Dr. O wants to know the minimum set of points that explain the inconsistencies.

The Misery of Dr. O The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism We model data points by dots and conflics by lines.

The Misery of Dr. O The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism We model data points by dots and conflics by lines. This is VERTEX COVER!

The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism The Perspective of Complexity Theories The traditional View: Forget it! VERTEX COVER is NPC. But my data set is rather small 40 or 50 data points... The parameterized View: The best known algorithm has O(kn + (4/3) k k 2 ). This is a good practical algorithm for k 70.

The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism The Perspective of Complexity Theories The traditional View: Forget it! VERTEX COVER is NPC. But my data set is rather small 40 or 50 data points... The parameterized View: The best known algorithm has O(kn + (4/3) k k 2 ). This is a good practical algorithm for k 70.

The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism The Perspective of Complexity Theories The traditional View: Forget it! VERTEX COVER is NPC. But my data set is rather small 40 or 50 data points... The parameterized View: The best known algorithm has O(kn + (4/3) k k 2 ). This is a good practical algorithm for k 70.

The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism Classical Complexity Theory meets with Criticism NP-complete Problems: NPC suggests that exhaustive search is the only approach. NPC discourages the investment of effort. In practice, the size of most instances is naturally bounded. Polynomial Problems: Is O(x 100 ) really practical? Are there algorithms with O(x n ) for n > 4?

The Misery of Dr. O The Perspective of Complexity Theories Classical Complexity Theory meets with Criticism Classical Complexity Theory meets with Criticism NP-complete Problems: NPC suggests that exhaustive search is the only approach. NPC discourages the investment of effort. In practice, the size of most instances is naturally bounded. Polynomial Problems: Is O(x 100 ) really practical? Are there algorithms with O(x n ) for n > 4?

Outline Introduction & Motivation Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice 1 Introduction & Motivation 2 3 4

Setup of Parameterized Complexity Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Problem input: (x, k) Σ N k is called parameter Parameterized language: Yes instances L Σ N For a fixed k, we denote L k the k-th slice of L: L k = {(x, k) : (x, k) L}

Setup of Parameterized Complexity Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Problem input: (x, k) Σ N k is called parameter Parameterized language: Yes instances L Σ N For a fixed k, we denote L k the k-th slice of L: L k = {(x, k) : (x, k) L}

Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Examples of Parameterized Problems Some problems belong to both theories. Example: VERTEX COVER Some problems have a parameterized counterpart: Example: WEIGHTED CNF SAT Instance: Propositional formula X in CNF Parameter: k Question: Does X have a satifying weight k assignment? Other problems only exist in one of the two worlds.

Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Examples of Parameterized Problems Some problems belong to both theories. Example: VERTEX COVER Some problems have a parameterized counterpart: Example: WEIGHTED CNF SAT Instance: Propositional formula X in CNF Parameter: k Question: Does X have a satifying weight k assignment? Other problems only exist in one of the two worlds.

Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Examples of Parameterized Problems Some problems belong to both theories. Example: VERTEX COVER Some problems have a parameterized counterpart: Example: WEIGHTED CNF SAT Instance: Propositional formula X in CNF Parameter: k Question: Does X have a satifying weight k assignment? Other problems only exist in one of the two worlds.

Fixed Parameter Tractability I Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice We are interested in languages that are tractable by slice: Definition (FPT = Fixed Parameter Tractability) A parameterized problem L Σ N is fixed parameter tractable if there is an algorithm that correctly decides, for input (x, k) Σ N whether (x, k) L in time f (k) x α, where α is constant and f is an arbitrary function. The relation between good and bad part is defined to be multiplicative. A fundamental property of FPT is that the definition is unchanged if we replace it by f (k) + x α. VERTEX COVER FPT

Fixed Parameter Tractability I Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice We are interested in languages that are tractable by slice: Definition (FPT = Fixed Parameter Tractability) A parameterized problem L Σ N is fixed parameter tractable if there is an algorithm that correctly decides, for input (x, k) Σ N whether (x, k) L in time f (k) x α, where α is constant and f is an arbitrary function. The relation between good and bad part is defined to be multiplicative. A fundamental property of FPT is that the definition is unchanged if we replace it by f (k) + x α. VERTEX COVER FPT

Fixed Parameter Tractability II Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Definition Let A be a parameterized problem. a) We say that A is uniformly fixed-parameter tractable if there is an algorithm Φ, a constant c, and an arbitrary function f : N N such that the running time of Φ(x, k) is at most f (k) x c, (x, k) A iff Φ(x, k) = 1. b) We say that A is strongly uniformly fixed-parameter tractable if A is uniformly fixed-parameter tractable via some Φ and f such that f is recursive. c) We say that A is nonuniformly fixed-parameter tractable if there is a constant c, a function f : N N and a collection of procedures {Φ k : k N} such that for each k the running time of Φ k is at most f (k) x c and (x, k) A iff Φ k (x, k) = 1.

Fixed Parameter Tractability II Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Definition Let A be a parameterized problem. a) We say that A is uniformly fixed-parameter tractable if there is an algorithm Φ, a constant c, and an arbitrary function f : N N such that the running time of Φ(x, k) is at most f (k) x c, (x, k) A iff Φ(x, k) = 1. b) We say that A is strongly uniformly fixed-parameter tractable if A is uniformly fixed-parameter tractable via some Φ and f such that f is recursive. c) We say that A is nonuniformly fixed-parameter tractable if there is a constant c, a function f : N N and a collection of procedures {Φ k : k N} such that for each k the running time of Φ k is at most f (k) x c and (x, k) A iff Φ k (x, k) = 1.

Fixed Parameter Tractability II Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Definition Let A be a parameterized problem. a) We say that A is uniformly fixed-parameter tractable if there is an algorithm Φ, a constant c, and an arbitrary function f : N N such that the running time of Φ(x, k) is at most f (k) x c, (x, k) A iff Φ(x, k) = 1. b) We say that A is strongly uniformly fixed-parameter tractable if A is uniformly fixed-parameter tractable via some Φ and f such that f is recursive. c) We say that A is nonuniformly fixed-parameter tractable if there is a constant c, a function f : N N and a collection of procedures {Φ k : k N} such that for each k the running time of Φ k is at most f (k) x c and (x, k) A iff Φ k (x, k) = 1.

How Parameters arise in Practice Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Natural Parameters: Frequent in graph theory: Instance: A graph G and a positive integer k Parameter: k Question: Is ω(g) k? ω(g) is a width metric, i.e. Treewidth, Cutwidth,... Implicit Parameters: Frequent in formula problems: Instance: A database d and a query φ. Parameter: φ Question: Is the query relation defined by φ nonempty? Engineering Parameters: Key length in cryptology. Approximation Parameters: Related to the ɛ.

How Parameters arise in Practice Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Natural Parameters: Frequent in graph theory: Instance: A graph G and a positive integer k Parameter: k Question: Is ω(g) k? ω(g) is a width metric, i.e. Treewidth, Cutwidth,... Implicit Parameters: Frequent in formula problems: Instance: A database d and a query φ. Parameter: φ Question: Is the query relation defined by φ nonempty? Engineering Parameters: Key length in cryptology. Approximation Parameters: Related to the ɛ.

How Parameters arise in Practice Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Natural Parameters: Frequent in graph theory: Instance: A graph G and a positive integer k Parameter: k Question: Is ω(g) k? ω(g) is a width metric, i.e. Treewidth, Cutwidth,... Implicit Parameters: Frequent in formula problems: Instance: A database d and a query φ. Parameter: φ Question: Is the query relation defined by φ nonempty? Engineering Parameters: Key length in cryptology. Approximation Parameters: Related to the ɛ.

How Parameters arise in Practice Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice Natural Parameters: Frequent in graph theory: Instance: A graph G and a positive integer k Parameter: k Question: Is ω(g) k? ω(g) is a width metric, i.e. Treewidth, Cutwidth,... Implicit Parameters: Frequent in formula problems: Instance: A database d and a query φ. Parameter: φ Question: Is the query relation defined by φ nonempty? Engineering Parameters: Key length in cryptology. Approximation Parameters: Related to the ɛ.

Which k are reasonable? Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice The are currently no theorems that indicate limits on what we might reasonably expect to achive in terms of practical parameter ranges for FPT problems. However, the goodess of a FPT algorithm can be measured by the largest value of k for which f (k) is less than some universal speed constant U. For U = 10 20, we call this value number of Klams that the algorithm is worth.

Which k are reasonable? Setup of Parameterized Complexity Examples of Parameterized Problems Fixed Parameter Tractability How Parameters arise in Practice The are currently no theorems that indicate limits on what we might reasonably expect to achive in terms of practical parameter ranges for FPT problems. However, the goodess of a FPT algorithm can be measured by the largest value of k for which f (k) is less than some universal speed constant U. For U = 10 20, we call this value number of Klams that the algorithm is worth.

Outline Introduction & Motivation Improving Classical Intractability Provable Intractability 1 Introduction & Motivation 2 3 4

Improving Classical Intractability Improving Classical Intractability Provable Intractability Barometer of Intractability: FPT W [1] W [2] W [3]... The W-Hierarchy replaces NPC of classical theory. The higher a problem is located in the W-hierarchy, the more unlike it is to be in FPT. How can we find such classes? We need a complete problem for all W[i]!

Improving Classical Intractability Improving Classical Intractability Provable Intractability Barometer of Intractability: FPT W [1] W [2] W [3]... The W-Hierarchy replaces NPC of classical theory. The higher a problem is located in the W-hierarchy, the more unlike it is to be in FPT. How can we find such classes? We need a complete problem for all W[i]!

Parameterized Reductions Improving Classical Intractability Provable Intractability Definition A parameterized problem L reduces to a parameterized problem L if we can transform an instance (x, k) of L into an instance (x, g(k)) of L in time f (k) x c (f and g are arbitrary computable functions), such that (x, k) is a yes-instance of L if and only if (x, g(k)) is a yes-instance of L.

Improving Classical Intractability Provable Intractability Classical Reductions vs. Parameterized Reductions Are classical poly-reductions also parameterized reductions? CNF IP 2 WEIGHTED CNF WEIGHTED IP 2. CNF 3SAT WEIGHTED CNF WEIGHTED 3SAT. ( Moreover, it is unknown if such a reduction exists.) In general, classical reductions do not have enough structure to induce parameterized reductions.

In Search of Complete Problems Improving Classical Intractability Provable Intractability Classical Completeness: SAT NPC We are looking for a similar theorem for every W[i]. Question: What makes satisfiability difficult? Definition A propositional formula X is called t-normalized if X is of the form conjunction-of-disjunction-... of literals with t alternations. 2-normalized formula corresponds to CNF We belief that SAT for t-normalized formulae is strictly easier than for (t+1)-normalized formulae.

In Search of Complete Problems Improving Classical Intractability Provable Intractability Classical Completeness: SAT NPC We are looking for a similar theorem for every W[i]. Question: What makes satisfiability difficult? Definition A propositional formula X is called t-normalized if X is of the form conjunction-of-disjunction-... of literals with t alternations. 2-normalized formula corresponds to CNF We belief that SAT for t-normalized formulae is strictly easier than for (t+1)-normalized formulae.

Some Completeness Results Improving Classical Intractability Provable Intractability Proposition* t 1 WEIGHTED t-normalized SAT is complete for W[t]. * In reality, the W-classes are defined by use of boolean decision circuits and this proposition rises to a theorem. Theorem (Complexity Barometer) FPT W [1] W [2] W [3]... VERTEX COVER FPT INDEPENDENT SET & CLIQUE are complete for W [1]. Amazing! They are equivalent in classical complexity theory.

Some Completeness Results Improving Classical Intractability Provable Intractability Proposition* t 1 WEIGHTED t-normalized SAT is complete for W[t]. * In reality, the W-classes are defined by use of boolean decision circuits and this proposition rises to a theorem. Theorem (Complexity Barometer) FPT W [1] W [2] W [3]... VERTEX COVER FPT INDEPENDENT SET & CLIQUE are complete for W [1]. Amazing! They are equivalent in classical complexity theory.

Beyond W [t]-completeness Improving Classical Intractability Provable Intractability If we do not impose any bound on the depth of the propositional formula, we arrive at classes hard for t W [t]. WEIGHTED SAT Instance: A boolean formula X. Parameter: k Question: Does X have a weight k satisfying assignment? WEIGHTED CIRCUIT SAT Instance: A decision circuit C. Parameter: k Question: Does C have a weight k satisfying assignment?

Beyond W [t]-completeness Improving Classical Intractability Provable Intractability If we do not impose any bound on the depth of the propositional formula, we arrive at classes hard for t W [t]. WEIGHTED SAT Instance: A boolean formula X. Parameter: k Question: Does X have a weight k satisfying assignment? WEIGHTED CIRCUIT SAT Instance: A decision circuit C. Parameter: k Question: Does C have a weight k satisfying assignment?

Beyond W [t]-completeness Improving Classical Intractability Provable Intractability W [SAT ]: problems reducible to WEIGHTED SAT. W [P]: problems reducible to WEIGHTED CIRCUIT SAT. Theorem FPT W [1] W [2] W [3]... W [SAT ] W [P]. The containment W [SAT ] W [P] seems to be proper but there is no proof for this assumption.

Beyond W [t]-completeness Improving Classical Intractability Provable Intractability W [SAT ]: problems reducible to WEIGHTED SAT. W [P]: problems reducible to WEIGHTED CIRCUIT SAT. Theorem FPT W [1] W [2] W [3]... W [SAT ] W [P]. The containment W [SAT ] W [P] seems to be proper but there is no proof for this assumption.

Beyond W [t]-completeness Improving Classical Intractability Provable Intractability W [SAT ]: problems reducible to WEIGHTED SAT. W [P]: problems reducible to WEIGHTED CIRCUIT SAT. Theorem FPT W [1] W [2] W [3]... W [SAT ] W [P]. The containment W [SAT ] W [P] seems to be proper but there is no proof for this assumption.

Provable Intractability Improving Classical Intractability Provable Intractability Definition (X Classes) Let C be a classical complexity class. We say that a parameterized language L is in XC iff L k C for all k. For instance: the class XP consists of those languages that are slicewise polynomial. Theorem (Complexity Barometer) FPT XP FPT W [1] W [2]... W [SAT ] W [P] XP The connection of the two last theorems shows that at least one inclusion in the W-hierarchy must be strict.

Provable Intractability Improving Classical Intractability Provable Intractability Definition (X Classes) Let C be a classical complexity class. We say that a parameterized language L is in XC iff L k C for all k. For instance: the class XP consists of those languages that are slicewise polynomial. Theorem (Complexity Barometer) FPT XP FPT W [1] W [2]... W [SAT ] W [P] XP The connection of the two last theorems shows that at least one inclusion in the W-hierarchy must be strict.

Outline Introduction & Motivation 1 Introduction & Motivation 2 3 4

Introduction & Motivation Parameterized complexity is surprisingly orthogonal to classical complexity theory. There are no systematic or trivial correlations between the two complexities of a given problem. The W-hierarchy can be regarded as a complexity barometer that measures how close a problem comes to a successful deal with the devil. (Downey & Fellows)