Apex › Storage & databases

How a SAT solver works (DPLL)

Boolean satisfiability: given a formula in CNF (an AND of OR-clauses), is there a true/false assignment making it true? DPLL — the backtracking core of every modern SAT solver — interleaves unit propagation (a clause with one unassigned literal forces it), decisions (guess a variable, recurse), and backtracking (a clause gone all-false is a conflict; flip the last guess). Verified in node against a 2ⁿ brute-force oracle: DPLL’s SAT/UNSAT verdict matches on 6000 random formulas and every SAT assignment satisfies the CNF. Step it on a satisfiable and an unsatisfiable formula. (This is boolean SAT, not the Separating Axis Theorem.)

More in Storage & databases