Skip to main content
. 2019 Jan 11;19(2):273. doi: 10.3390/s19020273
Algorithm 2 The whole algorithm for optimal LBTC.
Input: A movement bound DZ+, a set of sensors Γ={1,,n} with positions {(xi,yi)|i[n]+},
       the sensing radii r, a set of POIs P={1,,m} with positions p1p2pm, where pj is
       the position for jP;
Output: The minimized maximum movement of the sensors together with new positions {xi|i[n]+}
 1: Set ub:=dmax and lb:=1, where dmax is the maximum distance between the sensors and the POIs;
 2: If there exists no coverage returned from calling Algorithm 1 wrt D=dmax then
 3:     Return “infeasible”;
 4: EndIf
 5: Set tmp:=lb+ub2;
 6: While ublb>1 do
 7:     If there exists no coverage returned from calling Algorithm 1 wrt D=tmp then
 8:        Set lb:=tmp and tmp:=lb+ub2;
 9:     Else
10:        Set ub:=tmp and then tmp:=lb+ub2;
11:     EndIf
12: End While
13: Return the result of call Algorithm 1 wrt D=tmp.