Research Article
Routing and Clustering of Sensor Nodes in the Honeycomb Architecture
Algorithm 1
Location of the honeycomb centers and the sinks.
Initialization: | k ⟵ 0; | ; | β ⟵ 60°; | Begin | (1) | While the sensing field is not fully cover by the virtual honeycombs do | (2) | k ⟵ k + 1; | (3) | For p 1 to 6 do | (4) | ; /∗Determine the position of the primary centers∗/ | (5) | ; | (6) | ; /∗Determine the position of the secondary centers from the second ring∗/ | (7) | If do | (8) | For m 1 to k − 1 do | (9) | ; | (10) | ; | (11) | End for | (12) | End if | (13) | End for | (14) | End While | (15) | ; /∗we get the number rings of the honeycomb clusters ∗//∗Determine the position of the sinks∗/ | (16) | For p 1 to 6 do | (17) | k ⟵ k + 1; | (18) | ; | (19) | ; | (20) | End for | End |
|