Practice Discrete Math

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

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

How to recognize this kind of problem

Start practice