Abstract
We aim to cover a grid fully by deploying the necessary wireless sensors while maintaining connectivity between the deployed sensors and a base station (the sink). The problem is NP-Complete as it can be reduced to a 2-dimensional critical coverage problem, which is an NP-Complete problem. We develop a branch and bound (B&B) algorithm to solve the problem optimally. We verify by computational experiments that the proposed B&B algorithm is more efficient, in terms of computation time, than the integer linear programming model developed by Rebai et al. (2013), for the same problem.
1. Introduction
The emerging wireless sensor networks (WSNs) technology provides an inexpensive and powerful means to monitor physical environments. WSNs are dense but low cost networks, which are formed by wireless nodes that sense certain phenomena in the area of interest and report their observations to a base station for further analysis [1]. WSNs are used in many applications such as environmental monitoring [2], emergency navigation [3], and smart spaces and industrial diagnostics [4, 5].
In a WSN, the sensor deployment is a critical issue because it may affect many facets of the network operations, including power management, routing, quality of service, and detection capability. In general, the sensor deployment is achieved either in a deterministic way or in a random way. Deterministic deployments are used in missions where the deployment area is physically accessible (urban monitoring, target tracking, etc.). On the other hand, random deployments are usually used when the mission deployment area is physically unreachable (seismic zones, volcanoes, etc.) [6].
It is worth noting that good sensor deployment may bring great benefits such as better network management and energy and cost savings, particularly when the sensor price is high. Nevertheless, the sensor placement has to be carried out so that coverage and connectivity are the most important considerations. In fact, while coverage is a metric that measures the surveillance quality provided by a WSN, connectivity offers a means for sensors to report their data to the sink [7].
In the WSN literature, two types of coverage problems are investigated: area coverage and target or point coverage. In the area coverage problem, the deployed sensors have to monitor a given area, whereas, in the target coverage problem, only a set of specific points (or targets) are monitored by the deployed sensors.
Both area coverage and target coverage problems can be divided in the 1-coverage problem or the k -coverage problem. In the latter, each target or point in the sensing area needs to be covered by at least k different working sensors. However, in the 1-coverage problem, each target or point in the sensing field has to be covered by at least one active sensor. Sometimes, the network coverage issue is closely related to the network's energy consumption [8–11]. In our proposal, we do not consider the energy constraint, since we assume that each sensor can be powered by an energy source (this is true in many cases, like fire detection sensors deployed in a large building). We note that the sensor devices may be characterized by a communication range. In such a case, a WSN is considered active if each sensor device finds a path (i.e., a set of connected sensors) towards the sink.
Our general observation regarding previous works on the total coverage problem with connectivity constraint indicates few resolution approaches based on exact optimization methods. In this contribution, we propose a branch and bound algorithm to determine the optimal placement of networked sensors allowing total sensing area coverage such that each sensor device can find a connection path (i.e., a set of connected sensors) which reaches the sink. The rest of the paper is organized as follows. Section 2 briefly discusses related works in the field. Section 3 describes our network model. Section 4 presents a lower bound for the problem. Section 5 describes the B&B algorithm. Section 6 provides simulation results to demonstrate the performance of our proposed work, and finally we conclude the paper and introduce our future work in Section 7.
2. Related Works
The area coverage problem has been thoroughly studied in the last few years. Ke et al. [12] have proved that the problem of fully covering critical grids using a minimum number of sensors (known also as critical grid coverage problem) is NP-Complete. In [13], Chakrabarty et al. propose a linear model to minimize the cost of sensor deployment in a three-dimensional sensing field, while keeping a complete coverage area. In their study, the authors consider two types of sensors with different costs. The authors also assume that each point in the grid has to be covered by at least k sensors. Andersen and Tirthapura [14] consider the total coverage in 3-dimensional area as a set-cover problem with multiplicity k. Another approach, based on the copy of a regular polyhedron with a small volumetric coefficient, was presented by Alam and Haas [15] for the same problem.
A variety of algorithms and protocols achieving total coverage and connectivity have been proposed in the literature. In [16], Shakkottai et al. presented necessary and sufficient conditions for 1-covered, 1-connected sensor grid network. In addition, the authors developed a variety of methods to maintain connectivity and coverage in large WSNs. In [4], Bai et al. proposed an optimal deployment strategy to achieve both full coverage and 2-connectivity regardless of the relationship between the communication and sensing radii of sensors. Also, they established the efficiency of some regular patterns of deployment, thus enabling better decision making. Liu et al. [17] presented a joint scheduling scheme based on a randomized algorithm for providing statistical sensing coverage and guaranteed network connectivity. The authors in [18] proved that if the original network is connected and the chosen active nodes can cover the same region as all the original nodes, then the network formed by the active nodes is connected when the communication range is at least twice the sensing range.
Zhao and Gurusamy [19] developed a greedy algorithm that addressed both sensing coverage and network connectivity and proposed an approach to schedule the active time of sensors such that active sensors can cover all the targets and can be connected to the sink by direct links or by multihop routes traversing through only active sensors. However, the algorithm can only handle the coverage of discrete points. In [20], Gupta et al. introduced the notion of a connected sensor cover, which is defined as the nodes set that can fully cover the queried area and which constitutes a connected communication graph at the same time. In the same work, the authors proved that the computation of the smallest connected sensor cover is NP-hard, and they developed distributed and centralized approximated methods to solve it, providing the performance bounds as well. The authors in [21] generalized the connected coverage problem to the connected k -coverage problem. However, the algorithms in [20, 21] require each individual sensor to be aware of its precise placement to check its local coverage redundancy. In some particular scenarios, it is difficult or infeasible to obtain the precise location information of sensors. Finally, Rebai et al. [22] proposed two integer linear programming models for the problem of total grid coverage. One of the models considers only the total coverage constraint. The other model ensures both the constraint of connectivity between the sensors and the total grid coverage constraint. In their work, the authors do not consider the energy constraint. A review of other existing works on the area coverage problem may be found in [23, 24].
3. Problem Description
The treated problem consists of fully covering a 2-dimensional sensing area, using a minimum number of sensors while maintaining the connectivity between the sensors and the sink. We suppose that the sensing field may be represented by a grid having

