Boolean satisfiability algorithm heuristics
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.
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. The Boolean satisfiability (or SAT) problem can be stated formally as: given a Boolean expression B with variables V = \{v_0, \ldots , v_n\} , 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. 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 = \{v_0, \ldots , v_n\} , 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 \operatorname{Pr}(c\text{ is satisfied}) = 1 - 2^{-|c|}. This is because each variable in c has probability of being satisfied, and we only need one variable in c to be satisfied. This works for all |c| \geq 1 , so \operatorname{Pr}(c\text{ is satisfied}) = 1 - 2^{-|c|} \geq \frac{1}{2}. Now we show that randomly assigning variable values is a -approximation algorithm, which means that is an optimal approximation algorithm unless P = NP. Suppose we are given a Boolean expression B = \{c_i\}_{i=1}^n and \delta_{ij} = \begin{cases} 0 &\text{if } c_i \text{ is satisfied}, \\ 1 &\text{if } c_i \text{ is not satisfied}. \end{cases} Then we have that \begin{align} E[\text{Num Clauses Satisfied}] & = \sum_i E[\delta_i] = \sum_{i} 1-2^{-|c_i|} \\ & \geq \sum_i \frac{1}{2} = \frac{1}{2}|i| = \frac{1}{2} OPT. \end{align} 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. Variable splitting is a tool to find upper and lower bounds on a Max-SAT problem. It involves splitting a variable a into new variables for all but one occurrence of a in the original Boolean expression. For example, the Boolean expression B = (a \lor b \lor c) \wedge (\neg a \lor e \lor \neg b) \wedge (a \lor \neg c \lor f) becomes B^* = (a \lor b \lor c) \wedge (\neg a_1 \lor e \lor \neg b) \wedge (a_2 \lor \neg c \lor f), with a,a_1,a_2,\ldots,a_n being all distinct variables. This relaxes the problem by introducing new variables into the Boolean expression, which has the effect of removing many of the constraints in the expression. Because any assignment of variables in B can be represented by an assignment of variables in B^* , the minimization and maximization of the weights of B^* represent lower and upper bounds on the minimization and maximization of the weights of B .
References
No reference rows published for this article.
Cite this article
MLA
"Boolean satisfiability algorithm heuristics." encyclopegia.org, 2026, https://encyclopegia.org/wiki/boolean-satisfiability-algorithm-heuristics. Accessed 25 November 2026.
Chicago
"Boolean satisfiability algorithm heuristics." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/boolean-satisfiability-algorithm-heuristics.
APA
encyclopegia.org. (2026). Boolean satisfiability algorithm heuristics. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/boolean-satisfiability-algorithm-heuristics
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON