Algorithms / Implication Graphs Reductions
Least You Need to Know: Implication Graphs, Assignment Order, and Reduction-Ready Constraint Reasoning
Implication graphs are not only a solver tool; they are also a modeling language for pairwise Boolean constraints. Once a problem is expressed as implications among literals, SCC structure reveals contradictions, and component order can guide a satisfying assignment. This makes 2-SAT a useful landing spot for reduction-ready constraint problems.
The least you need to know
- Implication graphs encode forced consequences among literals.
- A path `u -> v` means setting `u` true forces `v` true.
- SCCs capture mutual implication and contradiction structure.
- After SCC condensation, reverse topological order supports assignment extraction for satisfiable 2-SAT instances.
- Many constraint problems can be reduced to 2-SAT by expressing forbidden combinations as implications.
Key notation
u -> v
if literal `u` is true, literal `v` must also be true
condensation DAG
DAG formed by collapsing SCCs
reduction to 2-SAT
model a constraint problem as a satisfiable 2-CNF instance
Tiny worked example
- Suppose a scheduling rule says 'if task `A` takes morning, then task `B` must take afternoon'.
- That becomes a literal implication in the graph.
- If implication cycles force both `x` and `not x`, the encoding is inconsistent.
- Otherwise SCC order can be used to choose truth values consistently.
Common mistakes
- Students sometimes stop after building the graph and forget that assignment extraction uses SCC order.
- A path in the implication graph has semantic meaning: truth of one literal forces another.
- Reduction-ready modeling is about expressing constraints as implications or small clauses, not about drawing arbitrary graphs.
How to recognize this kind of problem
- The prompt gives pairwise Boolean restrictions and forced consequences.
- Forbidden combinations can be rewritten as small clauses or implications.
- You want contradiction detection plus actual assignment extraction.