Docsity

PCP Theorem and MAX-SAT: Polynomial-Time Approximation and Complexity Classes, Study notes of Computer Science

Partial preview of the text

Download PCP Theorem and MAX-SAT: Polynomial-Time Approximation and Complexity Classes and more Study notes Computer Science in PDF only on Docsity!

CMPSCI 601: Recall From Last Time Lecture 22

exists P approx alg for

poly in n, 1/ ε

some but not all

all

no ε

APPROX

P

FPTAS (^) Knapsack

PTAS ETSP

Clique TSP

VertexCover MAX SAT^ ∆TSP

INAPPROX

CMPSCI 601: Interactive Proofs Lecture 22

random bits

finite control

x: read-only input

work tape

n

σ: Π: Proof

Merlin-Arthur games (MA) [Babai]

Decision problem:

; input string: 

Merlin  — Prover — chooses the polynomial-length string that Maximizes the chances of convincing Arthur that  is an element of

.

Arthur — Verifier — “computes” the Average value of his possible computations on

  . Arthur is a polynomial- time, probabilistic Turing machine.

Any decision problem

 NP has a deterministic, polynomial-

time verifier satisfying Definition 22.1.

By adding randomness to the verifier, we can greatly re-

strict its computational power and the number of bits of 

that it needs to look at, while still enabling it to accept all of NP.

We say that a verifier is 

  - restricted iff for

all inputs of size , and all proofs

^ ,^ uses at most

#  random bits and examines at most

#  bits

of its proof,

Let PCP 

#  be the set of boolean queries that are

accepted by 

#  -restricted verifiers.

Fact 22.2 (PCP Theorem) NP  PCP  

The proof of this theorem is pretty messy, certainly more than we can deal with here. But we can look at the appli- cations of the PCP Theorem to approximation problems.

MAX- -SAT: given a 3CNF formula, find a truth as- signment that maximizes the number of true clauses.

Proposition 22.3 MAX- -SAT has a polynomial-time  

 ^ approximation algorithm.

Proof: Be greedy, set each variable in turn to the better value.

You can do better – a random assignment gets 7/8 of the clauses.

Open for Years:  Assuming NP  P is there some  ,

(  (  s.t. MAX- -SAT has no PTIME  -approximation

algorithm?

CMPSCI 601: Alternation Lecture 22

The concept of a nondeterministic acceptor of a boolean query has a long and rich history, going back to various kinds of nondeterministic automata.

It is important to remember that these are fictitious ma- chines: we suspect that they cannot be built.

For  STRUCfin   a boolean query, define its com-

plement   STRUCfin   . Given a complexity

class,  , define the complementary class,

co-       

Example: SAT  NP ; SAT    co- NP

Open question: NP   co- NP

If one could really build an NP machine, then one could with a single gate to invert its answer also build a co- NP machine. From a very practical point of view, the

complexity of a problem  and its complement,  are

identical.

CMPSCI 601: Nondeterminism Lecture 22

s 2

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

1

t(n)

t(n)

Value ID  Value(LeftChild(ID))  Value(Right(Child(ID)

weak communication pattern; wasteful use of all these processors

CMPSCI 601: The Game Semantics Lecture 22

What does it mean for a string to be in the language of an alternating TM? We sometimes misleadingly say “the

ATM accepts  ” just as we might say “the NDTM accepts

 ”. But this isn’t really sensible, because we should not

talk about what an NDTM or ATM will do, only what it might do.

Language of an NDTM:  

  iff  might accept

Equivalently:  

  if a smart player, who controls

 ’s choices and wants  to accept, can make  accept.

Game Semantics of an ATM: There are two players, White who controls  in the existential states and wants  to accept, and Black who controls  in the universal

states and wants  to reject.  

  iff White can

force  to accept  given optimal play by each player.

This is equivalent to the definition of “acceptance” given on the last slide, but I find it much easier to understand.

CMPSCI 601: Index Tapes Lecture 22

From now on assume that our Turing machines have a random access read-only input. There is an index tape which can be written on and read like other tapes. When- ever the value , written in binary, appears on the index tape, the read head will automatically scan bit bit of the input.

workTape

read-only input w

n

h

q

1 2

s(n)

indexTape h

The Alternation Theorem has four parts.

We must simulate:

  1. A time-bounded DTM with a space-bounded ATM, using the circuit game ,
  2. A space-bounded DTM with a time-bounded ATM, using the Savitch game ,
  3. A space-bounded ATM with a time-bounded DTM, using the marking algorithm , and
  4. A time-bounded ATM with a space-bounded DTM, using exhaustive search of the game tree.

First, though, let’s see some examples of alternating ma- chines. I’ll include both “classical” and game-semantics descriptions of each machine.

Define the monotone, circuit value problem (MCVP) to be the subset of CVP in which no negation gates occur. It turns out that MCVP is still P-complete.

Proposition 22.9 MCVP is recognizable in ASPACE  .

Proof:   Let be a monotone boolean circuit. For  

, define “EVAL(  )”,

1. if (InputOn   ) then accept

2. if (InputOff   ) then reject

3. if (    ) then universally choose child  of 

4. if (  ^  ) then existentially choose child  of 

5. Return(EVAL(  ))

 simply calls EVAL(

). EVAL(  ) returns “ accept ” iff

gate  evaluates to one.

Space used for naming vertices 

  ^.

Definition 22.10 The quantified satisfiability problem (QSAT) is the set of true formulas of the following form:

For any boolean formula on variables  ,

 SAT    QSAT

 SAT    QSAT

Thus QSAT logically contains SAT and SAT.

Proposition 22.11 QSAT is recognizable in ATIME [n].

Proof: Construct an alternating machine  as follows.

To evaluate the sentence,

in an existential state,  writes down a boolean value for

  , in a universal state it writes a bit for   , and so on.

Next  must evaluate the quantifier-free boolean formula

 on these chosen values. For each “ ” in  ,  univer-

sally chooses which side to evaluate; for each “  ”, 

existentially chooses.

Thus  only has to read one of the chosen bits,  , and

accept iff it is true and occurs positively, or false and oc- curs negatively.

 runs in linear time.

 accepts

iff

is true.

Game Semantics: White picks values for the vari-

ables, Black for the  variables. White wins iff the quantifier-

free part evaluates to true.

Game Semantics for this version of Savitch’s Theorem:

White originally claims that the path from to  , of length

at most

 , exists in CompGraph  

. White ad-

vances this claim by naming the alleged middle vertex of the alleged path. Black picks either the first half or the second half of the path to challenge. The path whose ex- istence is disputed is then half the length. They continue, halving the length of the disputed path each time, until they dispute the existence of an edge. At this point the player with the correct claim about this edge wins.

If White’s path actually exists, White has a winning strat- egy that consists of always telling the truth. If White is wrong, however, either the first or second half of the al- leged path must fail to exist, and Black has a winning move.

ATIME %  DSPACE  :

Let  be an ATIME %  machine, input ,   .

CompGraph  

 has depth

 #^  and size



A deterministic Turing machine can systematically search this entire and-or graph using space

 ^ . This is

done, by keeping a string of length

    denoting that we are currently simulating step

of

 ’s computation having made choices        on all of

the existential and universal branches up until now. The rest of the simulation will report an answer as to whether

choices        will lead to acceptance. This is done as

follows:

If one of the following conditions holds:

1.     , or

  1. answer = “yes” and step

was existential, or

  1. answer = “no” and step

was universal,

then let     and report answer back to the

  step.

Otherwise, set     and continue. Note, that we do not

have to store intermediate IDs of the simulation because

the sequence               uniquely determines which

ID of  we go to next.