views:

23

answers:

0

If you change the 3-cnf-sat problem as follows:
For each ci, ci = -xi1 OR -xi2 OR xi3 meaning exactly one of the variables appears without a negation.
You are also given values (0 or 1) to some (or all) of the x's.
You should be able to solve the problem (finding values of the x's that satisfy the problem or prove that it is unsatisfiable) in polynomial time.

  1. What is a polynomial running time algorithm that solves this problem?
  2. Prove that it runs in polynomial time.

hint: show that ci = -xi1 OR -xi2 OR xi3 is equal to c = (xi1 AND -xi2) -> xi3