<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=DPLL_algorithm</id>
	<title>DPLL algorithm - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=DPLL_algorithm"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=DPLL_algorithm&amp;action=history"/>
	<updated>2026-09-11T16:51:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=DPLL_algorithm&amp;diff=1919580&amp;oldid=prev</id>
		<title>imported&gt;OAbot: Open access bot: url-access updated in citation with #oabot.</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=DPLL_algorithm&amp;diff=1919580&amp;oldid=prev"/>
		<updated>2025-05-25T20:28:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/OABOT&quot; class=&quot;extiw&quot; title=&quot;wikipedia:OABOT&quot;&gt;Open access bot&lt;/a&gt;: url-access updated in citation with #oabot.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Type of search algorithm}}&lt;br /&gt;
{{Infobox algorithm&lt;br /&gt;
|name=DPLL&lt;br /&gt;
|image=Dpll11.png&lt;br /&gt;
|image size=300px&lt;br /&gt;
|class=[[Boolean satisfiability problem]]&lt;br /&gt;
|caption=After 5 fruitless attempts &amp;#039;&amp;#039;(red)&amp;#039;&amp;#039;, choosing the variable assignment &amp;#039;&amp;#039;a&amp;#039;&amp;#039;=1, &amp;#039;&amp;#039;b&amp;#039;&amp;#039;=1 leads, after unit propagation &amp;#039;&amp;#039;(bottom)&amp;#039;&amp;#039;, to success &amp;#039;&amp;#039;(green)&amp;#039;&amp;#039;: the top left [[conjunctive normal form|CNF]] formula is satisfiable.&lt;br /&gt;
|data=[[Binary tree]]&lt;br /&gt;
|time=&amp;lt;math&amp;gt;O(2^n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|best-time=&amp;lt;math&amp;gt;O(1)&amp;lt;/math&amp;gt; (constant)|space=&amp;lt;math&amp;gt;O(n)&amp;lt;/math&amp;gt; (basic algorithm)&lt;br /&gt;
}}&lt;br /&gt;
In [[logic]] and [[computer science]], the &amp;#039;&amp;#039;&amp;#039;Davis–Putnam–Logemann–Loveland&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;DPLL&amp;#039;&amp;#039;&amp;#039;) &amp;#039;&amp;#039;&amp;#039;algorithm&amp;#039;&amp;#039;&amp;#039; is a [[Completeness (logic)|complete]], [[backtracking]]-based [[search algorithm]] for [[Boolean satisfiability problem|deciding the satisfiability]] of [[propositional logic|propositional logic formulae]] in [[conjunctive normal form]], i.e. for solving the [[Boolean satisfiability problem|CNF-SAT]] problem.&lt;br /&gt;
&lt;br /&gt;
It was introduced in 1961 by [[Martin Davis (mathematician)|Martin Davis]], [[George Logemann]] and [[Donald W. Loveland]] and is a refinement of the earlier [[Davis–Putnam algorithm]], which is a [[Resolution (logic)|resolution]]-based procedure developed by Davis and [[Hilary Putnam]] in 1960. Especially in older publications, the Davis–Logemann–Loveland algorithm is often referred to as the &amp;quot;Davis–Putnam method&amp;quot; or the &amp;quot;DP algorithm&amp;quot;. Other common names that maintain the distinction are DLL and DPLL.&lt;br /&gt;
&lt;br /&gt;
== Implementations and applications ==&lt;br /&gt;
The [[Boolean satisfiability problem|SAT problem]] is important both from theoretical and practical points of view. In [[Computational complexity theory|complexity theory]] it was the first problem proved to be [[NP-complete]], and can appear in a broad variety of applications such as &amp;#039;&amp;#039;[[model checking]]&amp;#039;&amp;#039;, [[automated planning and scheduling]], and [[diagnosis (artificial intelligence)|diagnosis in artificial intelligence]].&lt;br /&gt;
&lt;br /&gt;
As such, writing efficient [[SAT solver]]s has been a research topic for many years. [[GRASP (SAT solver)|GRASP]] (1996-1999) was an early implementation using DPLL.&amp;lt;ref name=DPLLT/&amp;gt; In the international SAT competitions, implementations based around DPLL such as [[zChaff]]&amp;lt;ref&amp;gt;&lt;br /&gt;
{{Citation|url=http://www.princeton.edu/~chaff/zchaff.html|title=zChaff website}}&amp;lt;/ref&amp;gt; and MiniSat&amp;lt;ref&amp;gt;&lt;br /&gt;
{{Cite web|url=http://minisat.se/|title=Minisat website}}&lt;br /&gt;
&amp;lt;/ref&amp;gt; were in the first places of the competitions in 2004 and 2005.&amp;lt;ref name=comp&amp;gt;&lt;br /&gt;
{{Citation|url=http://www.satcompetition.org/|title=The international SAT Competitions web page|publisher=sat! live}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another application that often involves DPLL is [[automated theorem proving]] or [[satisfiability modulo theories]] (SMT), which is a SAT problem in which [[propositional variable]]s are replaced with formulas of another [[mathematical theory]].&lt;br /&gt;
&lt;br /&gt;
==The algorithm==&lt;br /&gt;
&lt;br /&gt;
The basic backtracking algorithm runs by choosing a literal, assigning a [[truth value]] to it, simplifying the formula and then recursively checking if the simplified formula is satisfiable; if this is the case, the original formula is satisfiable; otherwise, the same recursive check is done assuming the opposite truth value. This is known as the &amp;#039;&amp;#039;splitting rule&amp;#039;&amp;#039;, as it splits the problem into two simpler sub-problems. The simplification step essentially removes all clauses that become true under the assignment from the formula, and all literals that become false from the remaining clauses.&lt;br /&gt;
&lt;br /&gt;
The DPLL algorithm enhances over the backtracking algorithm by the eager use of the following rules at each step:&lt;br /&gt;
&lt;br /&gt;
; [[Unit propagation]] : If a clause is a &amp;#039;&amp;#039;unit clause&amp;#039;&amp;#039;, i.e. it contains only a single unassigned literal, this clause can only be satisfied by assigning the necessary value to make this literal true. Thus, no choice is necessary.  Unit propagation consists in removing every clause containing a unit clause&amp;#039;s literal and in discarding the complement of a unit clause&amp;#039;s literal from every clause containing that complement. In practice, this often leads to deterministic cascades of units, thus avoiding a large part of the naive search space.&lt;br /&gt;
&lt;br /&gt;
; Pure literal elimination : If a [[propositional variable]] occurs with only one [[Polarity (mathematical logic)|polarity]] in the formula, it is called &amp;#039;&amp;#039;pure&amp;#039;&amp;#039;. A pure literal can always be assigned in a way that makes all clauses containing it true. Thus, when it is assigned in such a way, these clauses do not constrain the search anymore, and can be deleted.&lt;br /&gt;
&lt;br /&gt;
Unsatisfiability of a given partial assignment is detected if one clause becomes empty, i.e. if all its variables have been assigned in a way that makes the corresponding literals false. Satisfiability of the formula is detected either when all variables are assigned without generating the empty clause, or, in modern implementations, if all clauses are satisfied. Unsatisfiability of the complete formula can only be detected after exhaustive search.&lt;br /&gt;
&lt;br /&gt;
The DPLL algorithm can be summarized in the following pseudocode, where Φ is the [[Conjunctive_normal_form|CNF]] formula:&lt;br /&gt;
&lt;br /&gt;
{{Algorithm-begin|name=DPLL}}&lt;br /&gt;
     Input: A set of clauses Φ.&lt;br /&gt;
     Output: A truth value indicating whether Φ is satisfiable.&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;DPLL&amp;#039;&amp;#039;(Φ)&lt;br /&gt;
     // unit propagation:&lt;br /&gt;
     &amp;#039;&amp;#039;&amp;#039;while&amp;#039;&amp;#039;&amp;#039; there is a unit clause {&amp;#039;&amp;#039;l&amp;#039;&amp;#039;} in Φ &amp;#039;&amp;#039;&amp;#039;do&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
         Φ ← &amp;#039;&amp;#039;unit-propagate&amp;#039;&amp;#039;(&amp;#039;&amp;#039;l&amp;#039;&amp;#039;, Φ);&lt;br /&gt;
     // pure literal elimination:&lt;br /&gt;
     &amp;#039;&amp;#039;&amp;#039;while&amp;#039;&amp;#039;&amp;#039; there is a literal &amp;#039;&amp;#039;l&amp;#039;&amp;#039; that occurs pure in Φ &amp;#039;&amp;#039;&amp;#039;do&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
         Φ ← &amp;#039;&amp;#039;pure-literal-assign&amp;#039;&amp;#039;(&amp;#039;&amp;#039;l&amp;#039;&amp;#039;, Φ);&lt;br /&gt;
     // stopping conditions:&lt;br /&gt;
     &amp;#039;&amp;#039;&amp;#039;if&amp;#039;&amp;#039;&amp;#039; Φ is empty &amp;#039;&amp;#039;&amp;#039;then&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
         &amp;#039;&amp;#039;&amp;#039;return&amp;#039;&amp;#039;&amp;#039; true;&lt;br /&gt;
     &amp;#039;&amp;#039;&amp;#039;if&amp;#039;&amp;#039;&amp;#039; Φ contains an empty clause &amp;#039;&amp;#039;&amp;#039;then&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
         &amp;#039;&amp;#039;&amp;#039;return&amp;#039;&amp;#039;&amp;#039; false;&lt;br /&gt;
     // DPLL procedure:&lt;br /&gt;
     &amp;#039;&amp;#039;l&amp;#039;&amp;#039; ← &amp;#039;&amp;#039;choose-literal&amp;#039;&amp;#039;(Φ);&lt;br /&gt;
     &amp;#039;&amp;#039;&amp;#039;return&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;DPLL&amp;#039;&amp;#039;(Φ &amp;#039;&amp;#039;&amp;#039;∧&amp;#039;&amp;#039;&amp;#039; {l}) &amp;#039;&amp;#039;&amp;#039;or&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;DPLL&amp;#039;&amp;#039;(Φ &amp;#039;&amp;#039;&amp;#039;∧&amp;#039;&amp;#039;&amp;#039; {¬l});&lt;br /&gt;
{{Algorithm-end}}&lt;br /&gt;
&lt;br /&gt;
In this pseudocode, &amp;lt;code&amp;gt;unit-propagate(l, Φ)&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pure-literal-assign(l, Φ)&amp;lt;/code&amp;gt; are functions that return the result of applying unit propagation and the pure literal rule, respectively, to the literal &amp;lt;code&amp;gt;l&amp;lt;/code&amp;gt; and the formula &amp;lt;code&amp;gt;Φ&amp;lt;/code&amp;gt;. In other words, they replace every occurrence of &amp;lt;code&amp;gt;l&amp;lt;/code&amp;gt; with &amp;quot;true&amp;quot; and every occurrence of &amp;lt;code&amp;gt;not l&amp;lt;/code&amp;gt; with &amp;quot;false&amp;quot; in the formula &amp;lt;code&amp;gt;Φ&amp;lt;/code&amp;gt;, and simplify the resulting formula.  The &amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;or&amp;#039;&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;return&amp;#039;&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; statement is a [[short-circuiting operator]]. &amp;lt;code&amp;gt;Φ &amp;#039;&amp;#039;&amp;#039;∧&amp;#039;&amp;#039;&amp;#039; {l}&amp;lt;/code&amp;gt; denotes the simplified result of substituting &amp;quot;true&amp;quot; for &amp;lt;code&amp;gt;l&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;Φ&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The algorithm terminates in one of two cases. Either the CNF formula &amp;lt;code&amp;gt;Φ&amp;lt;/code&amp;gt; is empty, i.e., it contains no clause. Then it is satisfied by any assignment, as all its clauses are vacuously true. Otherwise, when the formula contains an empty clause, the clause is vacuously false because a disjunction requires at least one member that is true for the overall set to be true. In this case, the existence of such a clause implies that the formula (evaluated as a &amp;#039;&amp;#039;conjunction&amp;#039;&amp;#039; of all clauses) cannot evaluate to true and must be unsatisfiable.&lt;br /&gt;
&lt;br /&gt;
The pseudocode DPLL function only returns whether the final assignment satisfies the formula or not. In a real implementation, the partial satisfying assignment typically is also returned on success; this can be derived by keeping track of branching literals and of the literal assignments made during unit propagation and pure literal elimination.&lt;br /&gt;
&lt;br /&gt;
The Davis–Logemann–Loveland algorithm depends on the choice of &amp;#039;&amp;#039;branching literal&amp;#039;&amp;#039;, which is the literal considered in the backtracking step. As a result, this is not exactly an algorithm, but rather a family of algorithms, one for each possible way of choosing the branching literal. Efficiency is strongly affected by the choice of the branching literal: there exist instances for which the running time is constant or exponential depending on the choice of the branching literals. Such choice functions are also called [[heuristic function]]s or branching heuristics.&amp;lt;ref&amp;gt;{{Cite book | last1 = Marques-Silva | first1 = João P.| chapter = The Impact of Branching Heuristics in Propositional Satisfiability Algorithms | doi = 10.1007/3-540-48159-1_5 | title = Progress in Artificial Intelligence: 9th Portuguese Conference on Artificial Intelligence, EPIA &amp;#039;99 Évora, Portugal, September 21–24, 1999 Proceedings | editor1-first = Pedro | editor1-last = Barahona | editor2-first = José J. | editor2-last = Alferes| series = [[Lecture Notes in Computer Science|LNCS]] | volume = 1695 | pages = 62–63 | year = 1999 | isbn = 978-3-540-66548-9 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Formalization ===&lt;br /&gt;
The [[sequent calculus]]-similar notation can be used to formalize many rewriting algorithms, including DPLL. The following are the 5 rules a DPLL solver can apply in order to either find or fail to find a satisfying assignment, i.e. &amp;lt;math&amp;gt;A = (l_1, \neg l_2, l_3, ...)&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;{{Cite journal |last=Nieuwenhuis |first=Robert |last2=Oliveras |first2=Albert |last3=Tinelli |first3=Cesare |date=2006-11-01 |title=Solving SAT and SAT Modulo Theories: From an abstract Davis--Putnam--Logemann--Loveland procedure to DPLL(T) |url=https://dl.acm.org/doi/10.1145/1217856.1217859 |journal=J. ACM |volume=53 |issue=6 |pages=937–977 |doi=10.1145/1217856.1217859 |issn=0004-5411|url-access=subscription }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite journal |last=Krstić |first=Sava |last2=Goel |first2=Amit |date=2007 |editor-last=Konev |editor-first=Boris |editor2-last=Wolter |editor2-first=Frank |title=Architecting Solvers for SAT Modulo Theories: Nelson-Oppen with DPLL |url=https://link.springer.com/chapter/10.1007/978-3-540-74621-8_1 |journal=Frontiers of Combining Systems |language=en |location=Berlin, Heidelberg |publisher=Springer |pages=1–27 |doi=10.1007/978-3-540-74621-8_1 |isbn=978-3-540-74621-8|url-access=subscription }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a clause in the formula &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; has exactly one unassigned literal &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, with all other literals in the clause appearing negatively, extend &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt;. &amp;#039;&amp;#039;This rule represents the idea a currently false clause with only one unset variable left forces that variable to be set in such a way as to make the entire clause true, otherwise the formula will not be satisfied.&amp;#039;&amp;#039;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{&lt;br /&gt;
  \begin{array}{c}&lt;br /&gt;
    \{l_1, \dots, l_n, l\} \in \Phi \;\;\;&lt;br /&gt;
    \neg l_1, \dots, \neg l_n \in A \;\;\;\;\;&lt;br /&gt;
    l, \neg l \notin A&lt;br /&gt;
  \end{array}&lt;br /&gt;
}{&lt;br /&gt;
  A := A \; l&lt;br /&gt;
} \text{ (Propagate)}&amp;lt;/math&amp;gt;If a literal &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; appears in the formula &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; but its negation &amp;lt;math&amp;gt;\neg l&amp;lt;/math&amp;gt; does not, and &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\neg l&amp;lt;/math&amp;gt; are not in &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, extend &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt;. &amp;#039;&amp;#039;This rule represents the idea that if a variable appears only purely positively or purely negatively in a formula, all the instances can be set to true or false to make their corresponding clauses true.&amp;#039;&amp;#039;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{&lt;br /&gt;
  \begin{array}{c}&lt;br /&gt;
    l \text{ literal of } \Phi \;\;\;&lt;br /&gt;
    \neg l \text{ not literal of } \Phi \;\;\;\;\;&lt;br /&gt;
    l, \neg l \notin A&lt;br /&gt;
  \end{array}&lt;br /&gt;
}{&lt;br /&gt;
  A := A \; l&lt;br /&gt;
} \text{ (Pure)}&amp;lt;/math&amp;gt;If a literal &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; is in the set of literals of &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and neither &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; nor &amp;lt;math&amp;gt;\neg l&amp;lt;/math&amp;gt; is in &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, then decide on the truth value of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; and extend &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; with the decision literal &amp;lt;math&amp;gt;\bullet l&amp;lt;/math&amp;gt;. &amp;#039;&amp;#039;This rule represents the idea that if you aren&amp;#039;t forced to do an assignment, you must choose a variable to assign and make note which assignment was a choice so you can go back if the choice didn&amp;#039;t result in a satisfying assignment.&amp;#039;&amp;#039;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{&lt;br /&gt;
  \begin{array}{c}&lt;br /&gt;
    l \in \text{Lits}(\Phi) \;\;\;&lt;br /&gt;
    l, \neg l \notin A&lt;br /&gt;
  \end{array}&lt;br /&gt;
}{&lt;br /&gt;
  A := A \;\bullet\; l&lt;br /&gt;
} \text{ (Decide)}&amp;lt;/math&amp;gt;If a clause &amp;lt;math&amp;gt;\{l_1, \dots, l_n\}&amp;lt;/math&amp;gt; is in &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;, and their negations &amp;lt;math&amp;gt;\neg l_1, \dots, \neg l_n&amp;lt;/math&amp;gt; are in &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; can be represented as &amp;lt;math&amp;gt;A = A&amp;#039; \;\bullet\; l \; N&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\bullet \notin N&amp;lt;/math&amp;gt;, then backtrack by setting &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;A&amp;#039; \; \neg l&amp;lt;/math&amp;gt;. &amp;#039;&amp;#039;This rule represents the idea that if you reach a contradiction in trying to find a valid assignment, you need to go back to where you previously did a decision between two assignments and pick the other one.&amp;#039;&amp;#039;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{&lt;br /&gt;
  \begin{array}{c}&lt;br /&gt;
    \{l_1, \dots, l_n\} \in \Phi \;\;\;&lt;br /&gt;
    \neg l_1, \dots, \neg l_n \in A \;\;\;\;\;&lt;br /&gt;
    A = A&amp;#039; \;\bullet\; l \; N \;\;\;\;\;&lt;br /&gt;
    \bullet \notin N&lt;br /&gt;
  \end{array}&lt;br /&gt;
}{&lt;br /&gt;
  A := A&amp;#039; \; \neg l&lt;br /&gt;
} \text{ (Backtrack)}&amp;lt;/math&amp;gt;If a clause &amp;lt;math&amp;gt;\{l_1, \dots, l_n\}&amp;lt;/math&amp;gt; is in &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;, and their negations &amp;lt;math&amp;gt;\neg l_1, \dots, \neg l_n&amp;lt;/math&amp;gt; are in &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, and there is no conflict marker &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, then the DPLL algorithm fails. &amp;#039;&amp;#039;This rule represents the idea that if you reach a contradiction but there wasn&amp;#039;t anything you could have done differently on the way there, the formula is unsatisfiable.&amp;#039;&amp;#039;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{&lt;br /&gt;
  \begin{array}{c}&lt;br /&gt;
    \{l_1, \dots, l_n\} \in \Phi \;\;\;&lt;br /&gt;
    \neg l_1, \dots, \neg l_n \in A \;\;\;\;\;&lt;br /&gt;
    \bullet \notin A&lt;br /&gt;
  \end{array}&lt;br /&gt;
}{&lt;br /&gt;
  \text{Fail}&lt;br /&gt;
} \text{ (Fail)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Visualization===&lt;br /&gt;
&lt;br /&gt;
Davis, Logemann, Loveland (1961) had developed this algorithm.&lt;br /&gt;
Some properties of this original algorithm are:&lt;br /&gt;
* It is based on search.&lt;br /&gt;
* It is the basis for almost all modern SAT solvers.&lt;br /&gt;
* It &amp;#039;&amp;#039;does not&amp;#039;&amp;#039; use learning or non-chronological backtracking (introduced in 1996).&lt;br /&gt;
An example with visualization of a DPLL algorithm having chronological backtracking:&lt;br /&gt;
&amp;lt;gallery perrow=&amp;quot;4&amp;quot; widths=&amp;quot;200px&amp;quot;&amp;gt;&lt;br /&gt;
Image:Dpll1.png|All clauses making a CNF formula&lt;br /&gt;
Image:Dpll2.png|Pick a variable&lt;br /&gt;
Image:Dpll3.png|Make a decision, variable a = False (0), thus green clauses becomes True&lt;br /&gt;
Image:Dpll4.png|After making several decisions, we find an [[implication graph]] that leads to a conflict.&lt;br /&gt;
Image:Dpll5.png|Now backtrack to immediate level and by force assign opposite value to that variable&lt;br /&gt;
Image:Dpll6.png|But a forced decision still leads to another conflict&lt;br /&gt;
Image:Dpll7.png|Backtrack to previous level and make a forced decision&lt;br /&gt;
Image:Dpll8.png|Make a new decision, but it leads to a conflict&lt;br /&gt;
Image:Dpll9.png|Make a forced decision, but again it leads to a conflict&lt;br /&gt;
Image:Dpll10.png|Backtrack to previous level&lt;br /&gt;
Image:Dpll11.png|Continue in this way and the final implication graph&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Related algorithms==&lt;br /&gt;
Since 1986, (Reduced ordered) [[binary decision diagram]]s have also been used for SAT solving.{{citation needed|date=December 2023}}&lt;br /&gt;
&lt;br /&gt;
In 1989-1990, [[Stålmarck&amp;#039;s method]] for formula verification was presented and patented. It has found some use in industrial applications.&amp;lt;ref&amp;gt;{{cite journal |last1=Stålmarck |first1=G. |last2=Säflund |first2=M. |title=Modeling and Verifying Systems and Software in Propositional Logic |journal=IFAC Proceedings Volumes |date=October 1990 |volume=23 |issue=6 |pages=31–36 |doi=10.1016/S1474-6670(17)52173-4}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DPLL has been extended for [[automated theorem proving]] for fragments of [[first-order logic]] by way of the [[DPLL(T)]] algorithm.&amp;lt;ref name=DPLLT&amp;gt;&lt;br /&gt;
{{Citation|contribution=Abstract DPLL and Abstract DPLL Modulo Theories&lt;br /&gt;
|first1=Robert&lt;br /&gt;
|last1=Nieuwenhuis&lt;br /&gt;
|first2=Albert&lt;br /&gt;
|last2=Oliveras&lt;br /&gt;
|first3=Cesar&lt;br /&gt;
|last3=Tinelli&lt;br /&gt;
|year=2004&lt;br /&gt;
|pages=36–50&lt;br /&gt;
|title=Proceedings Int. Conf. on [[Logic for Programming, Artificial Intelligence, and Reasoning]], LPAR 2004&lt;br /&gt;
|contribution-url=http://www.lsi.upc.edu/~roberto/papers/lpar04.pdf&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the 2010-2019 decade, work on improving the algorithm has found better policies for choosing the branching literals and new data structures to make the algorithm faster, especially the part on &amp;#039;&amp;#039;unit propagation&amp;#039;&amp;#039;. However, the main improvement has been a more powerful algorithm, [[Conflict-Driven Clause Learning]] (CDCL), which is similar to DPLL but after reaching a conflict &amp;quot;learns&amp;quot; the root causes (assignments to variables) of the conflict, and uses this information to perform &amp;#039;&amp;#039;non-chronological backtracking&amp;#039;&amp;#039; (aka &amp;#039;&amp;#039;[[backjumping]]&amp;#039;&amp;#039;) in order to avoid reaching the same conflict again. Most state-of-the-art SAT solvers are based on the CDCL framework as of 2019.&amp;lt;ref&amp;gt;{{cite book |last1=Möhle |first1=Sibylle |last2=Biere |first2=Armin |title=Theory and Applications of Satisfiability Testing – SAT 2019 |chapter=Backing Backtracking |series=Lecture Notes in Computer Science |date=2019 |volume=11628 |pages=250–266 |doi=10.1007/978-3-030-24258-9_18 |isbn=978-3-030-24257-2 |s2cid=195755607 |url=http://fmv.jku.at/papers/MoehleBiere-SAT19.pdf}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Relation to other notions ==&lt;br /&gt;
Runs of DPLL-based algorithms on unsatisfiable instances correspond to tree [[Resolution (logic)|resolution]] refutation proofs.&amp;lt;ref name=&amp;quot;RossiBeek2006&amp;quot;&amp;gt;{{cite book|editor1-first=Francesca|editor1-last=Rossi|editor2-first=Peter|editor2-last=Van Beek|editor3-first=Toby|editor3-last=Walsh|title=Handbook of constraint programming|chapter-url=https://books.google.com/books?id=Kjap9ZWcKOoC&amp;amp;pg=PA122|year=2006|publisher=Elsevier|isbn=978-0-444-52726-4|page=122|first=Peter|last=Van Beek|chapter=Backtracking search algorithms}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Proof complexity]]&lt;br /&gt;
*[[Herbrandization]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;General&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{cite journal&lt;br /&gt;
|last=Davis&lt;br /&gt;
|first=Martin&lt;br /&gt;
| author-link= Martin Davis (mathematician)&lt;br /&gt;
|author2=Putnam, Hilary |author-link2=Hilary Putnam &lt;br /&gt;
| title=A Computing Procedure for Quantification Theory&lt;br /&gt;
| journal =[[Journal of the ACM]]&lt;br /&gt;
| volume = 7&lt;br /&gt;
| issue = 3&lt;br /&gt;
| pages = 201–215&lt;br /&gt;
| year = 1960&lt;br /&gt;
| doi=10.1145/321033.321034|s2cid=31888376&lt;br /&gt;
| doi-access=free&lt;br /&gt;
}}&lt;br /&gt;
*{{cite journal&lt;br /&gt;
| last=Davis&lt;br /&gt;
| first=Martin |author2=Logemann, George |author3=Loveland, Donald&lt;br /&gt;
| title=A Machine Program for Theorem Proving&lt;br /&gt;
| journal =[[Communications of the ACM]]&lt;br /&gt;
| volume=5&lt;br /&gt;
| issue=7&lt;br /&gt;
| pages = 394–397&lt;br /&gt;
| year=1962&lt;br /&gt;
| url=https://archive.org/details/machineprogramfo00davi&lt;br /&gt;
| doi=10.1145/368273.368557| hdl=2027/mdp.39015095248095&lt;br /&gt;
| s2cid=15866917 | hdl-access=free&lt;br /&gt;
}}&lt;br /&gt;
*{{cite journal&lt;br /&gt;
| first=Ming&lt;br /&gt;
| last=Ouyang&lt;br /&gt;
| title=How Good Are Branching Rules in DPLL?&lt;br /&gt;
| journal=Discrete Applied Mathematics&lt;br /&gt;
| volume=89&lt;br /&gt;
| issue=1–3&lt;br /&gt;
| pages=281–286&lt;br /&gt;
| year=1998&lt;br /&gt;
| doi=10.1016/S0166-218X(98)00045-6| doi-access=&lt;br /&gt;
}}&lt;br /&gt;
* {{cite book|author=John Harrison|title=Handbook of practical logic and automated reasoning|year=2009|publisher=Cambridge University Press|isbn=978-0-521-89957-4|pages=79–90}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Specific&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* {{cite book|author1=Malay Ganai|author2=Aarti Gupta|author3=Dr. Aarti Gupta|title=SAT-based scalable formal verification solutions|year=2007|publisher=Springer|isbn=978-0-387-69166-4|pages=23–32}}&lt;br /&gt;
* {{cite book|editor1-first=Frank|editor1-last=Van Harmelen|editor2-first=Vladimir|editor2-last=Lifschitz|editor3-first=Bruce|editor3-last=Porter|title=Handbook of knowledge representation|year=2008|publisher=Elsevier|isbn=978-0-444-52211-5|pages=89–134|first1=Carla P.|last1=Gomes|first2=Henry|last2=Kautz|first3= Ashish|last3=Sabharwal|first4=Bart|last4=Selman|chapter=Satisfiability Solvers|doi=10.1016/S1574-6526(07)03002-7|series=Foundations of Artificial Intelligence|volume=3}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Constraint programming]]&lt;br /&gt;
[[Category:Automated theorem proving]]&lt;br /&gt;
[[Category:SAT solvers]]&lt;br /&gt;
[[Category:Articles with example pseudocode]]&lt;/div&gt;</summary>
		<author><name>imported&gt;OAbot</name></author>
	</entry>
</feed>