Handling disconnected components

In CryptoMiniSat 3.2 and above there is a disconnected component finding&solving system. This finds toplevel disconnected components regularly and solves them by launching an instance of the solver itself. If the component is unsatisfiable (UNSAT), the whole system is UNSAT and solving can be immediately aborted. If the component is satisfiable (SAT) the component’s solution is saved and later when printing the solution to the whole problem the component’s satisfying assignment is also printed. ...

July 31, 2013 · 7 min · msoos

Certified UNSAT and CryptoMiniSat

Marijn Heule kindly sent me an email on the 10th of April about DRUP, the new system used this year in the SAT Competition'13 for the UNSAT track. He kindly encouraged me to implement the DRUP system. He personally implemented it into Minisat which was a very helpful lead for me. In this post I will talk about my experiences in implementing DRUP into CryptoMiniSat within a span of 3 days. Implementation complexity It took only 3 days, about 1400 lines of code to implement DRUP: ...

April 25, 2013 · 4 min · msoos

A variable elimination improvement

Lately, I have been thinking about how to improve variable elimination. It’s one of the most important things in SAT solvers, and it’s not exactly easy to do right. Variable elimination Variable elimination simply resolves every occurrence of a literal v1v1v1 with every occurrence of the literal ¬v1\neg v1¬v1 , removes the original clauses and adds the resolvents. For example, let’s take the clauses v1∨v2∨v3v1 \vee v2 \vee v3v1∨v2∨v3 v1∨v4∨v5v1 \vee v4 \vee v5v1∨v4∨v5 ¬v1∨v10∨v11\neg v1 \vee v10 \vee v11¬v1∨v10∨v11 ¬v1∨v12∨v13\neg v1 \vee v12 \vee v13¬v1∨v12∨v13 ...

April 21, 2013 · 3 min · msoos