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