This problem investigates resolution, a method for proving the unsatisfiability of cnf-formulas. Let = C 1

Question:

This problem investigates resolution, a method for proving the unsatisfiability of cnf-formulas. Let ‑ = C1 ∧ C2 ∧· · ·∧Cm be a formula in cnf, where the Ci are its clauses. Let C = {Ci| Ci is a clause of ϕ}. In a resolution step, we take two clauses Ca and Cb in C, which both have some variable x occurring positively in one of the clauses and negatively in the other. Thus, Ca = (x ∨ y1 ∨ y2 ∨ · · · ∨ yk) and Cb = (x ∨ z1 ∨ z2 ∨ · · · ∨ zl), where the yi and zi are literals. We form the new clause (y1 ∨ y2 ∨ · · · ∨ yk ∨ z1 ∨ z2 ∨ · · · ∨ zl) and remove repeated literals. Add this new clause to C. Repeat the resolution steps until no additional clauses can be obtained. If the empty clause ( ) is in C, then declare ϕ unsatisfiable. Say that resolution is sound if it never declares satisfiable formulas to be unsatisfiable. Say that resolution is complete if all unsatisfiable formulas are declared to be unsatisfiable.

a. Show that resolution is sound and complete.

b. Use part (a) to show that 2SAT ∈ P.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: