Planar SAT
   HOME

TheInfoList



OR:

In computer science, the planar 3-satisfiability problem (abbreviated PLANAR 3SAT or PL3SAT) is an extension of the classical Boolean 3-satisfiability problem to a planar
incidence graph In combinatorial mathematics, a Levi graph or incidence graph is a bipartite graph associated with an incidence structure.. See in particulap. 181 From a collection of points and lines in an incidence geometry or a projective configuration, we for ...
. In other words, it asks whether the variables of a given Boolean formula—whose incidence graph consisting of variables and clauses can be embedded on a plane—can be consistently replaced by the values TRUE or FALSE in such a way that the formula evaluates to TRUE. If this is the case, the formula is called ''
satisfiable In mathematical logic, a formula is ''satisfiable'' if it is true under some assignment of values to its variables. For example, the formula x+3=y is satisfiable because it is true when x=3 and y=6, while the formula x+1=x is not satisfiable over ...
''. On the other hand, if no such assignment exists, the function expressed by the formula is
FALSE False or falsehood may refer to: * False (logic), the negation of truth in classical logic *Lie or falsehood, a type of deception in the form of an untruthful statement * false (Unix), a Unix command * ''False'' (album), a 1992 album by Gorefest * ...
for all possible variable assignments and the formula is ''unsatisfiable''. For example, the formula "''a'' AND NOT ''b''" is satisfiable because one can find the values ''a'' = TRUE and ''b'' = FALSE, which make (''a'' AND NOT ''b'') = TRUE. In contrast, "''a'' AND NOT ''a''" is unsatisfiable. Like
3SAT In logic and computer science, the Boolean satisfiability problem (sometimes called propositional satisfiability problem and abbreviated SATISFIABILITY, SAT or B-SAT) is the problem of determining if there exists an interpretation that satisfie ...
, PLANAR-SAT is NP-complete, and is commonly used in
reductions Reductions ( es, reducciones, also called ; , pl. ) were settlements created by Spanish rulers and Roman Catholic missionaries in Spanish America and the Spanish East Indies (the Philippines). In Portuguese-speaking Latin America, such redu ...
.


Definition

