Graph Theory37 sections · 1633 units
Open in Course

Pattern: 2-SAT

When to use 2-SAT.

Use 22-SAT when:

  • You have boolean variables
  • Each constraint involves exactly 22 literals
  • Constraints are disjunctions (OR)

Form: (xy)(¬xz).(x \lor y) \land (\neg x \lor z) \land.

Recognize it: "Either A or B must happen." "If A, then not B." These translate to 22-SAT clauses.

Solution: Build implication graph, find SCCs. Satisfiable if no variable and its negation are in the same SCC.