Geometric secluded paths and planar satisfiability
Kevin Buchin, Valentin Polishchuk, Leonid Sedov, Roman Voronov

TL;DR
This paper studies paths with minimal visibility in polygonal domains, providing approximation algorithms and complexity results, and explores connections to satisfiability problems.
Contribution
It introduces a PTAS for minimum-exposure paths with integral exposure and analyzes complexity for 0/1 exposure, linking the problem to planar satisfiability.
Findings
PTAS developed for integral exposure paths in polygons.
Shortest path minimizes exposure in simple polygons, NP-hard with holes.
Connections established between geometric exposure and planar satisfiability.
Abstract
We consider paths with low \emph{exposure} to a 2D polygonal domain, i.e., paths which are seen as little as possible; we differentiate between \emph{integral} exposure (when we care about how long the path sees every point of the domain) and \emph{0/1} exposure (just counting whether a point is seen by the path or not). For the integral exposure, we give a PTAS for finding the minimum-exposure path between two given points in the domain; for the 0/1 version, we prove that in a simple polygon the shortest path has the minimum exposure, while in domains with holes the problem becomes NP-hard. We also highlight connections of the problem to minimum satisfiability and settle hardness of variants of planar min- and max-SAT.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Figure 18
Figure 19
Figure 20
Figure 21
Figure 22
Figure 23
Figure 24
Figure 25
Figure 26
Figure 27
Figure 28
Figure 29
Figure 30
Figure 31
Figure 32
Figure 33Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\nolinenumbers
Department of Mathematics and Computer Science, TU Eindhoven, the [email protected] Communications and Transport Systems, ITN, Linköping University, [email protected] Institute of Mathematics and Information Technologies, Petrozavodsk State University, [email protected]
\ccsdesc[100]Theory of computation\ccsdesc[100]Computational geometry
\CopyrightKevin Buchin, Valentin Polishchuk, Leonid Sedov, Roman Voronov
Geometric secluded paths and planar satisfiability
Kevin Buchin
Valentin Polishchuk and Leonid Sedov
Roman Voronov
Abstract
We consider paths with low exposure to a 2D polygonal domain, i.e., paths which are seen as little as possible; we differentiate between integral exposure (when we care about how long the path sees every point of the domain) and 0/1 exposure (just counting whether a point is seen by the path or not). For the integral exposure, we give a PTAS for finding the minimum-exposure path between two given points in the domain; for the 0/1 version, we prove that in a simple polygon the shortest path has the minimum exposure, while in domains with holes the problem becomes NP-hard. We also highlight connections of the problem to minimum satisfiability and settle hardness of variants of planar min- and max-SAT.
keywords:
Visibility, Route planning, Security/privacy, Planar satisfiability
1 Introduction and Related work
Both visibility and motion planning are textbook subjects in computational geometry – see, e.g., the respective chapters in the handbook [21] and the books [38, 20]. Visibility meets routing in a variety of geometric computing tasks. Historically, the first approach to finding shortest paths was based on searching the visibility graph of the domain; visibility is vital also in computing minimum-link paths, i.e., paths with fewest edges [34, 43, 35, 28]. ”Visibility-driven” path planning has attracted also some recent interest [3, 48, 41]. In addition to the theoretical considerations, visibility and motion planning are closely coupled in practice: computer vision and robot navigation go hand-in-hand in many courses and real-world applications.
The question of hiding a path in a polygonal domain was first raised in a SoCG’88 paper [19]: it considered the robber route problem in which the goal is to minimize the length traveled within sight of at least one of a number of threats (each threat being a point); the problem reduces to finding the shortest path in the metric that assigns a cost of 1 to the union of the visibility polygons of the threats, and 0 to the rest of the domain (and infinite weight to the complement of the domain, where travel is forbidden). Our settings are different from [19] in two aspects: (1) we have a continuum of the threats (every point in the domain is a threat) and (2) in the integral version, we care for how long threats are seen from points along the path (formally: we integrate the visible area along the path); in other words, we account for the “intensity” of the visibility from the threats.
Lately, motivated by the rise of the Internet of things (IoT) and mobile computing, there has been a surge of research on anonymity, security, confidentiality and other forms of privacy preservation (in particular, in geometric environments [4]), studying paths with minimum exposure to sensors in a network [15, 47, 42, 17]. The standard model, again, assumes a finite number of point sensors, so the visibility is changing discretely, as the path goes in/out of a sensor coverage. To our knowledge, Lebeck, Mølhave and Agarwal [29, 30] were the first to introduce integration of the visibility continuously changing along the path (which is also one of our models). Our paper is different from Lebeck et al. in that we give algorithms with provable theoretical performance in continuous domains under the usual notion of distance-independent visibility. Lebeck et al. presented strategies with outstanding practical performance on discretized terrains, in the more realistic model of visibility deteriorating with distance.
Minimizing the integral exposure can be viewed as an extension of the weighted region problem (WRP) [13, 36, 26, 39, 2, 9, 10, 8] to the case of continuously changing weight, where the weight of a point is the area of its visibility polygon; in the WRP the input is a weighted polygonal subdivision of the domain (with a constant weight assigned to each cell of the subdivision) and the goal is to find the path minimizing the integral of the weight along the path. The computational complexity of the WRP is open; PTASs for the problem have running times that depend not only on the complexity of the subdivision, but also on various parameters of the input like ratio of max/min weight, largest coordinate and angles of the regions, etc. (the parameters differ between the algorithms, see [45, Ch. 31] for details). Integration of other measures of “local quality” (different from visibility) for points along a path was the subject also in the study of high-quality paths [49, 1] and related research [51, 50].
Recent papers [7, 18, 32, 46] explored paths adjacent to few vertices in graphs; such paths were dubbed secluded in [7]. Our paper may thus be viewed as studying geometric versions of the secluded path problem.
Contributions and Roadmap
In Section 2 we prove that in a polygonal domain with holes it is NP-hard to find a path, between two given points, minimizing the area seen from the path; the reduction is from minSAT (find the truth assignment to Boolean variables so as to satisfy the minimum number of given disjunctive clauses). In Section 2.1 we complement the hardness by showing that in a simple polygon, shortest paths are the ones that see minimum area; even more generally, we prove that in a polygon with holes, a locally shortest path sees less area than any path of the same homotopy type (because for a small number of holes the homotopy types can be efficiently enumerated, this implies that the problem is FPT parameterized by the number of holes). Section 3 gives a PTAS for minimizing the integral of the seen area along the path; we first give a generic scheme for building a piecewise-constant approximation of the visibility area for points in the domain, and then in Section 3.2 present details of an implementation which allows applying a PTAS for WRP on our “pixels” with approximately constant seen area. Finally, in Section 4 we further explore the connection between path hiding and minSAT, and determine hardness of versions of planar minSAT (and maxSAT).
Tables 2 and 2 summarize the results. We leave open designing an approximation algorithm for minimizing the seen area, as well as the complexity of the integral version of the problem.
Notation and Problems formulation
We use to denote the measure of a set, i.e., length of a segment and area of a 2D set. Let be a polygonal domain with vertices and be two given points in it. For a point let be the visibility polygon of , i.e., the set of points seen by . We study the following problems:
- •
Geometric Secluded Path: Find the - path that sees as little area of as possible (the area seen by a path is defined as the area seen by at least one point of the path, i.e., the so called weak visibility region of the path).
- •
Integral Geometric Secluded Path: Find the - path that minimizes the integral of the area of the visibility polygon over the points along the path, .
2 Minimizing seen area
We prove that exposure minimization is NP-hard in general, but in simple polygons the minimum-exposure path is the shortest path.
Theorem 2.1**.**
Geometric Secluded Path* is NP-hard.*
Proof 2.2**.**
We reduce from min2SAT: find truth assignment for a set of variables, satisfying the minimum number of given two-literal disjunctive clauses. (Inside this proof will denote the number of variables and the number of clauses.) Figure 1, left illustrates the construction. A variable gadget is an isosceles triangle. The triangles for the variables are stacked into a Christmas tree, with and placed at the top and the root respectively. Going through the left (resp. right) vertex of a triangle represents setting the variable to True (resp. False). The clauses are all put on a horizontal line above the Christmas tree so that the segment between any literal and any clause does not intersect the tree. Each clause is connected to its literals, and all connections (including the ones forming the Christmas tree edges) are thin corridors forming the domain; a clause gadget is simply the intersection of the two corridors. The idea of the reduction is to have an - path go through all variable gadgets, choosing whether to go through the variable or its negation in every gadget: the fewer clause gadgets are seen, the fewer clauses are satisfied.
A few technicalities have to be taken care of:
- •
Two variable–clause corridors, leading to different clauses, may intersect midway, meaning that the intersection area may be seen twice. We have to make sure that the area of such a midway intersection is much smaller than the clause gadget area. Being smaller by a factor will suffice: even if parts of a corridor are seen due to the midway intersections with all (at most ) other corridors, the total seen corridor’s midway area will still be smaller (by a factor ) than the area of a single clause gadget. Moreover, with such small midway intersections, they may be neglected altogether when counting the areas of clause gadgets seen from literals: the total areas of all (at most midway intersections) will be smaller by at least a factor of than the area of a single clause gadget. To reduce areas of the midway intersections in comparison to the clause gadgets areas, we put the clause gadgets high above the Christmas tree – at height , to be determined later (Fig. 1, middle). The area of intersection of two corridors (Fig. 1, right) is inversely proportional to the sine of the angle between the corridors (the corridors are all of the same width), so the smallest-area clause gadget would be the one for the clause placed directly above the apex of the Christmas tree (since we do not control which clause goes where on the clauses line, we have to consider the worst case); let be the angle between the corridors defining the gadget. Assuming the height of every variable gadget triangle is and their bases have lengths (refer to Fig. 1, middle),
[TABLE]
On the other hand, the smallest angle between two interesting corridors that do not lead to the same clause (i.e., the smallest angle that may define the area of a midway intersection) can be formed by corridors leading to last and last-but-one clause from the last-but-one and last variables resp. (changing the endpoints of the corridors would only increase the angle of intersection); the angle is
[TABLE]
By trigonometric formulas, the ratio , after being squared a constant number of times, is a ratio of polynomials. A Mathematica script shows that this ratio tends to infinity as grows (Appendix C gives the Mathematica listing); hence, at a polynomially large , the ratio becomes larger than , as we need.
- •
We make sure that the area, around a clause gadget, seen from one literal but not from the other (Fig. 3, left), is negligible in comparison with the clause gadget area (seen from both literals of the clause). This is already taken care of by the above, as the whole construction is made tall (large ).
- •
Leakage of paths from the Christmas tree into variable–clause corridors is prevented by attaching a large-area chamber to each corridor (between the literal and the first intersection of two corridors), so that a path going through the corridor would see the whole area of the chamber. To ensure that the area of a single chamber is larger than the area seen by any path through the Christmas tree, the whole construction is scaled up while keeping the width of the corridors fixed: since the areas available for the chambers grow quadratically with the scaling factor and the areas seen along the corridors grow linearly, a polynomial scaling will suffice to ensure that the chambers areas are large enough to prevent the path going anywhere except through the variable gadgets.
- •
We attach area equalizers to the literals so that no matter whether the path passes through the variable or its negation, it sees the same non-clause area (the areas may be different between the different variables; we only make sure that for any single variable the seen non-clause area does not depend on whether the variable is set to true or false by the path).
- •
In the construction so far, different clause gadgets may have different areas; let denote the smallest area of a clause gadget. We make sure that all clause gadgets have area , which can be done e.g., by appropriately cutting off the clause gadgets from the top (Fig 3, right).
Now, all - paths, going through the Christmas tree only, will see the same non-clause area . The total area seen by a path is then where is the number of clauses seen by the path, which is the same as the number of clauses satisfied by the truth assignment set by the path (we say that the seen area is approximately equal to because of the non-counted areas that may be seen—midway intersections and parts seen by one literal only—which we made sure to be negligible in comparison with ).
In Section 4 we discuss why we could not use planar min2SAT to prove hardness of Geometric Secluded Path, avoiding dealing with the crossings.
2.1 Simple polygons
We show that in a simple polygon shortest paths see least area:
Theorem 2.3**.**
If is a simple polygon, the shortest - path is the solution to Geometric Secluded Path.
Proof 2.4**.**
The visibility polygon () of a point is bounded by edges and chords of , with each chord connecting a vertex of the polygon to a point on its boundary. If is a simple polygon and does not see (), then there is a unique chord separating from ; the chord is called the essential cut of [6] (Fig. 3).
If an essential cut does not separate from , then the shortest - path does not cross the cut, for otherwise, the path could be shortcut along the cut. That is, the shortest path crosses those and only those cuts that separate from . But any other path also has to cross all such cuts, i.e., has to see all the points seen by the shortest path.
For polygons with a small number of holes one may go through all homotopy types of simple (without self-intersections) - paths: a simple argument (Lemma A.1 in the appendix) shows that a shortcut of a path sees less than the original path, and hence the locally shortest path is the secluded path within its homotopy class.
3 A PTAS for minimizing integral exposure
In Section 3.1 we give a generic way to partition the domain in such a way that the visible area is approximately constant within a cell of the partition; then in Section 3.2 we present details of a slightly different partitioning, having straight-line edges, on which a PTAS for the WRP can be applied to find the path with approximately minimum integral exposure.
3.1 Reduction to WRP with curved regions
We first compute the visibility graph of , i.e., the graph connecting pairs of mutually visible vertices of the domain, and extend every edge of the graph in both directions maximally within . The extensions of the visibility edges split into cells such that the visibility polygon () is combinatorially the same for any point within one cell of the subdivision; the subdivision is called the visibility decomposition of [5]. In particular, the area —()— is given by the same formula for any point in one cell of the decomposition. Specifically, the rays from through the seen vertices of split () into triangles (Fig. 5, left). The side of any triangle, opposite to , is a subset of an edge of ; we call this side the base of the triangle. Each of the other, non-base sides is formed by a ray passing through a vertex of and ending at a point on the base. (In Section 3.2 we will differentiate between fixed-endpoint sides for which is an endpoint of the base and rotating rays which rotate around if moves; here we treat both types of sides with a single formula, since fixed-endpoint sides may be viewed as a special case of rotating sides with .)
To write the formula for the area of the triangle , we follow [11, Appendix A.1] and assume that the base is the x-axis and that both and lie above the base (); then the abscissa of is (Fig. 5, right). Let be the vertex that defines the other side, , of ; to simplify the formulas, assume w.l.o.g. that lies on the y-axis: . The abscissa of is then , and the area of the triangle is
[TABLE]
Next, to obtain a piecewise-constant (1+)-approximation of the area —()— visible from point , we use level sets of the area function (1). For a given area , the equality is attained along the curve
[TABLE]
Consider a cell of the visibility decomposition. We split with the curves for a set of areas forming geometric progression with common ratio 1+: . Let denote the set of points for which the area of the triangle is between and (that is, are the points between and ). We call a curved sector because in equation (2), we have for any , i.e., all curves have as a common point. (We put a GeoGebra graphics to play with the level sets to see how they look at https://www.geogebra.org/m/cvxvhfcf.) We assign the same weight to all points in the curved sector; this way, for the weight of any point is within factor 1+ of the area of the triangle :
[TABLE]
For every cell of the visibility decomposition, we overlay the level sets from each of the triangles of () for . We confine the level sets to the cell, i.e., for each curve use only the intersection . We call each cell of the overlay a region and set the weight of the region to the sum of the weights of the curved sectors whose intersection forms the region.
To bound the number of level sets used (i.e., to determine the first area in the geometric sequence and the needed length of the sequence), assume that vertices of have integer coordinates and let denote the largest coordinate. (This model and its variants are common for WRP; in particular, the running times of known solutions for WRP [36, 26, 2, 9, 10, 8] depend on .) Now, consider a triangulation of – any point lies inside a triangle of and sees all of the triangle; thus the area —()— is at least the area of . Since has integer coordinates, by Pick’s Theorem [22] the area of the triangle is at least 1/2:
[TABLE]
We are now ready to prove that it suffices to have
[TABLE]
Indeed, suppose () consists of triangles of areas and let be the weights of the curved sectors that form the region to which belongs; the weight of the region is thus . Classify the triangles as “small” and “large”, with the former having area at most (and thus having lie in the sector ) and the latter having area larger than (with in a sector for ); let be the indices of the large triangles. By (3), for every large triangle , . Since , we have
[TABLE]
where the last inequality is due to (4).
Proposition 3.1**.**
If WRP on regions with curved boundaries of constant algebraic complexity can be (1+)-approximated in time , then a -approximation to the minimum integral exposure path can be found in time .
Proof 3.2**.**
For an upper bound on the sector weight, note that obviously . Hence, the number of needed level sets is at most . The level sets are defined for each of the triples where are vertices and is the side of containing ; thus overall there are level set curves. Since each curve has constant algebraic degree (cf. (2)), any two curves intersect times, so the complexity of the overlay of the level sets inside the cell of the visibility decomposition is . Since there are cells, our construction splits into regions of constant weight.
By (6), region weights approximate the visibility area to within 1+ (use :=/2 to get rid of the factor 2 in front of ); hence finding a (1+)-approximate solution to the WRP on our regions provides a -approximation to the minimum integral exposure path. Formally, let be the minimum integral exposure path (the optimal solution to Integral Geometric Secluded Path), let be the minimum-weight path through our regions (the optimal solution to WRP) and let be the (1+)-approximate solution to WRP; then
[TABLE]
where the first inequality is due to the left inequality of (3), the second is because approximates , the third is because is optimal w.r.t. , and the last one is due to the right inequality in (3).
3.2 A detailed implementation
Applicability of Proposition 3.1 remains questionable due to absence of an algorithm for WRP with curved regions boundaries. In this section we present another, direct approach to reduce our problem to WRP on a polygonal subdivision. We refine the visibility decomposition (without affecting the asymptotic complexity) and recalculate the area functions so that they have linear levels. This way, the regions in the overlay of the level sets are convex, so existing WRP solutions can be applied directly.
Specifically, we differentiate between fixed-endpoint and rotating sides of the triangles into which () is split: the former end at a vertex of while the latter rotate around a vertex if moves (see Fig. 5, left). Triangles whose both sides are fixed-endpoint are easy to handle: (while the area of each individual triangle changes as moves,) the total area of all such triangles remains the same (moving just redistributes the area between the triangles, “stealing” from some and “giving” to others). We therefore call such triangles fixed.
Consider now a triangle whose both sides are rotating around vertices resp. (this is the most general case: if one of the sides, say, is fixed, we can just assume ); assume that is horizontal (Fig. 5, left). We refine the visibility decomposition by extending the vertical segments through each of maximally up and down; let be the feet of the perpendiculars dropped from and resp. onto the supporting line of (any of may lie only partially inside , as in Fig. 5, right – this is not an issue). Note that may be added to the fixed-triangles areas – the total area of all fixed triangles plus the areas of the pentagons for all the triangles with as the apex does not depend on (while remains in the same cell). Denote this total area by . The area is obtained from by adding/subtracting the areas of the triangles for all vertices on which a side of a triangle of () rotates – whether is added or subtracted depends on whether the triangle is in () or not:
[TABLE]
where and (resp. ) is the set of vertices whose triangles are visible (resp. invisible) from .
Assume that is the origin and that the supporting line of is the horizontal line , and let with (Fig. 6, left). Then
[TABLE]
and a level set of the function (9) is a ray (emanating from the origin) of constant : since the height of the triangle is fixed, is constant whenever is fixed. As in Section 3.1, we draw the rays for a set of areas forming geometric progression with common ratio 1+ and assign the weight to all points in the sector between and (we again use the weight for points between and ). Also as in Section 3.1, we define a region as a cell in the overlay of the rays emanating from the vertices of . Finally, the weight of any point in a region is determined by and the weights of the sectors forming the region: for a vertex the weights of the sectors of are added to regions weights; for a vertex , the weights are subtracted (Fig. 6, right).
The fact that our subdivision into regions provides a (1+)-approximation to —()— can be argued similarly to Section 3.1; see Appendix B for the formulas:
Theorem 3.3**.**
If WRP on regions can be (1+)-approximated in time , then a -approximation to the minimum integral exposure path can be found in time .
4 On planar optimal satisfiability
In this section we return to the (non-integral) Geometric Secluded Path problem (Section 2) and elaborate on its connections to planar satisfiability, identifying, in particular, polynomially solvable and hard versions of planar minSAT and maxSAT.
For a SAT instance with variables and clauses , the graph of the instance is the bipartite graph whose vertices are the variables and the clauses, and whose edges connect each variable to a clause whenever the variable or its negation appears in the clause. In a planar SAT, is planar. Planar SAT has been the staple starting point for hardness reduction in computational geometry. In many cases, hardness of geometric problems was proved using restricted hard versions of planar SAT, such as:
V-cycle SAT:
remains planar after adding a cycle through ( is no longer bipartite)
VC-cycle SAT:
remains planar after adding a cycle through (this version, as well as V-cycle SAT were defined already in the original paper on planar SAT [31])
Separable SAT:
A further restriction of V-cycle SAT: for any variable , the V-cycle separates clauses containing from the clauses containing ; in other words, no variable has an -containing clause and a -containing clause on the same side of the V-cycle (this version is from [31, Lemma 1], but has no name there; we take the name from [44])
Monotone SAT:
In any clause, all variables are either non-negated or all variables are negated (this version is defined for general, not only for planar SAT)
See [14, 44, 40] for in-depth treatment of restricted planar SAT versions and their uses.
When proving hardness of Geometric Secluded Path in Section 2 (Theorem 1) we spent considerable effort on dealing with crossings between variable–clause connectors. A natural question is why we did not reduce from planar minSAT. The answer is that to avoid crossings, our reduction should better start from separable minSAT (Fig. 7, left), so that for any variable , the connections from literal reside on one side of the Christmas tree and the connections from – on its other side (otherwise, a connection from, say, would cross the Christmas tree itself; Fig. 7, middle). However:
Theorem 4.1**.**
Separable minSAT can be solved in polynomial time.
Proof 4.2**.**
Let be the clauses on one side of the variable chain and – the clauses on the other side. Construct the “clause conflict” graph [33] whose vertices are the clauses and whose edges connect two clauses whenever one contains the negation of a literal in the other (Fig. 7, right). For any edge, at least one of the conflicting clauses will be satisfied in any truth assignment; thus, every edge in the graph will be incident to a satisfied clause. In particular, solving the minSAT is equivalent to finding minimum vertex cover (VC) in . By the separability, for any variable , all clauses with are in and all clauses with are in (or vice versa); thus, any edge of connects a clause in with a clause in , i.e., is bipartite, and the VC in it can be found in polynomial time.
Note that the above proof does not use the planarity. In particular, monotone minSAT can be solved similarly: the clauses with all positive variables can form the set and the clauses with all negative variables – set in the graph from the proof. We thus have:
Corollary 4.3**.**
Monotone minSAT (planar or not) can be solved in polynomial time.
In Appendix D we prove NP-hardness of V- and VC-cycle min2SAT, as well as hardness of all four versions of planar max2SAT (these do not have relation to secluded paths; we give the proofs just for completeness of our treatment of planar optSAT):
Theorem 4.4**.**
The following planar versions of max2SAT are NP-hard: V-cycle, VC-cycle, monotone, separable. V- and VC-cycle min2SAT are NP-hard.
5 Conclusion
We studied minimum-exposure paths in polygonal domains. We showed that minimizing seen area is hard in polygons with (large number of) holes, while in polygons with a small number of holes the - path that sees least area can be found in polynomial time. We also gave a PTAS for finding an - path minimizing the integral of the seen area along the path. Finally, we discussed the connection between the geometric secluded paths and optimizing planar satisfiability, and identified hard and easy cases of planar optSAT (while the planar optSAT variants, which we proved hard, were not used in reductions in this paper, we hope that they may be useful in other settings). We conclude with some remarks on each of the problems studied.
Minimizing seen area and Secluded paths in graphs
Recall that in Secluded Path (the original, graph problem) the goal is to find an - path adjacent to fewest vertices of the graph (vertices of the path itself are also counted as adjacent to the path). The problem was proved hard in [7]. Our proof of hardness of Geometric Secluded Path (Theorem 1) gives an alternative proof of hardness of Secluded Path in graphs: simply remove equalizers and leakage-blocking chambers from Fig. 1 (no need to care about midway intersections and all the other geometric technicalities) and add a large number of extra vertices adjacent to each clause vertex (Fig. 8, left). While our proof is simpler than the ones in [7], it is less powerful because Chechik et al. [7] showed also hardness of approximation. In fact, the reduction in [7], shown here on Fig. 8, right, may also be seen as reduction from minSAT (in view of the connection between minSAT and VC in the clause conflict graph – see proof of Theorem 4.1): the choices that the - path makes in the edges of the original graph may be seen as setting the truth values to the variables (similarly to how the path through our Christmas tree does it).
A natural question, arising in view of the effort we spent dealing with the crossings in Section 2 when proving hardness of Geometric Secluded Path (Theorem 1), is why we did not reduce from Secluded Path in planar graphs. The answer is that we are not aware of a hardness result for the problem in planar graphs. Indeed, even though Chechik et al.’s hardness proof for general graphs (refer to Fig. 8, right) could reduce from VC in a planar graph , in order to keep the planarity also in the resulting graph (in which the secluded - path is sought), the added path (crossing all edges of ) must cross each edge exactly once, meaning that it is an Euler path in the planar dual of , meaning that the dual has vertices of even degree only, meaning that has faces with even number of edges, meaning it has only even cycles, meaning it is bipartite, meaning VC is polynomial in it. (Strictly speaking, since we need only an Euler path through the edges, not Euler cycle, may have 2 odd faces – we believe VC is still polynomial in such graphs).
The PTAS for integral seen area minimization
Several remarks on the complexity of our solution:
- •
A faster algorithm for our problem could potentially be obtained by using a “1D” discretization of edges of the visibility decomposition (instead of creating a 2D “grid” of regions, as we do), as done in many algorithms for WRP (and related problems on minimizing path integral [49, 1]). Such a solution, however, would require knowing the optimal path connecting points on the boundary of the same cell of the decomposition. This, may be quite complicated, as it amounts to minimizing the integral of a function with terms, for which an analytical solution might not exist (though an approximation may be possible).
- •
An algorithm for WRP with regions whose boundaries are curves of constant algebraic degree could be interesting and would lead to a solution of our problem just using the generic scheme from Section 3.1. The biggest stumbling block for the design of such an algorithm may be the non-convexity of the regions, implying that a segment between two points on the boundary of a region is not guaranteed to stay inside the region. It may be possible that WRP techniques could be adapted to handle our regions from Section 3.1 by approximating their boundaries with piecewise-linear functions (since we are looking only for a (1+)-optimal path, the fineness of such piecewise-linear approximation would also be controlled by ).
- •
Since our problem is an extension of WRP to the case of continuously changing weight, it may be tricky to establish hardness of the problem, as the complexity of WRP has remained open for many years (see [13] for a recent proof of algebraic complexity of WRP). Differently from 0/1 exposure (Theorem 3), even in simple polygons the shortest path does not necessarily minimize the integral exposure (Fig. 9).
Optimal 2-satisfiability
Few observations on min2SAT and max2SAT:
- •
Monotone minSAT is an example of the tractable class of submodular function minimization [25].
- •
Planar max2SAT has a PTAS [12, Thm. 8.8].
- •
If in a separable max2SAT with VC cycle, the cycle also separates the variables at the clauses (i.e., if at each clause the connections from the two variables come from the different sides of the cycle), then the problem can be solved in polynomial time by reduction to separable min2SAT (Theorem D.2 in the Appendix D).
Acknowledgements.
We thank Mike Paterson for raising the question of finding minimum-exposure paths, and the anonymous reviewers for the comments improving the presentation of the paper; we also acknowledge discussions with Irina Kostitsyna, Joe Mitchell and Topi Talvitie. Part of the work was done at the workshop on Distributed Geometric Algorithms held in the University of Bologna Centre at Bertinoro Aug 25-31, 2019. VP and LS are supported by the Swedish Transport Administration and the Swedish Research Council.
Appendix A Polygons with small number of holes
Lemma A.1**.**
Let be a segment in a polygonal domain , and let be an path homotopically equivalent to . If a point is seen from , then it is also seen from .
Proof A.2**.**
Assume that does not intersect other than at – this assumption is w.t.o.g. since we may separately consider each subpath of between consecutive intersection points with . Let be a point which sees (Fig. 10). Extend the segment maximally in both directions, until it hits the holes (it may be that and that any of is the outer polygon of ); let be the extended segment. If does not intersect , then at least one of the holes is inside the closed loop formed by and , implying that is not homotopically equivalent to – a contradiction. Thus, intersects and sees at the point of intersection.
It follows that in a polygon with small number of holes, the secluded path may be found by scrolling through all homotopy types of simple - paths (e.g., by guessing the order in which the locally shortest path touches the holes [37, Section 4]), finding the shortest path of each homotopy type (e.g., using [24]) and choosing the locally shortest path that sees least (clearly, the area seen by a given path can be calculated in polynomial time).
Appendix B Formalities omitted from Section 3.2
For a point , split the areas from (8) into large (larger than ) and small (the others). By construction, the area of every large triangle is (1+)-approximated by the weight of the sector to which belongs
[TABLE]
while for small
[TABLE]
In particular, since there are at most small triangles, their total area is at most (cf. (4)); thus replacing with for each small triangle changes —()— by at most an additive —()—.
Formally, let (resp. ) denote the vertices in (resp. ) for which is small. We can expand (8) into
[TABLE]
The weight is obtained by replacing in each summand with the area of the sector :
[TABLE]
[TABLE]
Observe that even if the triangles from are removed from (), the point still sees a non-negative area, i.e.,
[TABLE]
which means that
[TABLE]
Substituting this into (14) and comparing with (12), we get
[TABLE]
On the other hand, from (10)-(13),
[TABLE]
[TABLE]
[TABLE]
[TABLE]
Similarly to (7), the above proves the approximation ratio:
[TABLE]
where is the (1+)-approximate path through our weighted regions and is the path with minimum integral exposure.
Overall, in comparison with Section 3.1, the regions in our WRP now have straightline boundaries, so a standard WRP algorithm can be applied. Also, the number of regions is decreased, because a sequence of the level sets is defined by a pair where is a vertex of and is the side of containing ; thus overall there are level sets. The level sets are overlaid with the extensions of the visibility graph edges, defining the visibility decomposition (we let the level sets straddle through the cells of the visibility decomposition since the level sets are the same irrespective of the cell; the only term in formula (8) for —()— that changes from cell to cell is ). Thus overall there are regions and similarly to Proposition 3.1 we have: See 3.3
Appendix C Mathematica listing
See ratioMathematica
Appendix D Hard planar versions of min2SAT and max2SAT
We prove Theorem 4.4, restated also here:See 4.4
Proof D.1**.**
Planar min2SAT (without V- or VC-cycle) was proved hard by Guibas et al. in [23, Theorem 3.2] using a reduction from planar 3SAT. We did not see how to add the cycles on top of Guibas et al.’s gadgets, and therefore present a different reduction. Some clauses in our 2SAT instances will have 1 literal (not 2) – we do not differentiate between versions of 2SAT with exactly 2 literals per clause and at most 2 literals per clause (refer to [14, 44] for discussion of the differences between the versions, definitions, hardness proofs and uses of the many versions of satisfiability). We also do not show 1-literal clauses on pictures of our gadgets below, since it is straightforward to add them and extend the cycles to run through them.
To prove hardness of max2SAT with V-cycle, we reduce from V-cycle 1-in-3SAT (find truth assignment to satisfy exactly one literal in each clause) shown hard by Dyer and Frieze [16].111Interestingly, Dyer and Frieze reported that they did not need the cycles for their purposes, but a referee insisted that others might need it later. We replace every clause with 9 clauses: . If none, 2 or 3 of are true, then 6 new clauses are satisfied, if 1 is true – 7 are satisfied, and if all of are true – 3 new clauses are satisfied. That is, clauses are satisfied in the max2SAT instance iff all clauses are satisfied in the 1-in-3SAT. Figure 11, left shows that if the 1-in-3SAT instance is planar, then the max2SAT instance is also planar; since the two instances have the same variables, the V-cycle in 1-in-3SAT is inherited by the max2SAT.
To prove hardness of max2SAT with VC-cycle, we reduce from VC-cycle 1-in-3SAT, also shown hard in [16]. We start from the gadget we used to prove hardness of V-cycle max2SAT (Fig. 11, left) and extend it by adding 2 copies of each of (Fig. 11, right). The copy of forms clauses and clauses ; the number is chosen so large that irrespectively of the rest of the instance, the optimal truth assignment would rather set (which will satisfy all clauses) than set (which will satisfy only ). The same is done with the remaining 5 copies (the other copy of , 2 copies of and 2 copies of ). Now, all clauses can be satisfied in 1-in-3SAT iff clauses can be satisfied in the max2SAT. Finally, note that the VC-cycle in the 1-in-3SAT instance can go through the clause either as in Fig. 12, top left (not separating the variables) or as in Fig. 12, bottom left (separating the variables); Fig. 12, right shows how to run the cycle through the new variables and clauses of max2SAT in both cases.
Next, we prove hardness of planar monotone max2SAT by reduction from planar max2SAT, resolving non-monotone clauses one-by-one as shown in Figure 13: in each non-monotone clause we select one of the variables, say , and split it into three variables so that (the same trick as above, of introducing a large number of “parallel” monochromatic clauses and as the negator, is used to enforce in the optimal truth assignment), and replace with ( is used to pick up all the clauses on the other side of the fixed, monotonized connection).
We prove hardness of separable max2SAT by reduction from planar max2SAT with V-cycle, using the same idea as in proving hardness of monotone planar min2SAT: for any variable that has both positive and negative connections on both sides of the V-cycle, we select one side to be “positive” and the other to be “negative”, and if there are negative connections on the positive side, we split into three variables and fix the connection as shown in Figure 14.
Finally, we show hardness of V- and VC-cycle min2SAT. The hardness of (non-planar) min2SAT was originally shown by Kohli et al. [27] by the following reduction from (non-planar) max2SAT: replace every clause with two clauses , where is a new variable; as is easy to see, in the new instance it is possible to satisfy at most clauses iff it was possible to satisfy at least clauses in the original instance ( stands for the number of clauses in the original max2SAT instance). The reduction is easy to do in a planarity-preserving way; moreover, if we start from VC-cycle max2SAT, its VC-cycle becomes the V-cycle in min2SAT (Fig. 15) – this proves hardness of V-cycle min2SAT. To show hardness of VC-cycle min2SAT, we use the same reduction from V-cycle max2SAT, but look more closely at how the cycle goes through the clause; for each of the 3 different ways (the cycle is on one side of the clause, the other side, or crosses through the clause), we extend the cycle in the min2SAT so that it grabs also the new clauses (Fig. 16).
A separable max2SAT with VC cycle which separates also the variables at the clauses can be solved in polynomial time:
Theorem D.2**.**
Separable max2SAT with VC cycle, in which the VC cycle also separates the variables at the clauses (i.e., at each clause the connections from the two variables come from the different sides of the cycle), is polynomial-time solvable.
Proof D.3**.**
Let be an instance of max2SAT as in the statement of the theorem. The standard reduction from max2SAT to min2SAT [27] (see the proof of Theorem 4.4 above) preserves the planarity. Moreover, the obtained min2SAT instance is separable: the cycle separates the original literals from because is separable, and it separates the new literals in because it separated the connections to clauses in . By Theorem 4.1 the minimum number of satisfied clauses in , and hence the maximum number of satisfied clauses in can be found in polynomial time.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Pankaj K Agarwal, Kyle Fox, and Oren Salzman. An efficient algorithm for computing high-quality paths amid polygonal obstacles. ACM Transactions on Algorithms (TALG) , 14(4):46, 2018.
- 2[2] Lyudmil Aleksandrov, Anil Maheshwari, and J-R Sack. Determining approximate shortest paths on weighted polyhedral surfaces. Journal of the ACM (JACM) , 52(1):25–53, 2005.
- 3[3] Esther M Arkin, Alon Efrat, Christian Knauer, Joseph Mitchell, Valentin Polishchuk, Günter Rote, Lena Schlipf, and Topi Talvitie. Shortest path to a segment and quickest visibility queries. Journal of Computational Geometry , 7(2):77–100, 2016. Special issue on So CG’15.
- 4[4] Boris Aronov, Alon Efrat, Ming Li, Jie Gao, Joseph SB Mitchell, Valentin Polishchuk, Boyang Wang, Hanyu Quan, and Jiaxin Ding. Are friends of my friends too social? limitations of location privacy in a socially-connected world. In Proceedings of the Eighteenth ACM International Symposium on Mobile Ad Hoc Networking and Computing , pages 280–289. ACM, 2018.
- 5[5] Boris Aronov, Leonidas J Guibas, Marek Teichmann, and Li Zhang. Visibility queries and maintenance in simple polygons. Discrete & Computational Geometry , 27(4):461–483, 2002.
- 6[6] Svante Carlsson, Håkan Jonsson, and Bengt Nilsson. Finding the shortest watchman route in a simple polygon. Discrete & Computational Geometry , 22(3):377–402, 1999.
- 7[7] Shiri Chechik, Matthew P Johnson, Merav Parter, and David Peleg. Secluded connectivity problems. Algorithmica , 79(3):708–741, 2017.
- 8[8] Siu-Wing Cheng, Jiongxin Jin, and Antoine Vigneron. Triangulation refinement and approximate shortest paths in weighted regions. In Proceedings of the twenty-sixth annual ACM-SIAM symposium on Discrete algorithms , pages 1626–1640. SIAM, 2014.
