Planar SAT

In computer science, the planar 3-satisfiability problem (abbreviated PLANAR 3SAT) 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.


Example of a planar SAT problem. The red edges correspond to non-inverted variables and the black edges correspond to inverted variables.

Like 3SAT, PLANAR-SAT is NP-complete, and is commonly used in reductions.

Definition

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. Every 3SAT problem can be converted to an incidence graph in the following manner: For every variable , the graph has one corresponding , and for every clause , the graph has one corresponding node We create an edge between variable and clause whenever or is in . We distinguish positive and negative literals using edge colorings.

Planar 3SAT is a subset of 3SAT in which the incidence graph of the variables and the 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 games to be NP-hard.

Proof of NP-completeness

Trivially, PLANAR 3SAT is in NP. It is thus sufficient to show that it is NP-hard via reduction from 3SAT.

First, draw the incidence graph of the 3SAT formula. Since no two variables or clauses are connected, the resulting graph will be bipartite. The resulting graph may not be planar. Replace every crossing of edges with a crossover gadget shown here. However, the figure leads to a minor error—some clauses contain 4 variables and some contain only 2 variables so the premises of 3SAT are not followed exactly in the gadget shown. This glitch is easily fixable: For a clause that only contains 2 variables, either create parallel edges from one variable to the clause or create a separate false variable to include in the constraint.

For the 4 variable clause, borrow the reduction from 4SAT to 3SAT to create a gadget that involves introducing an extra variable set to false which represents whether the left or right side of the original clause contained the satisfying literal. This completes the reduction.

  • Planar rectilinear 3SAT: Each variable is a horizontal segment on the x-axis while each clause is a horizontal segment above the x-axis with vertical connections to the 3 variables it includes on the x-axis. The connections can either be positive or negative. This problem is NP-complete.[1]
  • Planar monotone rectilinear 3SAT: This is a variation of planar rectilinear 3SAT where all positive clauses are above the x-axis and all negative clauses are below the x-axis. This problem is also NP-complete.[2]
  • Planar 1-in-3SAT: This is the planar equivalent of 1-in-3SAT. It is also NP-complete.[3]
  • Planar NAE 3SAT: This problem is planar equivalent of NAE 3SAT. Surprisingly, it can be solved in polynomial time.[4]

Reductions

Shakashaka

Shakashaka is a logic puzzle board game developed by publisher Nikoli. The objective is to fill the white squares in a given grid with a pattern of triangles such that each white area in the resulting grid has a rectangular shape. Furthermore, each black square in the grid marked with a number must be orthogonally adjacent to the specified number of triangles. It has been proven to be NP-complete via a reduction from Planar 3SAT[5]

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 via a reduction from planar monotone rectilinear 3SAT.[6]

Minimum-weight triangulation

This is the problem of 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.[7]

gollark: <@293066066605768714> Observe palaiologistry.
gollark: Not that you care much, I assume.
gollark: I am reducing my opinion of you a few notches.
gollark: Not even through inaction.
gollark: You are LITERALLY worsening the state of software for everyone.

References

  1. Raghunathan, Arvind; Knuth, Donald E. (1992). "The problem of compatible representatives". SIAM J. Discrete Math. 5 (3): 422–427. arXiv:cs/9301116. Bibcode:1993cs........1116K. doi:10.1137/0405033.
  2. De Berg, Mark; Khosravi, Amirali (2010). "Optimal Binary Space Partitions in the Plane". Computing and Combinatorics. Lecture Notes in Computer Science. 6196. pp. 216–225. doi:10.1007/978-3-642-14031-0_25. ISBN 978-3-642-14030-3.
  3. Dyer, M.E; Frieze, A.M (June 1986). "Planar 3DM is NP-complete". Journal of Algorithms. 7 (2): 174–184. doi:10.1016/0196-6774(86)90002-7.
  4. Moret, B. M. E. (June 1988). "Planar NAE3SAT is in P". SIGACT News. 19 (2): 51–54. doi:10.1145/49097.49099. ISSN 0163-5700.
  5. Demaine, Erik D.; Okamoto, Yoshio; Uehara, Ryuhei; Uno, Yushi (2014), "Computational complexity and an integer programming model of Shakashaka" (PDF), IEICE Transactions on Fundamentals of Electronics, Communications and Computer Sciences, E97-A (6): 1213–1219, Bibcode:2014IEITF..97.1213D, doi:10.1587/transfun.E97.A.1213, hdl:10119/12147
  6. Demaine, Erik D.; Eisenstat, Sarah (2011). Dehne, Frank; Iacono, John; Sack, Jörg-Rüdiger (eds.). "Flattening Fixed-Angle Chains Is Strongly NP-Hard". Algorithms and Data Structures. Lecture Notes in Computer Science. Springer Berlin Heidelberg. 6844: 314–325. doi:10.1007/978-3-642-22300-6_27. ISBN 9783642223006.
  7. Mulzer, Wolfgang; Rote, Günter (May 2008). "Minimum-weight Triangulation is NP-hard". J. ACM. 55 (2): 11:1–11:29. doi:10.1145/1346330.1346336. ISSN 0004-5411.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.