WSN characteristics.
In this study, we assume that
Since our problem has already been treated, the results of the developed B&B algorithm will be compared, in Section 6, to the results of the integer linear programming model proposed by Rebai et al. [22].
4. Lower Bound
The main idea of the developed lower bound is to decompose the grid into small contiguous regular grids. Each small grid is characterized by a length
4.1. Definitions
Let S be the number of the contiguous regular small grids in the sensing area Let us consider P as the problem of total grid coverage with connectivity constraint (our treated problem). Let us define Let us consider
4.2. Proposition
If
Proof.
When we have a grid with a length M and a width N, we can decompose it in different ways into small contiguous regular grids. All the small grids of
Figure 2 illustrates the lower bound idea in the problem with

Lower bound procedure.
5. Branch and Bound Algorithm (B&B)
The proposed B&B algorithm aims to determine a connected graph by choosing a limited number of arcs between some connected sensors nodes. Hence, the complexity of the algorithm is
5.1. The Initialization
The initial solution of the B&B algorithm is determined as follows. First, the farthest sensor position from the (1,1) grid position, which differs from the sink position and can cover the (1,1) grid position, is chosen. After that, the set, named F, of the all nonselected positions which are different from the sink position and can communicate with the first selected sensor position is determined. Then, the sensor position, which covers the maximum of the uncovered grid points, is selected from the set F. Finally, the last two steps applied to all the selected sensor positions are repeated until a complete solution with
F: the set of nonselected grid positions which communicate with the positions of W Select a sensor position (i, j) which covers the (1, 1) position.
(1) Determine F. Select the position ( Nb =
5.2. The Branching Scheme
A node at level k of the search tree is defined by the fixed partial solution positions and the node's remaining positions. These latter ones are obtained by the node partial solution border and represent the nodes of the level
Figure 3, represents the partial solution border of the node with the partial solution (2,2); (2,4); (3,1); (3,3); (5,1).

The partial solution border
The branching scheme is achieved as follows: we first define the partial solution border of the first level by determining all the

The branching scheme on a grid.
In Figure 4, the light-filled sensor positions in (a), (b), and (c) grids represent the partial solution border positions of the first, the second, and the third levels of the search tree, respectively. In the first grid of Figure 4 (i.e., grid (a)), each one of the

The branching scheme using the search tree.
To enhance the performance of the B&B algorithm, two properties are developed allowing more elimination of fathomed nodes in the search tree.
5.2.1. Definitions
Let Let us consider Let us consider
5.2.2. Property 1
At level k of the search tree, if
Proof.
At level k of the search tree
In the example in Figure 4, if we examine the node (3,1) in the second level (L2), then we observe that the partial solution in this node, determined by the fixed sensor positions, is (2,2); (3,1). The separation on the node (3,1) of level 1 (L1) will provide in level 2 (L2) the following partial solution border positions:
5.2.3. Property 2
Let
Proof.
Consider that
5.3. The Bounding Procedure
In the bounding step, a lower bound solution of value
6. Computational Experiments
An instance for the total sensing field coverage problem with connectivity constraint is generated as follows: we first define the width M and the length N of the sensing field that are, respectively, in the
The B&B algorithm is coded in the C language and implemented on an Intel core i 7-3720QM CPU 2.60 GHz laptop. Whenever a problem is not solved in one hour (3600 s), the computation is stopped.
In Table 1, we observe small and high fathomed node values. The small fathomed node values mostly appear when the sensing range is high while the problem size is small. Nevertheless, the high fathomed node values are observed for the problems which are characterized by a small sensing range and a high size. In the same table, we also observe, for the same problem size, that the mean fathomed nodes decrease when the sensing range R increases.
Average of the fathomed nodes in the search tree.
Table 2 gives an idea about the mean eliminated nodes by the two proposed properties. In Table 2, the first column represents the size of the grid. The second, fourth, sixth, and eighth columns contain the mean of nodes eliminated by the first property for
Mean of the eliminated nodes.
Table 3 represents the percentage of problems which are solved optimally by the B&B algorithm. We observe from Table 3 that the percentages of optimally solved problems depend on the sensing range. In fact, when the problem size increases and the sensing range decreases, then the percentage of the optimally solved problems decreases. However, when the problem size increases and the sensing range increases, then the percentage of the optimally solved problems increases.
Percentage of optimally solved problems by the B&B algorithm.
Figure 6 presents the mean computation time spent solving a problem with the B&B algorithm. The mean computation time of the grid size, for each R value, is determined by summing the computation times of the 7 generated instances corresponding to the 7 tested placements of the sink, and then by dividing the obtained value by 7. From this figure, we observe some mean computation times equal to 3600 seconds. This result allows us to conclude that the delivered solutions of these instances may not be optimal unlike the remaining instances which have a mean computation time less than 3600 seconds.

The mean computation time (in seconds) to solve a problem by the B&B algorithm.
Figure 7 represents the mean computation time to solve a problem with the integer linear model proposed by Rebai et al. [22]. If we compare the results of Figure 6 to those of Figure 7, three main observations can be derived.

The mean computation time (in seconds) to solve a problem by the linear model of Rebai et al. [22].
The first of those is about the total number of the instances having a mean computation time equal to 3600 seconds. In fact, in Figure 6, we observe fewer instances with a mean computation time equal to 3600 seconds.
The second concerns the mean computation time of the optimally solved instances. From the two figures, we observe that most of the instances, which are solved optimally by the B&B algorithm, have a mean computation time less than the mean computation time obtained by the integer linear model.
The third is about the impact of the sensing range on the mean computation time. In fact, for the two developed methods (i.e., the B&B algorithm and the integer linear model in Rebai et al. [22]), we observe that when the sensing range increases the mean computation time decreases. In the case of
From the results of Figures 6 and 7, we can conclude that the B&B algorithm results dominate the linear model results. We note that 74% of the tested instances are solved optimally by the B&B algorithm while only 69% of the tested instances are solved optimally by the linear model. This result allows us to confirm that the developed B&B algorithm is better than the integer linear model proposed by Rebai et al. [22].
7. Conclusion
In this paper, we have developed a B&B algorithm for the critical grid coverage problem in wireless sensor networks with connectivity constraint. Our contribution adds the constraint of connectivity between the deployed sensors to the general form of the critical grid coverage problem. The proposed method is able to provide appropriate solutions for the small and medium size problems. The simulation results show that the B&B algorithm is more efficient than the linear model proposed by Rebai et al. [22] for the same problem.
As perspectives, we aim to introduce infrastructure constraints (like walls) in the sensing field that may break the communication between the deployed sensors.
Footnotes
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This work is supported by the SURECAP CPER Project (fonction de surveillance dans les réseaux de capteurs sans fil) and the Plateform CAPSEC (capteurs pour la sécurité) funded by Région Champagne-Ardenne and FEDER (fonds européen de développement régional).
