Algorithm 2 Optimal Lattice Monitor Path Algorithm |
-
1:
Input:
-
2:
Compute all the neighbor links and sequence it by length in an increasing way
-
3:
Initialize the , let
-
4:
-
5:
if
then
-
6:
-
7:
if
is full rank) then
-
8:
According to , record the edge
-
9:
end if
-
10:
end if
-
11:
for
, do
-
12:
for
, i,
do
-
13:
if
,
then
-
14:
Delete ,
-
15:
Draw the edge of
-
16:
end if
-
17:
end for
-
18:
end for
|