Documente Academic
Documente Profesional
Documente Cultură
Zhiyuan Zhan
S
hool of Ele
tri
al Engineering and Computer S
ien
e
Washington State University
zzhanee
s.wsu.edu
f g, f
xi1 ; ai ; bi xi2 ; bi ;
i g, f
xi3 ;
i ; di g
^ ^ ^ has
Suppose the original
1
2 :::
m n variables and k
lauses, our transforma-
tion will produ
e an instan
e of n +4k variables and 3k
lauses. This transformation
is obivously
arried out in polynomial time.
2 Zhiyuan Zhan
Then, we need to prove that our transformed instan
e will have a solution (truth
assignment) under 1in3SAT
ondition i the original instan
e does under 3SAT
ondition.
)
(= ) Firstly, suppose our transformed instan
e has a solution, whi
h means ex-
a
tly one literal per
lause is set to true, we want to show that the original instan
e
will have a solution, too.
Suppose in the original instan
e
lause
i , xi1 , xi2 , xi3 are all set to false. This
means that in the se
ond
lause we produ
e, either bi or
i (but not both) must be
true, otherwise it's a
ontradi
tion to exa
tly one literal has to be true. So either in
the rst or the third transformed
lause, there will be at least two variables set to
true (either xi1 and bi or xi3 and
i , but not both). This is a
ontradi
tion to our
1in3SAT
ondition. So in the original
lause
i , at least one of three literals has to
be true. Therefore the original instan
e must have a solution under 3SAT
ondition.
( ^ ^ ^
( =) Se
ondly, suppose the original instan
e
1
2 :::
m has a solution, there
must be at least one literal set to be true in ea
h
lause.
Suppose in
lause
i ,
(a) xi2 is set to true, we
an set bi and
i to false in the se
ond transformed
lause
and set ai = xi1 and di = xi3 .
(b) xi2 is set to false and both xi1 and xi3 are set to true, we
an set ai to true, bi
to false,
i to true and di to false.
(
) only xi1 is set to true, we
an set bi to true, and ai ,
i and di false.
(d) only xi3 is set to true, we
an set di to true, and ai , bi and
i false.
In all these
ases, the three transformed
lauses
orresponding to
i will have ex-
a
tly one literal set to true in ea
h
lause. Therefore, the transformed instan
e will
have a solution under 1in3SAT
ondition.
Now we have that 1in3SAT is in NP, and 3SAT
ould be redu
ed to 1in3SAT via a
mapping whi
h
learly
osts polynomial time. Hen
e 1in3SAT is NP-
omplete.
End of Proof