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. ...