Every 3SAT problem can be converted to an incidence graph in the following manner: For every variable v_i, the graph has one corresponding node v_i, and for every clause c_j, the graph has one corresponding node c_j. An edge (v_i, c_j) is created between variable v_i and clause c_j whenever v_i or \lnot v_i is in c_j. Positive and negative literals are distinguished using edge colorings. The formula is satisfiable if and only if there is a way to assign TRUE or FALSE to each variable node such that every clause node is connected to at least one TRUE by a positive edge or FALSE by a negative edge. A
planar graph In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cross ...
is a graph that can be drawn on the plane in a way such that no two of its edges cross each other. Planar 3SAT is a subset of 3SAT in which the
incidence graph In combinatorial mathematics, a Levi graph or incidence graph is a bipartite graph associated with an incidence structure.. See in particulap. 181 From a collection of points and lines in an incidence geometry or a projective configuration, we for ...
of the variables and clauses of a
Boolean Any kind of logic, function, expression, or theory based on the work of George Boole is considered Boolean. Related to this, "Boolean" may refer to: * Boolean data type, a form of data with only two possible values (usually "true" and "false" ...
formula In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwee ...
is planar. It is important because it is a restricted variant, and is still NP-complete. Many problems (for example games and puzzles) cannot represent non-planar graphs. Hence, Planar 3SAT provides a way to prove those problems to be NP-hard.


Proof of NP-completeness

The following proof sketch follows the proof of D. Lichtenstein. Trivially, PLANAR 3SAT is in NP. It is thus sufficient to show that it is
NP-hard In computational complexity theory, NP-hardness ( non-deterministic polynomial-time hardness) is the defining property of a class of problems that are informally "at least as hard as the hardest problems in NP". A simple example of an NP-hard pr ...
via reduction from
3SAT In logic and computer science, the Boolean satisfiability problem (sometimes called propositional satisfiability problem and abbreviated SATISFIABILITY, SAT or B-SAT) is the problem of determining if there exists an interpretation that satisfie ...
. This proof makes use of the fact that (\lnot a \lor \lnot b \lor c) \land (a \lor \lnot c) \land (b \lor \lnot c) is equivalent to (a \land b) \Leftrightarrow c and that (a \lor \lnot b) \land (\lnot a \lor b) is equivalent to a \Leftrightarrow b. First, draw the incidence graph of the 3SAT formula. Since no two variables or clauses are connected, the resulting graph will be
bipartite Bipartite may refer to: * 2 (number) * Bipartite (theology), a philosophical term describing the human duality of body and soul * Bipartite graph, in mathematics, a graph in which the vertices are partitioned into two sets and every edge has an en ...
. Suppose the resulting graph is not planar. For every crossing of edges (''a'', ''c''1) and (''b'', ''c''2), introduce nine new variables ''a''1, ''b''1, ''α'', ''β'', ''γ'', ''δ'', ''ξ'', ''a''2, ''b''2, and replace every crossing of edges with a crossover gadget shown in the diagram. It consists of the following new clauses: \begin (\lnot a_2 \lor \lnot b_2 \lor \alpha) \land (a_2 \lor \lnot \alpha) \lor (b_2 \lor \lnot \alpha), &\quad \text \quad a_2 \land b_2 \Leftrightarrow \alpha \\ (\lnot a_2 \lor b_1 \lor \beta) \land (a_2 \lor \lnot \beta) \lor (\lnot b_1 \lor \lnot \beta), &\quad \text \quad a_2 \land \lnot b_1 \Leftrightarrow \beta \\ (a_1 \lor b_1 \lor \gamma) \land (\lnot a_1 \lor \lnot \gamma) \lor (\lnot b_1 \lor \lnot \gamma), &\quad \text \quad \lnot a_1 \land \lnot b_1 \Leftrightarrow \gamma \\ (a_1 \lor \lnot b_2 \lor \delta) \land (\lnot a_1 \lor \lnot \delta) \lor (b_2 \lor \lnot \delta), &\quad \text \quad \lnot a_1 \land b_2 \Leftrightarrow \delta \\ (\alpha \lor \beta \lor \xi) \land (\gamma \lor \delta \lor \lnot \xi), &\quad \text \quad \alpha \lor \beta \lor \gamma \lor \delta \\ (\lnot\alpha \lor \lnot\beta) \land (\lnot\beta \lor \lnot\gamma) \land (\lnot\gamma \lor \lnot\delta) \land (\lnot\delta \lor \lnot\alpha), &\\ (a_2 \lor \lnot a) \land (a \lor \lnot a_2) \land (b_2 \lor \lnot b) \land (b \lor \lnot b_2), &\quad \text \quad a \Leftrightarrow a_2, ~ b \Leftrightarrow b_2 \\ \end If the edge (''a'', ''c''1) is inverted in the original graph, (''a''1, ''c''1) should be inverted in the crossover gadget. Similarly if the edge (''b'', ''c''2) is inverted in the original, (''b''1, ''c''2) should be inverted. One can easily show that these clauses are satisfiable if and only if a \Leftrightarrow a_1 and b \Leftrightarrow b_1. This algorithm shows that it is possible to convert each crossing into its planar equivalent using only a constant amount of new additions. Since the number of crossings is polynomial in terms of the number of clauses and variables, the reduction is polynomial.


Variants and related problems

* Planar 3SAT with a variable-cycle: Here, in addition to the incidence-graph, the graph also includes a
cycle Cycle, cycles, or cyclic may refer to: Anthropology and social sciences * Cyclic history, a theory of history * Cyclical theory, a theory of American political history associated with Arthur Schlesinger, Sr. * Social cycle, various cycles in soc ...
going through all the variables, and each clause is either inside or outside this cycle. The resulting graph must still be planar. This problem is NP-complete. **However, if the problem is further restricted such that all clauses are inside the variable-cycle, or all clauses are outside it, then the problem can be solved in polynomial time using dynamic programming. *Planar 3SAT with literals: The bipartite incidence graph of the ''literals'' and clauses is planar too. This problem is NP-complete. *Planar rectilinear 3SAT: Vertices of the graph are represented as horizontal segments. Each variable lies on the ''x''-axis while each clause lies above/below the ''x''-axis. Every connection between a variable and a clause must be a vertical segment. Each clause may only have up to 3 connections with variables and are either all-positive or all-negative. This problem is NP-complete. ** Planar monotone rectilinear 3SAT: This is a variant of planar rectilinear 3SAT where the clauses above the ''x''-axis are all-positive and the clauses below the x-axis are all-negative. This problem is NP-complete. * Planar 1-in-3SAT: This is the planar equivalent of 1-in-3SAT. It is NP-complete. **Planar positive rectilinear 1-in-3SAT: This is the planar equivalent of positive 1-in-3SAT. It is NP-complete. * Planar NAE 3SAT: This problem is the planar equivalent of NAE 3SAT. Unlike the other variants, this problem can be solved in ''polynomial time''. The proof is by reduction to planar maximum cut. *Planar circuit SAT: This is a variant of circuit SAT in which the circuit, computing the SAT formula, is a planar directed acyclic graph. Note that this is a different graph than the adjacency graph of the formula. This problem is NP-complete.


Reductions


Logic puzzles

Reduction from Planar SAT is a commonly used method in NP-completeness proofs of logic puzzles. Examples of these include Fillomino,
Nurikabe The ''nurikabe'' (塗り壁 or 塗壁) is a ''yōkai'', or spirit, from Japanese folklore. Its name translates to "plaster wall", and it is said to manifest as an invisible wall that impedes or misdirects travelers walking at night. Sometimes re ...
, Shakashaka, Tatamibari, and
Tentai Show Tentai Show ( Japanese: 天体ショー ''tentai shō''), also known by the names Tentaisho, Galaxies, Spiral Galaxies, or Sym-a-Pix, is a binary-determination logic puzzle published by Nikoli. Rules Tentai Show is played on a rectangular gri ...
. These proofs involve constructing gadgets that can simulate wires carrying signals (Boolean values), input and output gates, signal splitters, NOT gates and AND (or OR) gates in order to represent the planar embedding of any Boolean circuit. Since the circuits are planar, crossover of wires do not need to be considered.


Flat folding of fixed-angle chains

This is the problem of deciding whether a polygonal chain with fixed edge lengths and angles has a planar configuration without crossings. It has been proven to be
strongly NP-hard In computational complexity, strong NP-completeness is a property of computational problems that is a special case of NP-completeness. A general computational problem may have numerical parameters. For example, the input to the bin packing proble ...
via a reduction from planar monotone rectilinear 3SAT.


Minimum edge-length partition

This is the problem of partitioning a polygon into simpler polygons such that the total length of all edges used in the partition is as small as possible. When the figure is a rectilinear polygon and it should be partitioned into rectangles, and the polygon is hole-free, then the problem is polynomial. But if it contains holes (even degenerate holes—single points), the problem is NP-hard, by reduction from Planar SAT. The same holds if the figure is any polygon and it should be partitioned into convex figures. A related problem is minimum-weight triangulation - finding a
triangulation In trigonometry and geometry, triangulation is the process of determining the location of a point by forming triangles to the point from known points. Applications In surveying Specifically in surveying, triangulation involves only angle me ...
of minimal total edge length. The decision version of this problem is proven to be NP-complete via a reduction from a variant of Planar 1-in-3SAT.


References

{{reflist Satisfiability problems NP-complete problems Electronic design automation Boolean algebra