GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many satisfying assignments does the formula (x₁ ∨ x₂) ∧ (¬x₁ ∨ x₃) ∧ (¬x₂ ∨ ¬x₃) ∧ (x₂ ∨ x₄) ∧ (¬x₄ ∨ x₃) ∧ (x₁ ∨ ¬x₄) have over the four variables x₁–x₄?

  1. A. 1
  2. B. 3
  3. C. 2
  4. D. 4

Correct answer: C. 2

Enumerating all 16 assignments shows exactly two satisfy it: (x₁, x₂, x₃, x₄) = (F, T, F, F) and (T, F, T, T). A 2-SAT formula is satisfiable iff no variable shares a strongly connected component with its negation in the implication graph, but the count needs enumeration.

More Algorithms questions

Exams that ask this topic