An introduction to Parameterized Complexity Theory

Similar documents
Introduction to Advanced Results

Machine Characterizations of the Classes of the W-Hierarchy

Polynomial time reduction and NP-completeness. Exploring some time complexity limits of polynomial time algorithmic solutions

CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT

NP Complete Problems. COMP 215 Lecture 20

Compendium of Parameterized Problems at Higher Levels of the Polynomial Hierarchy

Lecture 16: Time Complexity and P vs NP

On the Space Complexity of Parameterized Problems

CS154, Lecture 13: P vs NP

CS154, Lecture 13: P vs NP

Algorithmic Model Theory SS 2016

CSCE 551 Final Exam, Spring 2004 Answer Key

Advanced Topics in Theoretical Computer Science

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

1 Non-deterministic Turing Machine

Notes on Complexity Theory Last updated: October, Lecture 6

Scribe Notes for Parameterized Complexity of Problems in Coalition Resource Games

Lecture 8: Complete Problems for Other Complexity Classes

Some hard families of parameterised counting problems

CSE 135: Introduction to Theory of Computation NP-completeness

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

CSCI 2200 Foundations of Computer Science Spring 2018 Quiz 3 (May 2, 2018) SOLUTIONS

Lecture 2 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

A From almost optimal algorithms to logics for complexity classes via listings and a halting problem

NP Completeness. CS 374: Algorithms & Models of Computation, Spring Lecture 23. November 19, 2015

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Review of unsolvability

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

Finish K-Complexity, Start Time Complexity

Model Checking Lower Bounds for Simple Graphs. Michael Lampis KTH Royal Institute of Technology

NP and NP Completeness

1 PSPACE-Completeness

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Time to learn about NP-completeness!

3130CIT Theory of Computation

Detecting Backdoor Sets with Respect to Horn and Binary Clauses

Computational Complexity and Intractability: An Introduction to the Theory of NP. Chapter 9

1 Fixed-Parameter Tractability

CS Lecture 28 P, NP, and NP-Completeness. Fall 2008

CSC 1700 Analysis of Algorithms: P and NP Problems

Fixed-parameter tractable reductions to SAT. Vienna University of Technology

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in

Parameterized model-checking problems

About the relationship between formal logic and complexity classes

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005

The parameterized complexity of counting problems

Chapter 7: Time Complexity

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

Ma/CS 117c Handout # 5 P vs. NP

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan August 30, Notes for Lecture 1

6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch

Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite

SAT, NP, NP-Completeness

The Cook-Levin Theorem

Umans Complexity Theory Lectures

Bounded variable logic, parameterized logarithmic space, and Savitch s theorem

2 P vs. NP and Diagonalization

NP-Completeness and Boolean Satisfiability

Computability and Complexity

