Reputation: 33
I wanted to solve the following problem about 3SAT . "TWICE-3SAT Input: how to show it is NP-hard and has more than one satisfiable assignments"
Upvotes: 3
Views: 737
Reputation: 45081
Reduction from 3SAT: take a 3SAT instance and add a dummy variable with a dummy clause, i.e. [original formula] AND (dummy OR not dummy OR dummy)
. The dummy will not affect the evaluated value of the formula whatever dummy's value is.
The resulting instance has twice as much satisfying assignments as the original one, because each original assignment generates two for the modified formula: one with dummy = true
and another with dummy = false
. So the resulting instance has at least 2 satisfying assignments iff the original one has at least one.
Upvotes: 3