Graph Theory37 sections · 1633 units
Open in Course

Algorithm Summary

(Four steps)

Step 11: Build the implication graph. For each clause "a OR b", add edges NOT a → b and NOT b → a. You end up with 2n2n nodes and 2m2m edges. Step 22: Compute SCCs using Kosaraju or Tarjan. Step 33: Check satisfiability by verifying that no variable x shares an SCC with NOT x.

If any do, return unsatisfiable. Step 44: Construct assignment. For each variable, set x to true if SCC(x) > SCC(NOT x) in topological order, otherwise set x to false. Output this assignment.