i times p(p(... (p( n))...) = n ki.

Artificial Intelligence. 3 Problem Complexity. Prof. Dr. Jana Koehler Fall 2016 HSLU - JK

NP-problems continued

Lecture 7: Polynomial time hierarchy

Midterm II : Formal Languages, Automata, and Computability

ENEE 459E/CMSC 498R In-class exercise February 10, 2015

NP-Complete Reductions 1

Design and Analysis of Algorithms

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35.

CS256 Applied Theory of Computation

On the Expressive Power of Monadic Least Fixed Point Logic

Show that the following problems are NP-complete

The Complexity of Definability by Open First-Order Formulas

Formal definition of P

Lecture 7: The Polynomial-Time Hierarchy. 1 Nondeterministic Space is Closed under Complement

CS21 Decidability and Tractability

Algorithmic Meta-Theorems

Definability of Recursive Predicates in the Induced Subgraph Order

Finite Model Theory and Descriptive Complexity

CSCI3390-Lecture 16: NP-completeness

Complexity Classes V. More PCPs. Eric Rachlin

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

Computability and Complexity Theory: An Introduction

Exam Computability and Complexity

Computability and Complexity CISC462, Fall 2018, Space complexity 1

Essential facts about NP-completeness:

P = k T IME(n k ) Now, do all decidable languages belong to P? Let s consider a couple of languages:

About the impossibility to prove P NP or P = NP and the pseudo-randomness in NP

Lecture 17: Cook-Levin Theorem, NP-Complete Problems

The Polynomial Hierarchy

Lecture 59 : Instance Compression and Succinct PCP s for NP

Kernelization Lower Bounds: A Brief History

Introduction to Model Theory

CLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS

: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall October 2007

CS5371 Theory of Computation. Lecture 19: Complexity IV (More on NP, NP-Complete)

Non-Deterministic Time

Transcription:

An introduction to Parameterized Complexity Theory May 15, 2012

A motivation to parametrize Definitions Standard Complexity Theory does not distinguish between the distinct parts of the input. It categorizes problems in terms of the length of the complete input. To know if a PL sentence is satisfiable is said to be a hard problem. And it is, but: What if the sentence has very few variables?

Definitions A motivation to parametrize (contd.) Consider the problem of knowing if a graph G is isomorphic to a subgraph of a graph H. This problem is usually defined as: Here the input is (G,H). {(G,H) G H for some H H} What if the size of G is considerably smaller than H?

Basic notions Introduction Definitions From now on we assume Σ to be a fixed alphabet. Definition A parametrization of Σ is a polynomial-time computable function κ : Σ N. Definition A parameterized language is a pair (L,κ), where L Σ and κ is a parametrization.

Basic notions (contd.) Definitions Definition Let κ be a parametrization. A Turing Machine M over Σ is said to be fixed-parameter tractable with respect to κ (κ-fpt) if there is a polynomial p and a computable function f : N N such that the running time of M on input x is at most f(κ(x)) p( x ). Definition A parameterized language (L, κ) is said to be fixed-parameter tractable if there is a κ-fpt Turing Machine that decides L. The class of all fixed-parameter tractable languages is denoted by FPT.

Example Introduction Examples Slices Let κ : Σ N be defined as: { var(x) if x represents a LP sentence κ(x) = 1 otherwise As κ is polynomial time computable it is clear that it is a parametrization. Then (SAT, κ) is a parameterized language. Is (SAT, κ) fixed-parameter tractable?

Are this notions interesting? Examples Slices Theorem For every decidable language L, there is a parametrization κ for which (L,κ) is fpt. Proof: Take κ(x) = x Why is fixed-parameter tractability an interesting notion? - Because the parametrization is considered as part of the problem.

Parameterized languages slices Examples Slices Definition Let (L,κ) be a parameterized language. The l th slice of (L,κ) is the language {x x L and κ(x) = l} Theorem If a parameterized language is fpt then for every n N its n th slice is in Ptime.

Example Introduction Examples Slices Define k-colorability as the language {(G,k) G is a k-colorable graph} and the parametrization { k if x = (G,k) for some graph G and k N κ(x) = 1 otherwise. Define p-colorability as (k-colorability, κ) Exercise Prove that if p-colorability is in FPT then P=NP.

Reductions Introduction Reductions FPT and Ptime para-np and XP Definition Let (L,κ) and (L,κ ) be parameterized languages. An fpt reduction from (L,κ) to (L,κ ) is a mapping R : Σ Σ such that: 1 For all x Σ we have (x L R(x) L ) 2 R is computable by an κ-fpt Turing Machine. That is, there is a computable function f and a polynomial p such that R(x) is computable in time f(κ(x)) p( x ). 3 There is a computable function g : N N such that κ (R(x)) g(κ(x)) for all x Σ.

Reductions (contd.) Reductions FPT and Ptime para-np and XP Why is the third condition important? (There is a computable function g : N N such that κ (R(x)) g(κ(x)) for all x Σ.) Let κ 1 : Σ N defined as κ 1 (x) = 1 for every x Σ. Let κ l : Σ N defined as κ l (x) = x for every x Σ. We would have a contradiction. Should (SAT,κ 1 ) be fpt-reducible to (SAT,κ l )? x = κ l (R(x)) g(κ 1 (x)) = g(1),

Reductions (contd.) Reductions FPT and Ptime para-np and XP Lemma FPT is closed under fpt reductions. Proof Let R be an fpt reduction from (L,κ) to (L,κ ) computable in time h(κ(x)) q( x ), with κ (R(x)) g(κ(x)). Let M be an κ -fpt-turing Machine deciding L in time f (κ (x)) p ( x ). We can assume f to be non-decreasing. Then L can be decided by computing R(x) = x and then deciding if x L by running M. This takes at most time h(κ(x)) q( x )+f (κ (x )) p ( x ) h(κ(x)) q( x )+f (g(κ(x))) p (h(κ(x)) q( x ))

Reductions (contd.) Reductions FPT and Ptime para-np and XP We write (L,κ) fpt (L,κ ) if there is an fpt reduction from (L,κ) to (L,κ ). Lemma For every parameterized language (L, κ) FPT, every nontrivial language L and every parametrization κ, it is the case that (L,κ) fpt (L,κ ). Example p-clique fpt p-independent-set. For both problems, an instance is a pair (G,k) and the parameter is k. { (G,k) if x = (G,k) R(x) = (K 1,2) otherwise

Reductions (contd.) Reductions FPT and Ptime para-np and XP Not every polynomial-time reduction is an fpt reduction. Moreover, polynomial-time (or logspace) reductions and fpt reductions are non comparable. Exercise Show that there are parameterized languages (L,κ) and (L,κ ) such that (L,κ) < fpt (L,κ ) and L < Ptime L

para-np Introduction Reductions FPT and Ptime para-np and XP FPT can be seen as the analogue to Ptime for parameterized languages. Now we introduce non-determinism. Definition Given a parametrization κ, a non-deterministic Turing Machine M is said to be κ-fpt if there is a computable function f and a polynomial p such that for every x L(M), there is an accepting run of M with input x that takes time at most Definition (para-np) f(κ(x)) p( x ) para-np is the class of parameterized languages (L, κ) for which there is a non-deterministic κ-fpt Turing Machine deciding L.

para-np(contd.) Reductions FPT and Ptime para-np and XP Recall the parameterized language p-colorability. This language is clearly in para-np as k Colorability is in NP. But we already proved p-colorability FPT P = NP. It can be shown that FPT = para-np Ptime = NP

XP Introduction Reductions FPT and Ptime para-np and XP Definition XP nu (non-uniform XP) is the class of all parameterized problems with every slice in Ptime. Lemma If Ptime NP then para-np XP nu. Proof If para-np= XP nu then p Colorability XP nu. Hence 3 Colorability Ptime.

XP (contd.) Introduction Reductions FPT and Ptime para-np and XP Why is this class called non-uniform? Consider a non-decidable language L {1}. Then the parameterized language (L,κ l ) (where κ l (x) = x ) is in XP nu. Definition A parameterized problem (L,κ) belongs to XP if there is a computable function f : N N and a Turing Machine M that on input x it decides if x L in at most setps. x f(κ(x)) +f(κ(x)) Why is this a uniform notion?

Reductions FPT and Ptime para-np and XP Complete problems for XP and para-np Theorem (CNF-SAT,κ) where κ(ϕ) is the maximum amount of literals in a clause of ϕ, is para-np-complete. Definition p-exp-dtm-halt is the parametrized language containing all tuples ((M,n,k),κ) where κ((m,n,k)) = k, M is a turing machine, n is a natural number in unary notation, k is a natural number, and M accepts the empty string in at most n k steps. Theorem p-exp-dtm-halt is XP-complete.

What we have so far Reductions FPT and Ptime para-np and XP Relations between the complexity classes we have so far are illustrated by the next figure: para-np FPT XP

New complexity classes Logics Some complete problems Containments Some natural problems are not captured by the complexity classes defined so far. Basically FPT is to strict and para-np and XP are to permissive. Nobody has been able to show fpt-completeness for any of these three classes for the problem p-clique. Moreover, people believe that the above problem is not fixed-parameter tractable. A new family of complexity classes is born.

Logics Some complete problems Containments Next we define the W hierarchy. To this end, we introduce some notions in logics. Definition Π t (Σ t respectively) is the set of all formulae ϕ such that ϕ = Q 1 x 1 Q 2 x 2 Q t x t ψ(x 1,x 2,...,x t ) where Q i = if i is odd (respectively even) and Q i = if i is even (respectively odd) and ψ is a quantifier-free sentence.

(contd.) Logics Some complete problems Containments Let ϕ(x) be a first-order formula with a free relation variable X of arity s. Define L(ϕ(X)) as the language of all pairs (A,k) where A is a first-order structure for which there is a relation S dom(a) s of cardinality k such that A ϕ(s). Definition Given a first-order formula ϕ(x) with a free relation variable X, the parameterized problem p-wd ϕ is defined as (L(ϕ(X)),κ) where κ((a,k)) = k. Definition For a class Φ of first-order formulas with a free relation variable, p-wd-φ denotes the set ϕ Φ {p-wd ϕ}

(contd.) Logics Some complete problems Containments Definition Π t (X) is the set of formulas of the form ϕ = Q 1 x 1 Q 2 x 2 Q t x t ψ(x 1,x 2,...,x t ) where Q i is defined as in Π t and ψ mentions the additional relation variable X. Definition (W hierarchy) Let t N. W[t] is the set of problems fpt-reducibles to some problem in p-wd-π t (X). This is denoted by [p-wd-π t (X)] fpt

W[1] and p-clique Logics Some complete problems Containments It is clear that the problem p-clique is in XP. Can we know that it is not in FPT? Not certainly, but it is believed it is not: Theorem p-clique is fpt-complete for W[1]. Exercise Show that p-clique W[1]. ϕ(x) = x y(x(x) X(y) x y E(X,y))

W[2] and p-dominating-set Logics Some complete problems Containments A natural complete problem for W[2] is p-dominating-set. Exercise Show that p-dominating-set W[2]. ϕ(x) = x y( X(x) (E(x,y) X(y)))

Introduction Known classes containments Logics Some complete problems Containments The known containments for the already seen classes is illustrated by the next figure: para-np W[P] W[2] W[1] FPT XP

Questions? 1 Introduction Definitions 2 Examples Slices 3 Reductions FPT and Ptime para-np and XP 4 Logics Some complete problems Containments