Why it's hard to eliminate variables

Let’s examine why it’s hard to eliminate variables. I remember the code I looked at in SatElite that did it: it was crazy clean code and looked like it was pretty easy to perform. In this post I’ll examine how that simple code became more than a 1'000 lines of code today. What needs to be done, at first sight At first sight, variable elimination is easy. We just: Build occurrence lists Pick a variable to eliminate Resolve every clause having the positive literal of the variable with negative ones. Add newly resolved clauses into the system Remove original clauses. Goto 2. These are all pretty simple steps at first sight, and one can imagine that implementing them is maybe 50-100 lines of code, no more. So, let’s examine them one-by-one to see how they get complicated. ...

April 16, 2014 · 9 min · msoos

CryptoMiniSat 4 released

[wpdm_file id=1] CryptoMiniSat 4 is now available for download. This version brings a number of substantial improvements and picks up speed to be as good as the best solvers out there. It now has a much improved library interface as well as a simple but powerful python interface. SAT Competition 2014 This release is made ahead of the SAT competition 2014 deadlines so anybody can compete and actually have a chance to win. Unfortunately, the way I see it, it’s not possible to use newer versions of lingeling or riss (see license for for details), MiniSat is rather old and glucose doesn’t have new simplification techniques. If you feel the same way, and you rather not write 30K LoC of code, you might enjoy playing with CryptoMiniSat v4 and submitting it to the competition. You can change as much as you like, it’s LGPLv2 – just don’t call it CryptoMiniSat. ...

April 9, 2014 · 5 min · msoos

Speeding up MiniSat with a one-liner

All SAT solvers must have a tri-state class that can hold the values `true`, `false`, and `undefined`. Although it’s not hard to write code to represent such a class, it’s hard to write such it so that all typical operations are fast. In this blog post I will compare three different ways of doing it. The original MiniSat 2.0 code The original MiniSat 2.0 used the following code for such a class: ...

March 12, 2014 · 4 min · msoos