Manuscript Offprint
arXiv:2611.02046On Guarding Line Arrangements
Abstract
We study the problem of guarding a set of straight lines in the plane by selecting a minimum-cardinality set of points such that every line contains at least one selected point. This problem is known to be strongly NP-hard [23]. We investigate approximation algorithms for the problem and analyze their performance guarantees under various structural assumptions on the underlying line arrangement. In particular, we present approximation schemes based on set-cover techniques, relaxation methods, and properties of maximal lines. We establish constant-factor bounds on the approximation ratio for several classes of arrangements and derive relationships between the guarding number and the incidence parameters of the arrangement. Connections with Dirac-type incidence results are also explored.
Keywords: Line arrangement, Approximation algorithm, Performance ratio, Dirac's conjecture
1 Introduction
Although straight lines are among the simplest geometric objects, several challenging problems defined on sets of lines continue to attract attention in discrete geometry (see, e.g., [16] and Chapter 7.2 of [26]). Some of these problems have resisted resolution for decades; a notable example is the Dirac-Motzkin conjecture, recently settled for large sets of lines by Green and Tao [15]. Other questions remain open.
The present work concerns several problems related to line arrangements. One of the central problems considered in this paper is the following:
Guarding a Set of Lines (GSL). Given a set of straight lines in the plane, not all of them parallel, find a set of points of minimum cardinality such that each line contains at least one of these points.
The GSL problem can be interpreted as determining the minimum number of locations for guards, cameras, or sensors required to monitor a network of streets, corridors, tunnels, or pipes. Thus, from the standpoint of applications, the problem is related to surveillance and security.
Let denote the minimum number of points (or “guards”) that cover all lines in a set . Megiddo and Tamir showed that GSL is strongly NP-hard [23]; therefore, computing is strongly NP-hard as well. A natural objective is therefore to design approximation algorithms for GSL, which is one of the goals of this paper.
Many geometric hitting set and set cover problems admit constant-factor approximation algorithms under additional structural assumptions. Typical approaches rely on properties such as
*Mathematics Department, SUNY Buffalo State University, 1300 Elmwood Ave., Buffalo, NY 14222. Email: brimkove@buffalostate.edu.
bounded VC-dimension [9], the existence of small -nets [22], bounded union (or shallow-cell) complexity [11], or bounded overlap density. Although these approaches are based on different geometric and combinatorial characteristics, they all exploit restrictions on the complexity of the associated range space that are absent in general instances of Set Cover.
The approach developed in this paper is of a different nature. Rather than relying on global complexity measures of the associated range space, our analysis exploits incidence properties of line arrangements. In particular, the approximation guarantees are derived from bounds involving the degrees of intersection points and the frequencies of lines, that is, the numbers of intersection points lying on a line. Consequently, the approximation guarantees are expressed directly in terms of incidence parameters of the arrangement, most notably the degrees of intersection points and the maximum line frequency .
Given a set of lines , not all parallel, let denote the maximum number of intersection points lying on any single line of . One of the questions we investigate concerns the relationship between and . The quantity is closely related to the weak dual form of Dirac's conjecture on line arrangements of 1951 [13], which will be stated in the next section.
In the following section we introduce several notions and facts used throughout the paper. Section 3 presents approximation algorithms for GSL and analyzes their performance ratios. In particular, we identify classes of line arrangements for which an approximate solution with bounded performance ratio can be obtained. We also examine structural relations between and .
2.1 Some notions and facts
The algorithms presented in this paper rely on well-known procedures for solving basic problems of computational geometry: finding all intersection points of a set of lines, and determining all lines passing through each intersection point. Both problems can be solved by the algorithm of Bentley and Ottmann [4], the algorithm of Chazelle [10], and the optimal algorithm of Balaban [2]. In what follows, we assume that Balaban's algorithm is used. It can also be adapted to determine the intersection points lying on each line, see [7].
Throughout, denotes a set of lines in the plane, not all parallel. Given a graph or hypergraph (resp. a set of lines ), let be a vertex of (resp. an intersection point of lines from ). We denote by the degree of , i.e., the number of edges incident to (resp. the number of lines of passing through ). The quantity denotes the degree of , i.e., the maximum number of lines intersecting at a single point.
A pencil of lines is a set of concurrent lines, and a near-pencil is a set of lines such that of them are concurrent. By we denote the convex hull of a set . An ordinary point is an intersection point of exactly two lines.
Fact 1 A set of lines can contain at most ordinary points, and this is the maximum possible number of intersections in a line arrangement. This bound is attained when every pair of lines intersects and no three lines pass through the same point. We call such a configuration an ordinary line arrangement.
A line in is called maximal if it contains the maximum number of intersections, and minimal if it contains the minimum number of intersections, denoted .
This conjecture is different from the one addressed in [15].
Fact 2 The values and may coincide, as in an ordinary line arrangement where . They may also differ significantly; for example, in a near-pencil, while .
Let be an approximation algorithm for a minimization problem . For an input , let denote the solution returned by , and let denote the value of an optimal solution. The performance ratio of is defined as
We note that the minimum number of guards can be arbitrarily smaller than . For example, if is a near-pencil of lines, then while . On the other hand, it is possible that , e.g., when consists of several parallel lines intersected by a single transversal line.
Fact 3 If contains a line that is not parallel to any other line of , then .
This follows because the intersection points on such a line cover all lines in .
2.2 Guarding a set of lines
Let be partitioned into classes such that two lines are parallel iff they belong to the same class. Let for , and assume .
Megiddo and Tamir [23] (with reference to a scheduling problem [12, p. 54]) established the following fact.
Fact 4 If all intersection points of are ordinary, then Algorithm 1 finds an optimal guarding set of points in polynomial time.
Algorithm 1 : for the case where all intersection points are ordinary
Input: Set of lines with no intersections of more than two lines.
Output: Minimum guarding set for the lines of .
;
until no lines remain in or no intersecting lines remain in do
Choose an arbitrary line from and an arbitrary line from ;
If then set ;
Remove and from ;
Update the classes to maintain for ;
Return and ;
If then stop;
Otherwise, place a guard on each of the parallel lines remaining in ;
Let be the set of these guards; then is a guarding set for the original .
Megiddo and Tamir also proved:
Theorem 1 GSL is strongly NP-hard.
The problem is also known to be APX-hard, meaning that no polynomial-time algorithm can find a solution arbitrarily close to the optimum (unless ).
2.3 Dirac's conjecture
Next we recall Dirac's conjecture [13] and related results.
Dirac's Conjecture. Given a finite set of non-collinear points and the set of all lines containing at least two points of , there exists a point incident to at least lines of .
By line-point duality, this conjecture can be reformulated as follows:
Dirac's Conjecture, dual form. Given a set of lines in the plane, not all parallel or concurrent, there exists a line containing at least intersection points.
Dirac proved a lower bound [13], and for decades this remained the best known bound. Erdős proposed the following weaker form:
Weak Dirac's Conjecture. Given a set of points (resp. lines) in the plane, there exists a point incident to at least lines (resp. a line containing at least intersections) for some positive constant .
This conjecture was proved by Beck [3] and Szemerédi–Trotter [27] with unspecified , later by Payne and Wood [24] with , and refined by Pham and Phi [25] to .
The original Dirac conjecture was shown to be false by several authors [1, 14, 16, 17, 18, 19]. One related conjecture was recently proved by Han [20], yielding the following dual form:
Theorem 2 Every set of lines in the plane, which are non-parallel and do not intersect at the same point, contains a line that has at least intersection points with other lines of .
This bound is attained for certain line arrangements and may therefore be best possible.
Note that it is possible to have and this to be the minimum number of guards covering all lines of , i.e., . This holds, for example, when consists of three lines forming a triangle, or six lines consisting of a triangle and its medians. Other examples include the configurations and from Grünbaum's catalogue [17]. However, may be significantly smaller than , e.g., for a near-pencil of lines for large .
3 Approximation algorithms for GSL
3.1 Set Cover Approximation
The simplest heuristic solution for GSL is a set cover greedy strategy. The GSL problem can be formulated as a set cover instance in which the universe consists of the lines of and each intersection point corresponds to the subset of lines passing through that point. At each step an intersection of highest degree is selected and added to the guarding set. The algorithm terminates when all lines are covered. Consequently, the classical greedy set cover algorithm yields an approximation ratio equal to the harmonic number
According to Grünbaum [16], most early discussions of the problem appeared in this dual form.
which satisfies
Hence GSL admits a polynomial-time -approximation.
We now present a variant of that algorithm which better supports the performance ratio analysis. It is a combination of a set cover greedy procedure and Algorithm 1.
Algorithm 2: set cover greedy + Megiddo-Tamir (hybrid approach)
Input: Set of lines.
Output: Guarding set for the lines of .
Stage 1: while there exists an intersection of degree do Choose an intersection point with highest degree; Remove from all lines through Update degrees of remaining intersection points;
Return and the set of remaining lines;
Stage 2: Apply Algorithm 1 on and obtain a guarding set
Compose as a guarding set for .
Denote Algorithm 2 by . The approximation ratio of Algorithm is . Indeed, the first stage of coincides with the standard greedy set-cover algorithm applied to the line-cover instance. As shown by Hassin and Megiddo [21], the greedy approach may exhibit a logarithmic worst-case performance ratio for line-covering problems. Since makes exactly the same choices during Stage 1, it inherits this logarithmic lower bound. The second stage is invoked only after all intersections of degree at least three have been processed. Thus it can only affect the lower-order part of the solution, does not change the asymptotic behavior, and therefore does not eliminate the asymptotic gap already accumulated during the greedy phase. Consequently, the worst-case approximation ratio of remains .
3.1.1 Elementary bounds for the hybrid algorithm
The following simple bounds on the performance ratio of Algorithm 2 will be used throughout Section 3.1. Their proof is a routine case analysis of Stage 1 and is included for completeness.
Proposition 1 Let be the hybrid algorithm. Then:
Proof At each iteration of Stage 1, the algorithm selects an intersection point incident to at least three lines and removes all lines passing through that point. Thus Stage 1 removes at least three lines per iteration.
Three situations may occur:
(a) All lines are removed in Stage 1. Then at most n/3 points are selected, giving
(b) Only degree-2 intersections remain. The remaining lines form disjoint pairs, optimally guarded by at most points, where is the number of Stage 1 iterations. Since , this yields
(c) Only parallel lines remain. Each remaining line contributes one guard. Since Stage 1 removes at least three lines per iteration, the number of remaining lines is at most , giving
These bounds establish the stated inequalities.
□
3.1.2 Structural tools
The following is a plain fact.
Fact 5 Let be a set of points in the plane and let lines pass through each of these points. Denote by the minimum possible total number of lines passing through the given points over all possible line arrangements. Let . Then:
-
If , then ;
-
If , then .
The following is a generalization of the well-known handshaking lemma to uniform hypergraphs [5].
Lemma 1 Let be an -uniform hypergraph with . Then .
Corollary 1 Let be a hypergraph such that each hyperedge contains at most vertices. Then .
Definition 1 Given a set of points in the plane and a set of lines through these points, define a hypergraph whose edges are
Let a maximal line of contain points. Then Corollary 1 implies
Lemma 2 In any arrangement of lines, the number of intersection points incident to lines is bounded by a constant.
Proof Let be the set of intersection points of degree . Assume for contradiction that Let be the set of lines passing through points of .
If no line contains two points of , then , contradicting .
Thus some line contains at least two points of . Consider the hypergraph from Definition 1. Let be the maximum number of points of on any line. If , then that line contributes lines, again a contradiction. Hence .
Let be the minimum degree in A. Then by (1),
Since , we obtain , a contradiction. Thus .
3.1.3 Constant-ratio classes
Proposition 2 Let be the set of intersection points incident with at least 3 lines. If for some constant c, then Algorithm 2 solves GSL with performance ratio bounded by a constant.
Proof Let p be the size of an optimal solution. Consider separately the three cases from Proposition 1.
(a) Then , so
(If the instance is nontrivial (i.e. not all lines are concurrent), then , so .)
(b) Let be the optimal solution size for . Then the algorithm finds at most points, and since ,
(c) Let r be the number of parallel lines remaining. Then the algorithm finds at most points, giving
Let be the set of intersection points of , and suppose GSL has a solution with . Then one can test all subsets of of size at most . Since , the number of tests is
a polynomial of degree 2c. This is impractical for large c, and requires knowing c in advance. Algorithm 2 avoids both issues.
Recall that means that “dominates” assimptotically. Formally, iff , such that , .
Proposition 3 If the size of an optimal solution satisfies or , then Algorithm 2 finds a solution within a constant factor of the optimal.
Proof First assume that , that is,
for some absolute constant c, 0 < c < 1. Without loss of generality, suppose that
Furthermore, the number of steps performed during Stage 1 satisfies
Therefore, by Proposition 1.
Hence, in this case the approximation ratio is bounded by a constant.
Now assume that , that is,
for some positive integer constant c.
Partition S into three subsets:
• , consisting of points incident to lines;
• , consisting of points incident to and lines;
• , consisting of points incident to lines.
Since , we have
Consider a point of degree . If , then all lines passing through must be covered by points from . However, every point of is incident to only lines, and since , these points together can cover only lines, which is insufficient to cover all lines through . Hence every intersection point of degree must belong to . By the assumption of the theorem and Lemma 2, the number of such points is bounded by a constant.
Next consider a point of degree and . After all points of degree have been selected, removing them decreases the degree of by at most a constant, since . Therefore remains of degree and . If , then its incident lines would have to be covered exclusively by points of , each of which has degree . Since , this is impossible. Consequently, every intersection point of degree and must belong to .
It follows that, before vertices of constant degree are considered, Algorithm 2 selects precisely the points of . After their removal, all remaining vertices have degree . Since , the number of such remaining vertices is also bounded by a constant.
It remains to consider the case in which all remaining uncovered lines become parallel during the construction of . In this case, an optimal completion is obtained by selecting one point on each remaining line. Since the number of such lines is bounded by a constant, this adds only a constant number of points and therefore does not affect the approximation analysis. Thus, Stage 2 contributes only a constant number of points to the solution produced by Algorithm 2.
Hence Algorithm 2 returns a guarding set of cardinality . Since the optimum solution satisfies , the approximation ratio is bounded by a constant as well.
Theorem 3 Let be a set of lines. Suppose that asymptotically the intersection points are either of degree or of bounded degree. Then Algorithm 2 has performance ratio bounded by a constant.
Proof Let be the size of an optimal solution of GSL on . Let be the set of intersection points of degree , and let be the set of all lines through points of .
Consider first the case where an optimal solution does not include some points from . Then all lines through those points must be covered by other guards, so necessarily . By Proposition 3, when Algorithm 2 has performance ratio bounded by a constant.
Otherwise, assume that is contained in every optimal solution. By Lemma 2, is bounded by a constant . In Stage 1, Algorithm 2 always selects an intersection of maximum degree, so it must eventually select all points of before selecting any point of bounded degree: after removing a constant number of lines through previously chosen points of , the remaining points of still have degree , strictly larger than the bounded degrees.
If, after selecting all points of , no lines remain uncovered, then itself is a guarding set of bounded size. Hence is bounded, and the performance ratio of Algorithm 2 is bounded by a constant.
Otherwise, let be the set of lines that remain uncovered after all points of have been selected. Let be the size of an optimal solution for the minimum hitting set problem on . Then any optimal solution for GSL on can be written as
Since , we have .
By assumption, all intersection points of lines in are of bounded degree. Continuing Algorithm 2 on (Stage 1 on bounded-degree intersections, followed by Algorithm 1 on the remaining lines) yields an approximate solution of size such that
for some positive constant .
The algorithm's final solution on is , of size . Thus the performance ratio satisfies
which is a constant independent of .
In all cases, Algorithm 2 has performance ratio bounded by a constant, as claimed.
Remark 1 (Necessity of the conditions in Theorem 3) If the intersection degrees are not restricted to the two regimes of Theorem 3, then the performance ratio of Algorithm 2 cannot be bounded by a constant. Indeed, the general set cover problem has worst-case approximation ratio , and GSL contains set cover instances as special cases (e.g., arrangements where each intersection corresponds to a set and each line corresponds to an element). Thus, unless , no polynomial-time algorithm (including Algorithm 2) can guarantee a constant approximation ratio for all line arrangements. This shows that the structural assumptions in Theorem 3 are essential.
3.2 Relaxation technique
We start with a statement that refines and rounds off those of Fact 4 and Theorem 1. It holds in the general case in which parallel lines as well as intersections of three or more lines may exist, and is a base for an approximation algorithm.
Theorem 4 1. If , then , and an optimal solution can be found in polynomial time.
- If , then
and the computation of an optimal solution is strongly NP-hard.
Proof 1. Assume that
and let
Let , where , be the lines not belonging to . Every such line intersects every line of . Since the lines of are pairwise disjoint, each of them must contain a guard. Hence
Place guards at , then place a guard at each of the lines . Thus, all lines are guarded by guards, which is clearly optimal. The last inequality holds since each line which is not in contains at least intersections with the lines of , and possibly other intersections with lines not in . An optimal solution can be found in polynomial time by the Algorithm 1.
- Now let . The first inequality holds since each line from must contain a guard. Towards proving the second inequality, we construct a new set of lines with , which has classes of parallel lines , as for any , , and such that no three or more lines intersect at the same point. For this we perform the following procedure.
(a) Choose a line which contains at least one intersection point of with at least two other lines. Let be the minimum distance of an intersection point not on to . Replace by a line which is parallel to and is at a distance from .
(b) After finitely many repetitions of Step (a), we obtain a set of lines having the same parallel classes as and containing no intersection point incident with three or more lines. Every multiple intersection of is thus replaced by a collection of ordinary intersections in .
Let be a point of intersection of at least lines of . In these lines are replaced by a set of other lines. Denote it by . Fact 1 implies that in instead of the single intersection point there will be intersection points of pairs of lines from . An optimal solution to the GSL problem on is found in polynomial time by Algorithm 1 and counts intersection points.
Let denote the family of all sets for which contains at least one of the corresponding ordinary intersection points.
Define
and let
Then is a guarding set for with at most elements and thus . Indeed, each point guards all lines represented by the family , while all remaining guarded lines are still covered by points of .
Moreover,
since several points of associated with the same family are replaced by the single point .
The third inequality is implied by Theorem 2: since , we have
The strong NP-hardness of the problem when follows from [23].
Regarding maximal lines, we have:
• If , then only the lines not from can be maximal and .
• If , then there are maximal lines not from ; some (or all) lines from can be maximal, too.
By the first part of Theorem 4, in either case , and an optimal solution can be found in polynomial time as demonstrated in the proof. In the nontrivial case , by the second part of Theorem 4 we have . In fact, this is the case making the GSL problem NP-hard.
Theorem 4 shows that the structural dichotomy known for ordinary arrangements extends to arbitrary line arrangements containing parallel lines and multiple intersections. The perturbation argument provides a mechanism for transferring solutions between the degenerate and nondegenerate settings. The theorem provides a clear structural boundary between the tractable and intractable regimes of the guarding-lines problem. When the dominant parallel class is sufficiently large, the geometry forces every remaining line to intersect it, yielding an optimal solution of size computable in polynomial time. In contrast, when the dominant class is smaller, the problem becomes strongly NP-hard, yet the perturbation argument used in the proof shows that every instance admits a relaxed form with only ordinary intersections and an optimal guarding set of size at most . Such a guarding set can be found by the following algorithm with polynomial time complexity.
In view of Fact 1 and elementary analytic geometry concerning line intersections, it is easy to realize that the algorithm finds an approximation solution with a polynomial number of arithmetic
Algorithm 3 : relaxation technique
Input: Set of lines.
Output: Guarding set for the lines of .
Construct a set of ordinary lines as in the proof of Theorem 4;
Using Algorithm 1, find an optimal solution of GSL on ;
Identify the family of sets of lines which contain at least one element of ;
Determine an approximate solution , where:
;
.
operations, and that the numbers produced in the course of the computation are bounded by a polynomial in the line coefficients.
Denote for short Algorithm 3 by . Note that if some sets contribute to with elements, then will be strictly smaller than , as the value of can be obtained by reducing by for each such . Otherwise, we would have . About the performance ratio of Algorithm 3 we have the following straightforward estimation.
Proposition 4 .
Proof First notice that , , and recall that , , and . Then we have
and
Corollary 2 If for some constant , then .
If for some constant , then .
Although Proposition 4 does not yield a logarithmic worst-case approximation ratio, the relaxation procedure exploits geometric features of the arrangement that are ignored by purely combinatorial covering algorithms. It therefore appears to be a promising framework for obtaining stronger approximation guarantees on restricted classes of line arrangements, a question left for future investigation. One can also first use the relaxation directly to obtain a simple -bounded approximation. Then, by interpreting the relaxed instance as a set-cover problem over a geometrically meaningful candidate family, one can derive a hybrid algorithm that combines geometric preprocessing with the classical greedy set-cover strategy.
3.3 Approximation using and
Let be a set of lines in the Euclidean plane. For a point lying on a line , let denote the set of all lines of passing through . We call the root of the beam .
The following general framework underlies several approximation algorithms for the GSL problem.
General Scheme
-
Choose a line together with its intersection points;
-
For each line parallel to , place a guard at the intersection point of and another line intersecting ;
-
For every beam with a root on whose lines are not yet completely guarded, place a guard at its root.
Algorithm Based on a Minimal Line
Let denote the minimum number of intersection points lying on a line of .
Algorithm 4 Algorithm
Input: Set of lines.
Output: Guarding set .
1: Identify a line containing intersection points;
2: Place guards at all intersection points on ;
3: For every line parallel to , place a guard at an arbitrary intersection point on that line.
Algorithm is clearly polynomial. Its performance ratio satisfies
Thus achieves a bounded ratio whenever . It also has a 'small' performance ratio for any line arrangement with a 'small' . For example, for a near pencil with lines the performance ratio of the Algorithm equals .
Greedy Algorithm Based on a Maximal Line
Let be a line containing intersection points. Let
be the intersection points on ordered so that
Algorithm 5 Algorithm
Input: Set of lines.
Output: Guarding set .
1: Compute and the beams rooted at its intersection points.
2: Process the beams in nondecreasing order of size.
3: Whenever possible, use lines from the current beam to guard uncovered lines parallel to .
4: After all parallel lines have been covered, place a guard at the root of every beam containing an unguarded line.
Fact 6 Within the class of algorithms that following the General Scheme, Algorithm uses the minimum possible number of guards.
Proof Let be the number of intersection points on and let be the number of lines parallel to . Stage 2 of the General Scheme uses lines from beams to guard parallel lines. Every beam whose lines are used in Stage 2 reduces the number of root guards needed in Stage 3 by exactly one.
Let be the number of beams whose lines are fully used in Stage 2. Then the total number of guards placed is
To minimize this quantity, one must maximize . A beam contributes to only if all of its lines are used in Stage 2. Using a beam of size requires guarding parallel lines. Thus smaller beams are easier to use fully. Processing beams in nondecreasing order of size maximizes the number of beams that can be fully used before parallel lines are exhausted. Hence minimizes the number of guards among all algorithms following the General Scheme.
Fact 7 Suppose that at most lines intersect a line at points. Then at least of the corresponding beams have cardinality at most 2.
Proof Let the beams rooted at the intersection points have sizes . Then
Assume fewer than beams have size at most 2. Then at least beams have size at least 3. The total number of lines intersecting is then at least
Since , this quantity exceeds , contradicting the assumption. Thus at least beams have size at most 2.
By Theorem 2, if then , and if or then . In what follows we consider more in detail the first case, the others being analogous. We have the following theorem.
Theorem 5 Let , where , and suppose that belongs to a parallel class consisting of lines.
-
If , then .
-
If , then
In both cases the guard locations can be computed in polynomial time.
Proof We analyze the number of lines intersecting and the distribution of beam sizes.
Case 1: . There are 3k - j lines intersecting at points. Consider the quantity
The first term counts the contribution of intersection points incident with two nonparallel lines; the second counts those incident with one. The inequality
is equivalent to , which is implied by .
Thus at least intersection points on are incident with exactly one nonparallel line. These lines can guard the parallel lines distinct from . Placing guards at the remaining intersection points yields a guarding set of size .
Case 2: .
Let be one of the j parallel lines, where . Then, once again, 3k - j lines intersect at points.
We have
since the above inequality is equivalent to , which is always true.
Inequality (2) implies that contains at least one intersection point p that is incident to exactly one intersecting line, and that there are at least j-1 intersection points (including p) that are incident to at most two intersecting lines.
The extremal case requiring the largest number of guards occurs when p is the only point whose intersection multiplicity is one. In this case, there are at least j-2 points whose intersection multiplicity is two.
Let be the line intersecting at . Place a guard at the intersection of and , thereby guarding both lines. Now let be an intersection point on of multiplicity two, and let and be the two lines intersecting at . Place a guard at the intersection of with an uncovered line parallel to , and another guard at the intersection of with a different uncovered line parallel to . In this way, four lines are guarded.
Repeat this procedure until all lines parallel to are covered. In either case, exactly one guard is placed on each line, for a total of guards. The guards are located at intersections with lines belonging to beams rooted on : one consisting of a single line intersecting , while each of the remaining beams consist of two such lines).
Next we place one guard at each of the remaining
intersection points on . Thus, the total number of guards required to cover all lines is
Clearly, if contains more than one intersection point of multiplicity one, then the total number of guards required to cover all lines can be reduced.
When (i.e., when no other line is parallel to ), the bound reduces to the obvious inequality , stated in Fact 3. If , the upper bound becomes
The guard placement configurations for both cases can be found efficiently. Computing the intersection points along and tracking their line multiplicities requires a single pass over the line system, taking time. The subsequent greedy pairing of parallel lines in Case 2 and the allocation of baseline guards on take at most time. Because the algorithm only needs to store the line coordinates and an intersection matrix, the framework requires memory. Thus, the guard configuration is determined in strictly time and space.
For ‘small’ or ‘large’ values of , certain refinements or alternative estimates for the number of required guards are possible.
Proposition 5 If , then
Proof Since , we have
Since , we have and thus
By Theorem 5.
Proposition 6 Let , where . Then
Proof There are lines intersecting at points. Consider the quantity
This counts the total number of lines intersecting under the assumption that beams have size 1 and the remaining k-i beams have size 2. The inequality
holds for all , so at least beams have size 1.
These beams guard parallel lines. The remaining number of intersecting lines is
and the remaining number of beams is
Since , Fact 7 implies that at least of these beams have size at most 2. These beams guard the remaining parallel lines.
The number of unused beams is
Placing guards at their roots yields a total of
□
Remark 2 Note that the condition used in the proof is not a restriction of the generality. In fact, would imply that . Then every line intersecting a maximal line would contain strictly more intersection points than that maximal line, contradicting its maximality. Moreover, if , then Theorem 5 implies that guards suffices to guard all lines of set .
Proposition 7 1. If , then
- If , then
Proof By Theorem 5,
Similarly,
If , then
and
If , then Theorem 5 implies that uses at most guards, giving the stated bounds.
We define a line arrangement as non-trivial if it excludes configurations that are exactly solvable in polynomial time, such as arrangements where due to large sets of mutually parallel lines, or pencil arrangements.
Theorem 6 Let be a non-trivial arrangement of lines. Then:
-
If , Algorithm achieves a constant approximation ratio.
-
If , then contains both subclasses that admit a constant approximation ratio and subclasses whose hardness matches the general APX-hardness of the problem.
Proof 1. Suppose for some constant . The approximation ratio satisfies
confirming that Algorithm guarantees a constant-factor approximation. For non-trivial arrangements, and , which bounds the constant . Thus, the analytical upper bound evaluates to at least 3.
- Consider an arrangement with a perfect square, in which points are selected such that exactly lines pass through each selected point, and no other multiple intersections occur. For this class of instances, while , yielding . On these instances, the greedy algorithm routinely finds the optimal solution, yielding a perfect approximation ratio of 1.
Conversely, consider subclasses derived from standard geometric reductions of NP-hard hitting set instances. When configured such that , these arrangements preserve the underlying hardness gap, meaning their approximability remains strictly bounded away from 1 by the problem's inherent APX-hardness.
4 Lines and Segments
All questions pertinent to sets of straight lines can also be asked about sets of straight line segments. Various aspects of the problem of guarding a set of segments (GSS) were considered in [6, 7, 8]. In particular, it was shown that GSS is strongly NP-hard [7] and approximation algorithms for the problem were proposed and scrutinized theoretically and experimentally. Next we exhibit a plain relation between GSS and GSL.
Let and be an arbitrary search problem that can be defined on a set of lines and line segments, respectively. Suppose that a solution to an individual problem may be a set of intersection points of lines/segments, and/or a set of segments whose end-points are such intersections. The intersections and the segments formed by may possibly have labelings, which may be involved in the solution. In case of a decision problem the solution may be just Yes or No. In the above setting, we have the following fact.
Proposition 8 If is NP-hard, then is NP-hard. If is in , then is in .
Proof Let be an NP-hard problem defined on a set of lines in the plane. Let be the set of all intersection points of lines from and the set of all segments with end-points from . Let , i.e., is the set of segments obtained by taking the portion of each line which falls within . Then each segment from is identical or is a part of some segment in . Hence, any subset of and of is contained in the line segments in . Thus, any solution to which may be a subset of and/or would be a solution to , and vice versa. This establishes a polynomial reduction of to , which completes the proof of both parts of the proposition.
Proposition 8, coupled with Theorem 1, implies:
Corollary 3 GSS is strongly NP-hard.
Proposition 8 says that NP-hardness results on a set of lines may imply NP-hardness results on a set of line segments, since, because of the exhibited polynomial reduction, a problem defined on a set of lines can be regarded as a particular case of a problem defined on a set of line segments. By that reason, structural results and polynomial algorithms that hold for problems defined on a set of line segments hold for problems defined on a set of lines, as well. On occasions, the opposite may hold, too. For example, all algorithms presented in this paper can easily be adapted for GSS.
5 Concluding remarks
In this paper we investigated the problem of guarding a set of lines in the plane and studied several approximation approaches based on set-cover techniques, geometric relaxations, and structural properties of line arrangements. The obtained results reveal that the performance of approximation algorithms is closely related to incidence parameters such as the maximum intersection multiplicity and the number of intersections on a maximal line.
Several questions remain open. In particular, it would be desirable to determine whether logarithmic approximation guarantees can be improved for broader classes of arrangements, and whether stronger relations between the guarding number and classical incidence parameters can be established.
Another direction is the extension of the methods developed here to higher-dimensional arrangements and to other geometric covering problems.
We conclude by stating the following conjecture.
Conjecture 1 .
Acknowledgments
The author thanks János Pach for pointing out a useful reference and for helpful comments at an early stage of this research.
References
[1] Akiyama J., Ito H., Kobayashi M., Nakamura G. (2011) Arrangements of points whose incident-line-numbers are at most . Graphs Combin. 27(3):321-326
[2] Balaban I.J. (1995) An optimal algorithm for finding segment intersections. In: Proc. 11-th Ann. ACM Symposium on Computational Geometry, pp. 211-219
[3] Beck J. (1983) On the lattice property of the plane and some problems of Dirac, Motzkin and Erdős in combinatorial geometry. Combinatorica 3(3-4):281-297
[4] Bentley J.L., Ottmann T.A. (1979) Algorithms for reporting and counting geometric intersections. IEEE Trans. Comput. 28:643–647
[5] Berge C. (1989) Hypergraphs: combinatorics of finite sets. North-Holland Mathematical Library, Vol. 45
[6] Brimkov V.E. (2013) Approximability issues of guarding a set of segments. Int. J. Computer Mathematics 90(8):1653-1667
[7] Brimkov V.E., Leach A., Mastroianni M., Wu J. (2011) Guarding a set of line segments in the plane. Theoretical Computer Science 412(15):1313-1324
[8] Brimkov V.E., Leach A., Wu J., Mastroianni M. (2012) Approximation algorithms for a geometric set cover problem, Discrete Applied Mathematics 160(7-8):1039-1052
[9] Brönnimann H., and Goodrich M.T. (1995) Almost optimal set covers in finite VC-dimension. Discrete & Computational Geometry 3(4):463–479
[10] Chazelle B.M. (1983) Reporting and counting arbitrary planar intersections. Rep. CS-83-16, Dept. of Comp. Sci., Brown University, Providence, RI
[11] Clarkson K.L., Varadaraja K.R. (2007) Improved approximation algorithms for geometric set cover. Discrete & Computational Geometry 37(1):43-58
[12] Coffman E.G. (1976) Computers and job-shop scheduling theory, Wiley, Ney York
[13] Dirac G.A. (1951) Collinearity properties of sets of points. Quart. J. Math., Oxford Ser. 2(1):221-227
[14] Felsner S. (2004) Geometric graphs and arrangements, Vieweg, Wiesbaden
[15] Green B.J., Tao T. (2013) tao On sets defining few ordinary lines. Discret. Comput. Geom. 50(2):409-468
[16] Grünbaum B. (1972, reprinted 1980) Arrangements and spreads. CBMS Regional Conference Series in Mathematics, No. 10, AMS
[17] Grünbaum B. (2009) A catalogue of simplicial arrangements in the real projective plane. ARS Mathematica Contemporanea 2(1):1-25
[18] Grünbaum B. (1971) Arrangements of hyperplanes. In: Mullin RC et al. (eds) Proc. Second Louisiana Conf. on Combinatorics, Graph Theory and Computing, Louisiana State University, Baton Rouge
[19] Grünbaum B. (2010) Dirac's conjecture concerning high-incidence elements in aggregates. Ge-ombinatorics 2:48–55
[20] Han Z. (2017) A note on the Weak Dirac Conjecture. The Electronic Journal of Combinatorics 24(1) #P1.63
[21] Hassin R., Megiddo N. (1991) Approximation algorithms for hitting objects with straight lines. Discrete Applied Mathematics 30(1):29–42
[22] Haussler D., Welzl E. (1987) -Nets and Simplex Range Queries. Discrete & Computational Geometry 2:127–151
[23] Megiddo N., Tamir A. (1982) On the complexity of locating linear facilities in the plane. Operations Research Letters 1(5):194-197
[24] Payne M.S., Wood D.R. (2014) Progress on Dirac's Conjecture. The Electronic Journal of Combinatorics 21(2) #P2.12
[25] Pham H.H., Phi T.C. (2016) A new progress on Weak Dirac conjecture, arXiv:1607.08398, http://arxiv.org/abs/1607.08398
[26] Preparata F., Shamos M.I. (1985) Computational geometry: An introduction. Springer, New York
[27] Szemerédi E., Trotter, Jr. W.T. (1983) Extremal problems in discrete geometry. Combinatorica 3(3-4):381–392