Docsity

NP-Intermediate Problems: Dichotomies and Ladner's Theorem, Slides of Advanced Computational Complexity

Partial preview of the text

Download NP-Intermediate Problems: Dichotomies and Ladner's Theorem and more Slides Advanced Computational Complexity in PDF only on Docsity!

Lecture 14: Dichotomies and Intermediate

Problems

Matthew Johnson

[email protected]

Interesting questions

Do complexity classes contain only easy and hard problems? Can we classify any problem in NP as polynomial or NP -complete? Which of these diagrams corresponds to a true picture of NP?

Three old problems

Obviously, a proof that some problem is NP -intermediate would imply that P 6 = NP , so we are not going to prove that any problems are NP -intermediate. In their 1979 textbook, Garey and Johnson highlighted three problems in NP whose complexity was undecided (and so, who were possible candidates): — LINEAR PROGRAMMING — PRIMES/COMPOSITE — GRAPH ISOMORPHISM Let’s look at each of these problems...

LINEAR PROGRAMMING

LINEAR PROGRAMMING (LP)

Instance : Integer vectors Vi = (v 1 i,... , v (^) ni), 1 ≤ i ≤ m, D = (d 1 ,... , dn), C = (c 1 ,... , cn), and an integer B Question : Is there a rational vector X = (x 1 ,... , xn) such that Vi · X ≤ di for all 1 ≤ i ≤ m and such that C · X ≥ B?

Essentially, this is a problem of maximizing a linear function subject to linear constraints. In 1979, Leonid Khachiyan proved that this problem is in P. LP-based algorithms are now among most popular ways to solve algorithmic problems. Note that a similar problem INTEGER PROGRAMMING where X is required to be an integer vector is NP -complete.

GRAPH ISOMORPHISM

GRAPH ISOMORPHISM (GI)

Instance : Two undirected graphs G = (VG, EG) and H = (VH , EH ) Question : Are G and H isomorphic, i.e., is there a bijection f : VG → VH such that (u, v ) ∈ EG iff (f (u), f (g)) ∈ EH?

The status of this problem remains largely unknown. We know every problem in NL is logspace reducible to GI if GI is NP -complete then this would have a lot of surprising consequences (such as collapse of polynomial hierarchy — see later) GI is currently the main candidate for NP -intermediate. Note that a similar problem SUBGRAPH ISOMORPHISM where f is required only to be injective is NP -complete.

Dichotomy problem

In view of Ladner’s theorem, it is natural to look for subclasses of NP avoiding the “weird” intermediate complexity. Dichotomy Problem Find a large(st) natural subclass of NP in which each problem is either in P or NP -complete.

In 1998, Feder and Vardi suggested such a class, MMSNP, obtained from NP by imposing several logical restrictions. They showed that removing any of these restrictions results in a class containing equivalent problems for any problem in NP (so no dichotomy) each problem in MMSNP is polynomial-time equivalent to a so-called constraint satisfaction problem (CSP)

Formal definition

A constraint language Γ is simply a finite set of finitary relations over a finite set D. CONSTRAINT SATISFACTION PROBLEM CSP(Γ) Instance : a pair (V , C) where V is a finite set of variables, C is a set of constraints {C 1 ,... , Cq } where — each constraint Ci is a pair (si , %i ) with I (^) si - a list of variables of length mi (constraint scope) /∗ specifies the constrained variables ∗/ I (^) %i - an mi -ary relation from Γ (constraint relation) /∗ specifies the allowed combinations of values for si ∗/ Question : is there an assignment f : V → D satisfying all constraints in C, i.e., such that f (si ) ∈ %i for all i.

Example: 2-SATISFIABILITY

Consider Γ consisting of three binary relations over { 0 , 1 }: % 0 = {( 0 , 1 ), ( 1 , 0 ), ( 1 , 1 )} – tuples satisfying (x ∨ y) % 1 = {( 0 , 0 ), ( 1 , 0 ), ( 1 , 1 )} – tuples satisfying (x ∨ ¬y) % 2 = {( 0 , 0 ), ( 0 , 1 ), ( 1 , 0 )} – tuples satisfying (¬x ∨ ¬y) Thus this problem CSP(Γ) is precisely 2-SAT. Clearly, for any k, k -SAT can be defined as a CSP for a suitable Γ.

Example: LINEAR EQUATIONS

Consider a system of linear equations mod 2 such as   

x + y = 1 x + z = 0 x + y + z = 0

each individual equation specifies a constraint on the variables it contains. Hence the problem of solving linear equations with at most k variables is the problem CSP(Γ) where Γ consists of relations definable by such equations. (For example, x + y = 1 corresponds to relation {( 0 , 1 ), ( 1 , 0 )})

Dichotomy for Boolean CSP

Theorem (Schaefer’78) Let Γ be a finite set of relations over { 0 , 1 }. Then CSP(Γ) is in P iff each relation in Γ satisfies one (and the same) of the following conditions:

  1. contains the tuple ( 0 ,... , 0 ), trivial SAT
  2. contains the tuple ( 1 ,... , 1 ), trivial SAT
  3. equivalent to a Horn clause (≤ 1 unneg. lit.), HORN-SAT
  4. equivalent to a dual Horn clause (≤ 1 neg. lit.), dual HORN-SAT
  5. equivalent to a 2-CNF, 2-SAT
  6. equivalent to a linear equation mod 2. Linear Eq’s Otherwise CSP(Γ) is NP -complete.