Full text
XV Spanish Meeting on Computational Geometry, June 26-28, 2013 On the barrier-resilience of arrangements of ray-sensors David Kirkpatrick 1, Boting Yang : 2, and Sandra Zilles ; 2 1Department of Computer Science, University of British Columbia, Vancouver, Canada. 2Department of Computer Science, University of Regina, Regina, Canada. Abstract Given an arrangement Aof nsensors and two points sand tin the plane, the barrier resilience of Awith respect to sand tis the minimum number of sensors whose removal permits a path from sto tsuch that the path does not intersect the coverage region of any sensor in A. When the surveillance domain is the entire plane and sensor coverage regions are unit line segments, even with restricted orientations, the problem of determining the barrier resilience is known to be NP-hard [11, 12]. On the other hand, if sensor coverage regions are arbitrary lines, the problem has a trivial linear time solution. In this paper, we give an O p n2m q time algorithm for computing the barrier resilience when each sensor coverage region is an arbitrary ray, where mis the number of sensor intersections. 1 Introduction Barrier coverage is an important coverage concept that arises in the analysis of wireless sensor networks [3]. Other notions of coverage try to quantify the effectiveness of a collection of sensors in detecting the presence of objects in a particular surveillance region. Barrier coverage, motivated by applications such as border control, measures the effectiveness of detecting the movement of objects between, but not necessarily within, critical regions. Given a sensor network, specified as an arrangement Aof sensors with associated coverage regions in the plane, and two points sand t, we say that the sensor network provides barrier coverage if it guarantees that any object moving Email: [email protected]. : Email: [email protected]. ; Email: [email protected]. Research support for all three authors is provided by the Natural Sciences and Engineering Research Council of Canada. from point sto point tmust be detected by at least one sensor. If sensor regions are connected then determining barrier coverage amounts to asking if sand t belong to the same face of the arrangement, which is straightforward to check provided the sensor region boundaries are sufficiently simple. In order to measure robustness of barrier coverage, Kumar et al. [10] introduced k-barrier coverage that guarantees that any path from a point sto a point t must intersect at least kdistinct sensor regions. They showed that for unit disk sensors (i.e., sensors whose coverage regions are unit disks) distributed in a strip separating sand t,k-barrier coverage can be determined efficiently by reduction to a maximum flow problem in the intersection graph of the disks. Bereg and Kirkpatrick [2] introduced and studied the associated optimization problem, which they called barrier resilience. This specifies the minimum number of sensors whose removal permits a path from point sto point tsuch that the path does not penetrate any of the remaining sensor coverage regions. Bereg and Kirkpatrick showed that there is a 3-approximation (or, under mild restrictions concerning the separation of sand t, a 2-approximation) algorithm for computing the barrier resilience of unit disk sensors. When the sensor coverage regions are arbitrary line segments, Alt et al. [1] proved that the problem of determining barrier resilience is NP-hard and APX-hard. In fact, even if all sensor coverage regions are unit line segments in one of at most two orientations, the barrier resilience problem remains NP-hard [11,12]. The reader is referred to the papers [3,5,8] for more information on barrier coverage and related problems. It is straightforward to see that if sensor coverage regions are arbitrary lines, the barrier resilience problem has a linear time solution, since the resilience of a given arrangement of lines is just the number of lines that separate sand t. 35
Resilience of ray-sensors In this paper, we address the case where sensor coverage regions are half-lines (or rays). We describe an O p n2m q time algorithm for computing the resilience of an arbitrary arrangement of n rays with mintersections. (Due to space constraints, proofs are omitted; full proofs will appear in an expanded version of the paper.) 2 Ray barriers and barrier graphs Let ~ Vbe a set of nrays, specified by an endpoint and a direction, in the plane. Suppose that we are given a sensor network consisting of nsensors, where the coverage regions of sensors correspond to the rays in ~ V, and two points sand twhich are not intersected by any of the rays in ~ V. We consider the problem of finding a subset ~ Uof rays in ~ Vwith the minimum cardinality such that there is a path from sto twhich does not intersect any rays in ~ V z ~ U. The cardinality of ~ Uis referred to as the resilience of the sensor configuration p s, t, ~ V q , and ~ Uis a resilience set of p s, t, ~ V q .1 We say that a set ~ V 1 ~ Vforms a barrier for p s, t, ~ V q if any path from sto tintersects at least one of the rays in ~ V 1 . Thus a set ~ U ~ Vis a resilience set of p s, t, ~ V q if and only if ~ Uis a smallest subset of ~ Vwith the property that ~ V z ~ Udoes not form a barrier. Our algorithm for computing a resilience set uses a reformulation of the problem as a graph problem. This reformulation is based on the observation that if a set of rays forms a barrier it must contain a subset consisting of two rays that forms a barrier; we refer to such a subset as a 2-barrier. In order to substantiate this observation, we introduce some helpful notation. For two points aand bin the plane, we use ab to denote the line segment with endpoints aand b, and use ~a to denote a ray with endpoint a. For the remainder of this paper, suppose, without loss of generality, that the line containing st is horizontal. (Accordingly, we will say “above (resp., below) st” as an abbreviation for “above (resp., below) the horizontal line supporting st”.) For any ray ~a P ~ V, we assign a unique color as follows: (i) if ~a intersects st and goes down we assign it the color red (drawn as a solid ray in figures); (ii) if ~a intersects st and goes up we assign it the color blue (drawn as a dashed ray in figures); and (iii) if ~a does not intersect st we assign it the color 1Note that a configuration p s, t, ~ V q does not necessarily have a unique resilience set. st (b)(a) (c) st s t Figure 1: p a q : a red-blue 2-barrier; p b q : a redblack 2-barrier; p c q : a blue-black 2-barrier s t (a) (b) Figure 2: p a q : a sensor configuration p s, t, ~ V q ; p b q : its associated barrier graph black (drawn as a dotted ray in figures). We first observe that certain pairs of intersecting rays are guaranteed to form a 2-barrier (see Figure 1). Proposition 1 Let p s, t, ~ V q be a sensor configuration. A pair of intersecting rays t ~a,~ b u ~ V forms a 2-barrier if (i) one is red and the other is blue, (ii) one is red and the other is black and they intersect above st, or (iii) one is blue and the other is black and they intersect below st. Lemma 2 Let p s, t, ~ V q be a sensor configuration and ~ V 1 ~ V. The set ~ V 1 forms a barrier for p s, t, ~ V q if and only if there are two rays ~a,~ b P ~ V 1 such that t ~a,~ b u forms a 2-barrier of one of the types described in Proposition 1. Lemma 2 motivates the reformulation of the resilience problem as a graph problem (see Lemma 3 below.) We say that a graph G p V, E q is a barrier graph of p s, t, ~ V q , denoted by G p ~ V q , if V is the set of all endpoints in ~ V, and t a, b u P E iff the corresponding pair of rays t ~a,~ b u forms a 2-barrier (see Figure 2). It follows immediately from Lemma 2 that barrier graphs are tripartite. Note that we use the same notation for a vertex in G p ~ V q and an endpoint in ~ V. When there is no ambiguity, a vertex of G p ~ V q is also referred to as an endpoint of a ray. We exploit the vertex-endpoint duality to view G p ~ V q as a vertexcoloured embedded graph. This allows us to say, for example, that any vertex that lies above st must be red or black, and any vertex that lies below st must be blue or black. 36
XV Spanish Meeting on Computational Geometry, June 26-28, 2013 Lemma 3 For any sensor configuration p s, t, ~ V q , a vertex set Vcis a minimum size vertex cover of G p ~ V q if and only if the corresponding set of rays ~ Vcis a resilience set of p s, t, ~ V q . From Lemma 3, it is clear that we can find a resilience set efficiently if there is an efficient algorithm to compute a minimum size vertex cover of the graph G p ~ V q . Unfortunately, the vertex cover problem on general tripartite graphs is NP- complete (there is a straightforward reduction from the vertex cover problem for cubic planar graphs, which is known to be NP-complete [6]). In fact, Clementi et al. [4] have shown that the minimum size vertex cover for tripartite graphs is not even approximable to within a factor of 34 { 33, unless P=NP. Thus, we are motivated to look for additional structure in instances of the tripartite vertex cover problems that arise from barrier graphs. In some settings, for example if all rays are parallel to one of two different lines, the graph G p ~ V q is easily seen to be bipartite. It is well-known, by König’s theorem [9], that, for bipartite graphs, constructing a minimum size vertex cover is equivalent to constructing a maximum size matching. Thus, we can use the Hopcroft-Karp algorithm [7] to find a minimum size vertex cover in such instances in O p m ? n q time, where mis the number of edges in G p ~ V q . To exploit the structure inherent in less restricted instances, we first introduce some additional notation (see Figure 3). We denote by `sv the line passing through points sand v. Similarly `tw denotes the line passing through points tand w. A generic line through s(respectively, t) is denoted `s (respectively, `t ). Similarly, a distinguished line through s(respectively, t) will be denoted `s (respectively, `t ). With any line `s (respectively, `t ) we associate the half-space, denoted ` s (respectively, ` t ) consisting of all points to the left of `s , or above `s in case `s is horizontal (respectively, all points to the right of `t , or above `t in case `t is horizontal). Armed with this notation, we can capture two additional properties of barrier graphs that can be exploited in the efficient construction of optimal vertex covers: Lemma 4 Let G p ~ V q be a barrier graph and suppose that Vcis any vertex cover of G p ~ V q . Then there must exist lines `s and `t , through sand trespectively, such that Vccontains all of the red and blue vertices that lie in ` s Y ` t . ts v w `tw `sv `+ tw `− sv Figure 3: Lines (and associated half-spaces) through sand t. Lemma 5 Let `s and `t be arbitrary lines through sand trespectively, and let } RB denote the set of red and blue vertices that lie in ` s Y ` t . Then the subgraph of the barrier graph G p ~ V q that is induced by the vertices in V z } RB, is bipartite. 3 Algorithm In this section, we present an algorithm for computing resilience sets. Its correctness follows immediately from Lemma 3. Algorithm 1:resilience. Input: Sensor configuration p s, t, ~ V q . Output: A resilience set for p s, t, ~ V q . build the vertex-coloured barrier graph G p ~ V q 1 (described in Section 2) return min-vertex-cover p G p ~ V qq 2 As we have already noted, a minimum size vertex cover of a bipartite graph can be found in polynomial time [7]. So the basic idea of our algorithm is to exploit this by forming a sequence of subsets U1, U2, . . . of Vsuch that (i) for all i, G |p V z Ui q , the subgraph of G p ~ V q induced on the vertex set V z Ui, is bipartite, and (ii) for some i, the minimum size vertex cover of G |p V z Ui q , together with the vertices in Ui, forms a minimum size vertex cover of G p ~ V q . We know, by Lemma 4, that for any minimum size vertex cover Vcof G p ~ V q there must exist lines `s and `t , through sand trespectively, such that Vccontains all of the vertices in } RB, the set of red and blue vertices that lie in ` s Y ` t . Furthermore, the vertices of Vc z } RB must be a minimum size vertex cover of G |p V z } RB q ; otherwise 37
Resilience of ray-sensors Vcwould not have minimum size. So our algorithm simply tries all possibilities for `s and `t , determines the associated set } RB, finds a minimum size vertex cover of G |p V z } RB q (which, by Lemma 5, is bipartite), and chooses, among all of these possibilities, one that minimizes the size of this vertex cover together with the set } RB. Algorithm 2:min-vertex-cover of a barrier graph. Input: A barrier graph G p ~ V q . Output: A minimum vertex cover of G p ~ V q . } RB Ð t red vertices in V}1 V Ctemp Ð 2 bipartite-vertex-cover p G |p V z } RB qq V Cbest Ð V Ctemp Y } RB3 for every red vertex vdo4 for every red vertex wdo5 } RB Ð 6 t red and blue vertices in ` sv Y ` tw u V Ctemp Ð 7 bipartite-vertex-cover p G |p V z } RB qq if | V Ctemp || } RB || V Cbest | then8 V Cbest Ð V Ctemp Y } RB9 return V Cbest 10 As we have already noted, the correctness of Algorithm resilience follows immediately from Lemma 3. We now turn our attention to the correctness of our vertex cover algorithm for barrier graphs. Theorem 6 The output of Algorithm 2 is a minimum size vertex cover of G p ~ V q . It will be clear from the description of Algorithm 2 that the problem of constructing a minimum size vertex cover of a barrier graph with n vertices and medges can be reduced to O p n2 q minimum size vertex cover subproblems on induced subgraphs, each of which, by Lemma 5, is bipartite. As previously noted, König’s theorem [9] states that, for bipartite graphs, constructing a minimum size vertex cover is equivalent to constructing a maximum size matching. Thus, we can use the Hopcroft-Karp algorithm to find a minimum size vertex cover in each subproblem in O p m ? n q time [7], or O p n2m ? n q time in total. We note, however, that it is possible to implement Algorithm 2 to run in O p n2m q time, by ordering the successive subproblems in a way that they do not require independent solution; we leave the details to an expanded version of this paper. References [1] H. Alt, S. Cabello, P. Giannopoulos and C. Knauer, Minimum cell connection and separation in line segment arrangements, arXiv:1104.4618v2 [cs.CG], 2011. [2] S. Bereg and D. Kirkpatrick, Approximating barrier resilience in wireless sensor networks, Proceedings of the 5th International Workshop on Algorithmic Aspects of Wireless Sensor Networks, Lecture Notes in Computer Science, Vol. 5804, pages 29–40, 2009. [3] M. Cardei and J. Wu, Coverage in wireless sensor networks, In M. Ilyas and I. Mahgoub, editors, Handbook of Sensor Networks: Compact Wireless and Wired Sensing Systems, chapter 19, pages 432–446, CRC Press, 2005. [4] A. Clementi, P. Crescenzi, G. Rossi, On the complexity of approximating colored-graph problems. Proceedings of the 5th International Conference on Computing and Combinatorics, Lecture Notes in Computer Science, Vol. 1627, pages 281–290, 1999. [5] A. Chen, T. H. Lai and D. Xuan, Measuring and guaranteeing quality of barrier-coverage in wireless sensor networks, Proceedings of the 9th ACM international symposium on Mobile ad hoc networking and computing, pages 421–430, 2008. [6] M. Garey and D. Johnson, Computers and Intractability: A Guide to the Theory of NP- Completeness, Freeman, San Francisco, 1979. [7] J. E. Hopcroft and R. M. Karp, An n2.5al- gorithm for maximum matchings in bipartite graphs, SIAM Journal on Computing, 2(4): 225– 231, 1973. [8] S. Kloder and S. Hutchinson, Barrier coverage for variable bounded-range line-ofsight guards, Proceedings of IEEE International Conference on Robotics and Automation (ICRA’07), pages 391– 396, 2007. [9] D. König, Gráfok és mátrixok, Matematikai és Fizikai Lapok, 38:116–119, 1931. [10] S. Kumar, T. H. Lai, and A. Arora, Barrier coverage with wireless sensors, Wireless Networks, 13(6): 817–834, 2007. [11] K.-C. Tseng, Resilience of Wireless Sensor Networks, Master thesis, University of British Columbia, BC, Canada, 2011. [12] K.-C. Tseng and D. Kirkpatrick, On Barrier Resilience of Sensor Networks, Proceedings of the 7th International Workshop on Algorithmic Aspects of Wireless Sensor Networks, Lecture Notes in Computer Science, Vol. 7111, pages 130-144, 2011. 38