Overview
A 2-SAT implication graph adds edges !a -> b and !b -> a for every clause (a or b). The formula is unsatisfiable exactly when a variable and its negation belong to the same strongly connected component.
Solves 2-SAT by turning binary clauses into implications and checking strongly connected components.
Compact metadata for implementation and discovery.
A 2-SAT implication graph adds edges !a -> b and !b -> a for every clause (a or b). The formula is unsatisfiable exactly when a variable and its negation belong to the same strongly connected component.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(2^n)
Worst
O(2^n)
Space
O(2^n)
(a or b) becomes (!a -> b) and (!b -> a)Turns each binary clause into two directed implications.
Show turning binary clauses into implications and testing strongly connected components on a small 2-sat satisfiability example.
The implication-graph test is specific to 2-CNF structure; it does not make general SAT easy.
What each reference supports for this entry.
Reference for 2-SAT Implication Graph within SAT solving, including search, simplification, learning, or local-search mechanisms.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Optimization · Core
Both address satisfiability, but they make different modeling or performance tradeoffs.
Compare with thisOptimization · Core
Both address 2-sat satisfiability, but they make different modeling or performance tradeoffs.
Compare with this2-SAT Implication Graph uses Tarjan's Strongly Connected Components as a subroutine, representation, or supporting idea while turning binary clauses into implications and testing strongly connected components.
2-SAT Implication Graph uses Kosaraju's Algorithm as a subroutine, representation, or supporting idea while turning binary clauses into implications and testing strongly connected components.
Both address 2-sat satisfiability, but they make different modeling or performance tradeoffs.