|
Algorithm 1: Coverage verification algorithm based on the sensing area of sensor node |
|
Input: Sensor nodes group:
|
| Sensing direction and sensing radius of sensor node:
|
| The length and width of target area:
|
|
Output: The coverage situations of grid points in target area |
| 1: Calculate the coordinates of four peak points
|
| 2: for
n
do
|
| 3: for
do
|
| 4: for
do
|
| 5: if
can be covered by
then
|
| 6: ;%Justify whether is covered. |
| 7: end if
|
| 8: if
can be covered by at least two sensor nodes. then
|
| 9: ;%Justify whether is covered by at least two sensor nodes. |
| 10: end if
|
| 11: end for
|
| 12: end for
|
| 13: end for
|