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 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. On the other hand, if no such assignment exists, the function expressed by the formula is FALSE 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, PLANAR-SAT is NP-complete, and is commonly used in reductions.
Every 3SAT problem can be converted to an incidence graph in the following manner: For every variable [math]\displaystyle{ v_i }[/math], the graph has one corresponding node [math]\displaystyle{ v_i }[/math], and for every clause [math]\displaystyle{ c_j }[/math], the graph has one corresponding node [math]\displaystyle{ c_j. }[/math] An edge [math]\displaystyle{ (v_i, c_j) }[/math] is created between variable [math]\displaystyle{ v_i }[/math] and clause [math]\displaystyle{ c_j }[/math] whenever [math]\displaystyle{ v_i }[/math] or [math]\displaystyle{ \lnot v_i }[/math] is in [math]\displaystyle{ c_j }[/math]. 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 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 of the variables and clauses of a Boolean formula 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.
The following proof sketch follows the proof of D. Lichtenstein.[1]
Trivially, PLANAR 3SAT is in NP. It is thus sufficient to show that it is NP-hard via reduction from 3SAT.
This proof makes use of the fact that [math]\displaystyle{ (\lnot a \lor \lnot b \lor c) \land (a \lor \lnot c) \land (b \lor \lnot c) }[/math] is equivalent to [math]\displaystyle{ (a \land b) \leftrightarrow c }[/math] and that [math]\displaystyle{ (a \lor \lnot b) \land (\lnot a \lor b) }[/math] is equivalent to [math]\displaystyle{ a \leftrightarrow b }[/math].
First, draw the incidence graph of the 3SAT formula. Since no two variables or clauses are connected, the resulting graph will be bipartite. Suppose the resulting graph is not planar. For every crossing of edges (a, c1) and (b, c2), introduce nine new variables a1, b1, α, β, γ, δ, ξ, a2, b2, and replace every crossing of edges with a crossover gadget shown in the diagram. It consists of the following new clauses:
[math]\displaystyle{ \begin{array}{ll} (\lnot a_2 \lor \lnot b_2 \lor \alpha) \land (a_2 \lor \lnot \alpha) \land (b_2 \lor \lnot \alpha), &\quad \text{i.e.,} \quad a_2 \land b_2 \leftrightarrow \alpha \\ (\lnot a_2 \lor b_1 \lor \beta) \land (a_2 \lor \lnot \beta) \land (\lnot b_1 \lor \lnot \beta), &\quad \text{i.e.,} \quad a_2 \land \lnot b_1 \leftrightarrow \beta \\ (a_1 \lor b_1 \lor \gamma) \land (\lnot a_1 \lor \lnot \gamma) \land (\lnot b_1 \lor \lnot \gamma), &\quad \text{i.e.,} \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) \land (b_2 \lor \lnot \delta), &\quad \text{i.e.,} \quad \lnot a_1 \land b_2 \leftrightarrow \delta \\ (\alpha \lor \beta \lor \xi) \land (\gamma \lor \delta \lor \lnot \xi), &\quad \text{i.e.,} \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{i.e.,} \quad a \leftrightarrow a_2, ~ b \leftrightarrow b_2 \\ \end{array} }[/math]
If the edge (a, c1) is inverted in the original graph, (a1, c1) should be inverted in the crossover gadget. Similarly if the edge (b, c2) is inverted in the original, (b1, c2) should be inverted.
One can easily show that these clauses are satisfiable if and only if [math]\displaystyle{ a \leftrightarrow a_1 }[/math] and [math]\displaystyle{ b \leftrightarrow b_1 }[/math].
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.[2]
Reduction from Planar SAT is a commonly used method in NP-completeness proofs of logic puzzles. Examples of these include Fillomino,[10] Nurikabe,[11] Shakashaka,[12] Tatamibari,[13] and Tentai Show.[14] 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.
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 via a reduction from planar monotone rectilinear 3SAT.[15]
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.[16]
A related problem is minimum-weight triangulation - finding a triangulation 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.[17]
![]() | Original source: https://en.wikipedia.org/wiki/Planar SAT.
Read more |