Research Article A Greedy Algorithm on Constructing the Minimum Connected Dominating Set in Wireless Network Deqian Fu,1,2 Lihua Han,1 Zifen Yang,1 and Seong Tae Jhang3 1
School of Informatics, Linyi University, Linyi 276005, China Provincial Key Laboratory for Network Based Intelligent Computing, University of Jinan, Jinnan 250022, China 3 Department of Computer, The University of Suwon, Hwaseong-si, Gyeonggi-do 445-743, Republic of Korea 2
Correspondence should be addressed to Seong Tae Jhang;
[email protected] Received 18 December 2015; Revised 25 April 2016; Accepted 16 May 2016 Academic Editor: Hideyuki Takahashi Copyright © 2016 Deqian Fu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. In the past 20 years, the connected dominating set (CDS) as a virtual backbone network has been widely used in the wireless networks. Many researchers have been devoted to designing approximate algorithms for CDS problem since constructing the minimum CDS (MCDS) is NP-hard problem. Different from the most existing algorithms with two phases, we employ greedy strategy to design a centralized algorithm GR CDS in only one phase to get MCDS, with the time complexity of 𝑂((Δ2 + log 𝑛)𝑛). Afterwards, another algorithm P CDS is designed for pruning redundant nodes in the obtained MCDS with the time complexity of 𝑂(𝑛2 ).
1. Introduction Wireless networks are widely used in many fields [1] such as environment monitoring, disaster forecast, battlefield detection, traffic control, and disease diagnosis. In recent years, CDS as the virtual backbone network in wireless ad hoc and wireless sensor networks (WSNs) has attracted more and more attention of researchers, since the CDS can prolong the lifetime of the wireless network, optimize the energy consumption, transfer data fast, and so forth. Further, how to minimize the size of the CDS is a significant research direction. In wireless networks, each node can only communicate with neighbors and its computing capacity is finite. Therefore, the nodes need to cooperate with each other to complete an overall task. If a node wants to transfer information to other nodes outside of the transmitting range (i.e., the destination has multiple hops away from it), a backbone network is needed to transmit the messages effectively. Once the backbone network is constructed, all nodes can communicate with other nonneighbor nodes through intermediate nodes in the backbone network. Therefore, the nodes that are not in the
backbone network can sleep intermittently or shut off for saving energy consumption. It was verified that CDS is an optimal selection as a backbone network for transferring messages [2, 3]. In wireless networks, CDS as a virtual backbone network was first proposed [4]. Beyond that, CDS has many practical applications such as topology control [5], routing [6], and broadcasting [7]. In addition to the size of CDS, our goal is to design an optimization algorithm for considering other algorithm performance indexes such as CDS size, throughput size, time complexity, and message complexity. In this paper, assume that the algorithm is executed in wireless network and the nodes are deployed on a twodimensional plane. The topology of the network is modeled with a unit disk graph (UDG) 𝐺 = (𝑉, 𝐸), where 𝑉 represents the set of nodes in the network and 𝐸 represents the collection of the network link. And assume that each node V ∈ 𝑉 has a unique 𝑖𝑑 and its maximum transmission range is 𝑅. In addition, if node 𝑢 is in the maximum transmission range of node V, we think that there is an undirected link between 𝑢 and V, which is the undirected edge between 𝑢 and V on graph 𝐺. Let 𝑁(V) be the neighbor set of node V and let 𝑑V = |𝑁(V)|
2 be the degree of node V. And let Δ = max{𝑑V | V ∈ 𝑉} be the maximum degree of the graph. Let 𝐺 = (𝑉, 𝐸) be the original network topology and DS 𝑉 is a subset of set 𝑉 in graph 𝐺. For arbitrary node V ∈ 𝑉, if node V is not in set 𝑉 , there is at least a neighbor node of V in set 𝑉 . For any two nodes 𝑢, V ∈ 𝑉 , if there exists a path that can make them connected by other intermediate nodes which belongs to set 𝑉 , then we denote set 𝑉 as CDS. We just need to store the routing information into the nodes in the CDS, which can route messages as soon as quickly. It is clear that the smaller the size of the CDS is, the faster the messages are transmitted and the less the energy consumption of the node is. Therefore, it is important to construct the minimum CDS (MCDS). Unfortunately, it was proved that the MCDS problem was NP-complete [8]. Hence, most of researchers have been devoted to designing approximate algorithm for constructing the MCDS. In this paper, we propose a greedy centralized GR CDS algorithm with the time complexity of 𝑂((Δ2 + log 𝑛)𝑛). Afterwards, we put forward an algorithm P CDS to prune redundant nodes in CDS with the time complexity of 𝑂(𝑛2 ), which can remove all of the redundant nodes from the obtained CDS eventually.
2. Related Work 2.1. Related Network Model and Notations. In order to minimize the size of CDS, we devoted to designing approximate algorithm to obtain CDS by the approximation factor |opt|, which is as little as possible. In many cases, however, we need to consider the other performance parameters such as the diameter of CDS, communication consumption of nodes. As a critical performance index, the size of CDS has attracted more attention of researchers. For constructing CDS as virtual backbone networks in wireless network, Guha and Khuller [9] proposed two heuristic centralized algorithms. The fist algorithm firstly put up all nodes are transformed into white. And the white node with the maximum number of neighbors is selected to be colored black, and all its white neighbors are marked gray. Finally, they formed CDS by all black nodes. The approximation ratio of the algorithm is 2(1+𝐻(Δ)). The second algorithm is divided into two phases. The first stage is to delete redundant nodes of graph as many as possible. The second phase is to build a Steiner tree for constructing CDS. And it was proved that the approximation ratio is ln Δ + 3. Afterwards, two distributed versions of algorithms in [10, 11] were proposed by Das et al. Then Wu and Li proposed a distributed algorithm [12] to construct a CDS based on two-hop information of neighbors. For arbitrary node in the network, it is added to CDS if there are two nonadjacent neighbors, and all redundant nodes are moved from the network. When topology of network contains complete subgraphs, however, the algorithm cannot execute successfully. In [13], Wan et al. proved that the approximation ratio of [12] is 𝑂(𝑛), and they proved that the approximation ratio of any MIS is 4|opt| + 1 in the unit disk graph (i.e., MIS(𝐺) = 4|opt| + 1), where opt is the optimal set of CDS. Afterwards, they proposed a distributed algorithm to construct CDS in unit disk graph. In the first
International Journal of Distributed Sensor Networks phase, they constructed a spanning tree and obtained MIS with the method of searching nodes layer by layer. Later, they constructed a dominating tree whose internal nodes can consist of CDS with performance ratio 8|opt| − 2 and the time complexity and message complexity of 𝑂(𝑛), respectively, where opt is the size of optimal solution of CDS and 𝑛 is the number of nodes in the network. In [14], Funke et al. proved that the approximation ratio of MIS is 3.453|opt| + 8.292 by analyzing the coverage area of nodes, and they got CDS with the approximation ratio of 6.9. In [15] and [16], Li et al. and Das et al., respectively, proposed different distributed algorithm of approximation ratio (4.8 + ln 5)|opt| + 1.2. All of these algorithms first construct MIS and then obtain CDS by connecting the MIS nodes through some connectors. Except the size of CDS, communication consumption of nodes is also an important performance index. It not only involves the energy consumption but also contains the time consumption in communication cost, which are related to the number of hops. Then reducing the number of hops is the most effective way to increase the transmission range. However, the battery power of nodes in backbone requires higher volume. So more and more researchers have been devoted to studying the routing efficient CDS [17–20]. At the same time, the works about minimizing the diameter of CDS are gradually being taken seriously. An algorithm [21] is proposed for constructing CDS with the small diameter, which guaranteed that not only is the diameter of acquired CDS limited to 3𝐷∗ + 7 (where 𝐷∗ is the diameter of the MCDS), but also the size of CDS is limited to 11.4|opt| + 1.6. Additionally, some other research facets such as 𝑘-connected 𝑚-dominating set [22], weakly-dominating set [23], and 𝑘hop [24] have also attracted much attention by researchers.
3. Algorithm GR_CDS In this section, we propose a greedy centralized GR CDS algorithm with time complexity of 𝑂((Δ2 + log 𝑛)𝑛) for constructing MCDS. The pseudocode of the algorithm is described as algorithm GR CDS (Greedy Redundant Connected Dominating Set). In this paper, three states of a node are represented by colors white, black, and gray. Initially, all nodes are remarked white, also called initial state. A global parameter count (its initial value is 𝑛, i.e., the number of nodes) is a parameter that is to record the current number of white nodes. We first choose node V with the maximum degree among all neighbors as the initial node of the CDS and it turns into black and all of its neighbors are colored gray. Irrespective of the color of node V, the value of the parameter count substracts 1. And for any node 𝑤 ∈ 𝑁(V), node V is removed from set 𝑁(𝑤); that is, 𝑁(𝑤) = 𝑁(𝑤) \ V. Then all the nodes in 𝑁(𝑤) are white. As long as the value of count is greater than 0, each time we select gray node V that has the largest number of white neighbor nodes among all gray nodes as a new node in the CDS and it is marked black and all its white neighbors turn into gray. When two or more gray nodes have the same number of white neighbors and the number of adjacent white nodes is more than others, we choose the biggest one as
International Journal of Distributed Sensor Networks
3
0 0
12
4 2
8
3
2
10
6 1
5
8
3
11
9
10
6
7
(a) Initial network
(b) Node 6 becomes black
0
0
2
12 5
8
3
10
6
11
9 1
12
4 2 3
5
8
10
6
7
(d) Node 5 becomes black
0
0
12
4
10
6
11
9 1
7
(e) CDS after executing algorithm GR CDS
12
4
5
8
11
9 1
7
(c) Node 8 becomes black
3
11
9 1
7
4
2
12
4
5
2 3
5
8
10
6
11
9 1
7
(f) Final CDS after executing algorithm P CDS
Figure 1: Example showing CDS construction.
a new element of CDS. The operations are performed iteratively until all nodes are colored to either black or gray. The result description of constructing operation of CDS is shown in Figure 1 with executing algorithm GR CDS (Algorithm 1). At first, node 6 is colored black because it has the maximum degree among all neighbor nodes. Then, nodes 1, 3, 7, 8, and 9 are colored gray since they are neighbors of node 6. Afterward, node 8 is colored black since it has the largest number of white neighbors among all gray nodes. As well, its white neighbors 4 and 5 are colored gray. By the same token, nodes 5 and 4 are colored black.
the CDS, where cds is the number of nodes in CDS. Then node V𝑖 is colored black and all its neighbors are colored gray. According to the algorithm, when node V𝑖 is white, there must exist one of gray nodes at least has one white neighbor; that is, the value of count is not 0. Therefore, one of its neighbors must become black, which means that each black node has a path to connect other nodes in CDS. The result conflicts with the hypothetic premises. If CDS is divided into two parts, there must exist two local sets CDSi and CDSj such that there are at most three hops between node V𝑖 ∈ CDS𝑖 and node V𝑗 ∈ CDS𝑗 .
Lemma 1. CDS is a correct connected dominating set.
Theorem 2. The time complexity of the algorithm is 𝑂((Δ2 + log 𝑛)𝑛).
Proof. Let us use deduction to prove that set CDS is a connected dominating set. Assume that CDS = {V1 , V2 , V3 ⋅ ⋅ ⋅ Vcds } and node V𝑖 ∈ CDS cannot connect with other nodes in
Proof. Firstly, a node is selected which has the maximum node degree as the beginning of the algorithm and the time
4
International Journal of Distributed Sensor Networks
Input: 𝐺(𝑉, 𝐸) Output: CDS (1) 𝑐𝑜𝑢𝑛𝑡 = 𝑛; (2) Select a node V ∈ 𝑉 with the maximum degree among all nodes in 𝑁(V) ∪ V; (3) 𝐶𝑜𝑙𝑜𝑟V = 𝑏𝑙𝑎𝑐𝑘; (4) 𝑐𝑜𝑢𝑛𝑡 = 𝑐𝑜𝑢𝑛𝑡 − 1; (5) For each node 𝑤 ∈ 𝑁(V) (6) 𝑁(𝑤) = 𝑁(𝑤) \ V; (7) End for (8) For each node 𝑢 ∈ 𝑁(V) (9) 𝐶𝑜𝑙𝑜𝑟𝑢 = 𝑔𝑟𝑎𝑦; 𝑐𝑜𝑢𝑛𝑡 = 𝑐𝑜𝑢𝑛𝑡 − 1 (10) End for (11) For each gray node 𝑢 For each gray node 𝑤 ∈ 𝑁(𝑢) 𝑁(𝑤) = 𝑁(𝑤) \ 𝑢 End for (12) End for (13) While 𝑐𝑜𝑢𝑛𝑡 > 0 do (14) Select a gray node V with the largest number of white neighbors among all gray nodes; (15) 𝐶𝑜𝑙𝑜𝑟V = 𝑏𝑙𝑎𝑐𝑘; (16) 𝑐𝑜𝑢𝑛𝑡 = 𝑐𝑜𝑢𝑛𝑡 − 1; (17) For each node 𝑢 ∈ 𝑁(V) (18) 𝐶𝑜𝑙𝑜𝑟𝑢 = 𝑔𝑟𝑎𝑦; (19) 𝑐𝑜𝑢𝑛𝑡 = 𝑐𝑜𝑢𝑛𝑡 − 1; (20) End for (21) For each gray node 𝑢 (22) For each gray node 𝑤 ∈ 𝑁(𝑢) (23) 𝑁(𝑤) = 𝑁(𝑤) \ 𝑢; (24) End for (25) End for (26) End while (27) For all nodes in 𝑉 (28) If 𝐶𝑜𝑙𝑜𝑟V = 𝑏𝑙𝑎𝑐𝑘 then (29) CDS = CDS ∪ {V} (30) End if (31) End for Algorithm 1: Algorithm GR CDS.
of ordering all the nodes needs 𝑂(log 𝑛). Secondly, for each neighbor node, the operation time of deleting the colored neighbor nodes requires 𝑂(Δ2 ). Thirdly, due to the initial value of 𝑐𝑜𝑢𝑛𝑡 𝑛, the execution time of the while loop is 𝑛. Fourthly, in the interior of the cycle, we define gray node V with the largest number of white neighbors as a new node in the CDS; thus the time required for sorting all gray nodes is 𝑂(log 𝑛). At last, for each neighbor node, when node V is changed into black, the operation time of deleting the colored neighbor nodes requires 𝑂(log 𝑛). As a result, the time complexity of constructing the CDS is 𝑂((Δ2 + log 𝑛)𝑛).
4. Algorithm P_CDS In this section, we design algorithm P CDS (Pruning for CDS) with time complexity which is 𝑂(𝑛2 ) to delete the redundant nodes from the obtained CDS with algorithm GR CDS, aiming at making the CDS smaller.
The pseudocode of the algorithm is shown in algorithm P CDS (Algorithm 2). Firstly, it is a preparation of making a judge on each node V ∈ CDS. Node V is colored gray if all its gray neighbor nodes are connected with other black nodes, and there is still a linked path between all its black nodes when the node V is deleted. In this way, some redundant black nodes can be removed from the CDS, and the rest of the CDS is denoted as CCDS (Concise CDS). After executing the algorithm P CDS, the final CCDS is shown in Figure 1(f). Lemma 3. Set CCDS is a correct CDS. Proof. As proof in by Lemma 1, set CCDS is a CDS. According to the algorithm, when all the neighbor nodes of node V ∈ CCDS are connected with CCDS \ {V}, either node V is the cut point which is connecting two black nodes or it becomes the redundant black nodes, since node V must be adjacent to the black nodes at least. After deleting node V, if there is still an adjacent path between any two black nodes, node V is not
International Journal of Distributed Sensor Networks
5
(1) Input: 𝐺(𝑉, 𝐸) (2) Output: CCDS (3) CCDS = CDS (4) For each node V ∈ CCDS (5) If each node 𝑢 ∈ 𝑁(V) such that node 𝑢 is black or 𝑢 has another black neighbor in CCDS, then (6) Delete V from CCDS; (7) If any two black neighbors of node V has a path by nodes in CCDS, then (8) 𝐶𝑜𝑙𝑜𝑟V = 𝑔𝑟𝑎𝑦 (9) Else (10) CCDS = CCDS ∪ {V} (11) End if (12) End if (13) End for Algorithm 2: Algorithm P CDS.
the cut point. That is, V is the redundant node. So the set CCDS is a correct CDS. Theorem 4. The time complexity of the algorithm P CDS is 𝑂(𝑛2 ). Proof. As the number of nodes in the set CCDS is less than 𝑛/(Δ + 1). So the number of nodes in CCDS is less than or equal to 𝑛/(Δ + 1). For each node V ∈ CCDS, it needs to judge whether all the neighbor nodes connect with other nodes in CCDS. The convenient way is to judge the biggest degree of the network Δ. After deleting node V from the CCDS, the operation of judging whether the set CCDS \ V is connected needs the time of 𝑂(𝑛). Therefore, the time complexity of the algorithm P CDS is 𝑂(𝑛2 ) = 𝑂(𝑛 ∗ Δ + 𝑛 ∗ 𝑛).
5. Conclusion Traditionally, most existing algorithms have two phases. The first phase is to construct maximal independent set (MIS) as dominating set (DS). The second is to construct a Steiner tree for connecting nodes in DS through adding to connectors. In this paper, a new algorithm GR CDS with greedy strategy is proposed to get a relatively optimal size of the CDS, and the time complexity of the algorithm is 𝑂((Δ2 + log 𝑛)𝑛). Further, an algorithm P CDS is developed to make the CDS smaller, with the time complexity of 𝑂(𝑛2 ). It reduces the size of the CDS algorithm effectively, sacrificing some performance of time.
Competing Interests The authors declare that they have no competing interests.
Acknowledgments This work was supported by GRRC Program of Gyeonggi Province (GRRCSUWON2015-B1) Cooperative Recognition and Response System Based on Tension Sensing; also Shandong Provincial Natural Science Foundation, China
(ZR2014FL022); Ph.D. Research Foundation of Linyi University (LYDX2015BS020); and the National Natural Science Foundation (61173079 and 61472163) of China.
References [1] J. Blum, M. Ding, and X. Cheng, “Applications of connected dominating sets in wireless networks,” in Handbook of Combinatorial Optimization, vol. 42, pp. 329–369, 2004. [2] P.-J. Wan, K. M. Alzoubi, and O. Frieder, “Distributed construction of connected dominating set in wireless ad hoc networks,” Mobile Networks and Applications, vol. 9, no. 2, pp. 141–149, 2004. [3] X. Cheng, X. Huang, D. Li, W. Wu, and D.-Z. Du, “A polynomial-time approximation scheme for the minimumconnected dominating set in ad hoc wireless networks,” Networks. An International Journal, vol. 42, no. 4, pp. 202–208, 2003. [4] A. EphremiDes, J. E. Wieselthier, and D. J. Baker, “A design concept for reliable mobile radio networks with frequency hopping signaling,” Proceedings of the IEEE, vol. 75, no. 1, pp. 56–73, 1987. [5] B. Deb, S. Bhatnagar, and B. Nath, “Multi-resolution state retrieval in sensor networks,” in Proceedings of the 1st IEEE International Workshop on Sensor Network Protocols and Applications (SNPA ’03), pp. 19–29, Anchorage, AK, USA, May 2003. [6] W. Di, Q. Yan, and T. Ning, “Connected dominating set based hybrid routing algorithm in ad hoc networks with obstacles,” in Proceedings of the IEEE International Conference on Communications (ICC ’06), pp. 4008–4013, July 2006. [7] A. Iqbal, N. Ahmed, and M. M. Akbar, “Directional antenna based connected dominating set construction for energy efficient broadcasting in wireless ad hoc network,” in Proceedings of the International Conference on Computer and Electrical Engineering (ICCEE ’08), pp. 839–843, December 2008. [8] B. N. Clark, C. J. Colbourn, and D. S. Johnson, “Unit disk graphs,” Discrete Mathematics, vol. 86, no. 1–3, pp. 165–177, 1990. [9] S. Guha and S. Khuller, “Approximation algorithms for connected dominating sets,” Algorithmica, vol. 20, no. 4, pp. 374– 387, 1998. [10] B. Das, R. Sivakumar, and V. Bharghavan, “Routing in ad hoc networks using a spine,” in Proceedings of the 6th International
6
[11]
[12]
[13]
[14]
[15]
[16]
[17]
[18]
[19]
[20]
[21]
[22]
[23]
[24]
International Journal of Distributed Sensor Networks Conference on Computer Communications and Networks, pp. 34–39, IEEE, Las Vegas, Nev, USA, September 1997. B. Das and V. Bharghavan, “Routing in ad-hoc networks using minimum connected dominating sets,” in Proceedings of the IEEE International Conference on Communications (ICC ’97), pp. 376–380, Montreal, Canada, June 1997. J. Wu and H. Li, “On calculating connected dominating set for efficient routing in ad hoc wireless networks,” in Proceedings of the 3rd International Workshop on Discrete Algorithms and Methods for Mobile Computing and Communications (DIALM ’99), pp. 7–14, Seattle, Wash, USA, August 1999. P.-J. Wan, K. M. Alzoubi, and O. Frieder, “Distributed construction of connected dominating set in wireless ad hoc networks,” in Proceedings of the 21st Annual Joint Conference of the IEEE Computer and Communications Societies (INFOCOM ’02), pp. 1597–1604, New York, NY, USA, June 2002. S. Funke, A. Kesselman, U. Meyer, and M. Segal, “A simple improved distributed algorithm for minimum CDS in unit disk graphs,” ACM Transactions on Sensor Networks, vol. 2, no. 3, pp. 444–453, 2006. Y. Li, M. T. Thai, F. Wang, C.-W. Yi, P.-J. Wan, and D.-Z. Du, “On greedy construction of connected dominating sets in wireless networks,” Wireless Communications and Mobile Computing, vol. 5, no. 8, pp. 927–932, 2005. A. Das, C. Mandal, C. Reade, and M. Aasawat, “An improved greedy construction of minimum connected dominating sets in wireless networks,” in Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC ’11), pp. 790–795, Canc´un, Mexico, March 2011. D. Kim, Y. Wu, Y. Li, F. Zou, and D.-Z. Du, “Constructing minimum connected dominating sets with bounded diameters in wireless networks,” IEEE Transactions on Parallel and Distributed Systems, vol. 20, no. 2, pp. 147–157, 2009. L. Ding, W. Wu, J. Willson, H. Du, W. Lee, and D.-Z. Du, “Efficient algorithms for topology control problem with routing cost constraints in wireless networks,” IEEE Transactions on Parallel and Distributed Systems, vol. 22, no. 10, pp. 1601–1609, 2011. H. Du, Q. Ye, W. Wu et al., “Constant approximation for virtual backbone construction with Guaranteed Routing Cost in wireless sensor networks,” in Proceedings of the IEEE International Conference on Computer Communications (INFOCOM ’11), pp. 1737–1744, Shanghai, China, April 2011. Z. Lu, L. Wu, P. M. Pardalos, E. Maslov, W. Lee, and D.-Z. Du, “Routing-efficient CDS construction in disk-containment graphs,” Optimization Letters, vol. 8, no. 2, pp. 425–434, 2014. Y. Li, D. Kim, F. Zou, and D.-Z. Du, “Constructing connected dominating sets with bounded diameters in wireless networks,” in Proceedings of the 2nd Annual International Conference on Wireless Algorithms, Systems, and Applications (WASA ’07), pp. 89–94, Chicago, Ill, USA, August 2007. N. Ahn and S. Park, “An optimization algorithm for the minimum k-connected m-dominating set problem in wireless sensor networks,” Wireless Networks, vol. 21, no. 3, pp. 783–792, 2015. H. Du, W. Wu, S. Shan, D. Kim, and W. Lee, “Constructing weakly connected dominating set for secure clustering in distributed sensor network,” Journal of Combinatorial Optimization, vol. 23, no. 2, pp. 301–307, 2012. H.-Y. Yang, C.-H. Lin, and M.-J. Tsai, “Distributed algorithm for efficient construction and maintenance of connected k-hop
dominating sets in mobile ad hoc networks,” IEEE Transactions on Mobile Computing, vol. 7, no. 4, pp. 444–457, 2008.