



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















1
2
Proof from definition that CSAT is NP - complete (Cook-Levin Theorem) CSAT P 3SAT so 3SAT is NP - complete
4
This means that computation trees are binary:
0 1 2 3
a|bR bR a|bR (^) • L
0ababa a0baba ab0aba ab1aba aba0ba abab0a abab1a
aba2ba crash ababa0•
crash
ababa2• abab 3 a• Docsity.com
5
Given a state q and tape-symbol a in a NTM, d(q,a ) is a set of possible state-symbol-direction outputs. Order this set and let the k ’th possibility be denoted by: where q’, a’ and D are the transition’s output. When less than k possibilities were defined, just add transitions that go directly to the reject state and write blank: Q: What are below?
δ (^) k ( q , a ) ( q ', a ', D )
0 1 2 3
bR a|bR (^) • L
δ (^) k ( q , a ) ( q reject ,,L) δ 1 ( 0 , b ), δ 2 ( 0 , b ) andδ 2 ( 0 , a ) a|bR
7
Let’s give some handy boolean expression in conjunctive normal form:
that exactly one of its arguments is true:
Here stands for the conjunction over
Q: Why is each a 2-clause?
n i j i j
n i j
n i x x x x x
U x x x i x
, 1 ,
1 2
1 2 ( ) ( )
( , , , ) "! , true"
n
i , j 1
( xi xj ) Docsity.com
8
A: and are logically equivalent.
number of variables?
( xi xj ) ( xi xj )
10
Then there is an explicit cnf formula f of
polynomial, f has polynomial length in
reduces to CSAT in polynomial time. Thus CSAT is NP -hard. Finally, as CSAT is in NP , CSAT is NP -complete.
11
The most confusing thing about the proof of the Cook-Levin Theorem are all the indices. We use the following conventions:
Q: How many choices for each index?
13
symbols on the tape cells at each step in computation
each step in computation
14
choice at each step in computation
16
Ending configuration should accept:
17
A. Machine is in a unique state:
B. Each tape cell has a unique symbol:
( )
0
f n
t
( )
0
( )
1
f n
t
f n
i
19
F. If already rejected, reject at t+1:
G. Cells which aren’t being read remain
clause?
G
( ) 1
0
( )
1
f n
t
f n
i a
( ) 1
0
f n
t
20