In computer science, there are certain classes of algorithms (heuristics) that solves types of the Boolean satisfiability problem despite there being no known efficient algorithm in the general case.
Overview The Boolean satisfiability (or SAT) problem can be stated formally as: given a Boolean expression B with variables V={v0,…,vn}, finding an assignment V∗ of the variables such that B(V∗) is true. It is seen as the canonical NP-complete problem. Although no known algorithm is known to solve SAT in polynomial time, there are classes of SAT problems which do have efficient algorithms that solve them. The classes of problems amenable to SAT heuristics arise from many practical problems in AI planning, circuit testing, and software verification. Research on constructing efficient SAT solvers has been based on various principles such as resolution, search, local search and random walk, binary decisions, and Stalmarck's algorithm. Some of these algorithms are deterministic, while others may be stochastic. As there exist polynomial-time algorithms to convert any Boolean expression to conjunctive normal form (such as Tseitin's algorithm), posing SAT problems in CNF does not change their computational difficulty. SAT problems are canonically expressed in CNF because CNF has certain properties that can help prune the search space and speed up the search process.
Branching heuristics in conflict-driven algorithms One of the cornerstone SAT-solver algorithms is the DPLL algorithm. The algorithm works by iteratively assigning free variables, and when the algorithm encounters a bad assignment, it backtracks to a previous iteration and chooses a different assignment of variables. It relies on a branching heuristic to pick the next free variable assignment; the branching algorithm effectively makes choosing the variable assignment into a decision tree. Different implementations of this heuristic produce markedly different decision trees, and thus have significant effect on the efficiency of the solver.
Early branching heuristics Heuristics such as Bohm's heuristic, maximum occurrences on minimum-sized clauses, and the Jeroslow-Wang heuristic can be regarded as greedy algorithms. Their basic premise is to choose a free-variable assignment that will satisfy the most already-unsatisfied clauses in the Boolean expression. However, as Boolean expressions get larger, more complicated, or more structured, these heuristics fail to capture useful information about these problems that could improve efficiency; they often get stuck in local maxima or do not consider the distribution of variables. Additionally, larger problems require more processing, as the operation of counting free variables in unsatisfied clauses dominates the run time.
Variable state-independent decaying sum An influential heuristic called variable state-independent decaying sum (VSIDS) attempts to score each variable. VSIDS grades variables by their presence in conflicts and learned clauses, and selects the highest-graded variable to make the next decision from. To prioritize recent conflicts over older ones, it periodically decays each variable's score by some constant. VSIDS is quite effective because the scores of variable phases are independent of the current variable assignment, so backtracking is much easier. Further, VSIDS guarantees that each variable assignment satisfies the greatest number of recently searched segments of the Boolean expression.
Stochastic solvers For MAX-SAT, the version of SAT in which the number of satisfied clauses is maximized, solvers also use probabilistic algorithms. If we are given a Boolean expression B with variables V={v0,…,vn}, and we set each variable randomly, then for each clause c, with |c| variables, the chance of B being satisfied by a particular variable assignment is
Pr(c is satisfied)=1−2−|c|. This is because each variable in c has probability 1/2 of being satisfied, and we only need one variable in c to be satisfied. This works for all |c|≥1, so
Pr(c is satisfied)=1−2−|c|≥12. Now we show that randomly assigning variable values is a 1/2-approximation algorithm, which means that is an optimal approximation algorithm unless P = NP. Suppose we are given a Boolean expression B={ci}i=1n and
δij={0if ci is satisfied,1if ci is not satisfied. Then we have that
E[Num Clauses Satisfied]=∑iE[δi]=∑i1−2−|ci|≥∑i12=12|i|=12OPT. This algorithm cannot be further optimized by the PCP theorem unless P = NP. Other stochastic SAT solvers, such as WalkSAT and GSAT are an improvement to the above procedure. They start by randomly assigning values to each variable and then traverse the given Boolean expression to identify which variables to flip to minimize the number of unsatisfied clauses. They may randomly select a variable to flip or select a new random variable assignment to escape local maxima, much like a simulated annealing algorithm.
Weighted SAT problems Numerous weighted SAT problems exist as optimization versions of the general SAT problem. In this class of problems, each clause in a CNF Boolean expression is given a weight. The objective is the maximize or minimize the total sum of the weights of the satisfied clauses given a Boolean expression. Weighted Max-SAT is the maximization version of this problem, and Max-SAT is an instance of weighted MAX-SAT problem where the weights of each clause are the same. The partial Max-SAT problem is the problem where some clauses necessarily must be satisfied (hard clauses) and the sum total of weights of the rest of the clauses (soft clauses) are to be maximized or minimized, depending on the problem. Partial Max-SAT represents an intermediary between Max-SAT (all clauses are soft) and SAT (all clauses are hard). Stochastic probabilistic solvers can also be used to find approximations for Max-SAT.
Variable splitting
… excerpt ends here. Continue reading the full article.