Skip to main content
. 2022 Nov 14;22(22):8789. doi: 10.3390/s22228789
Algorithm 2CV1(n,r1,s) for the (r1,s)-coverage and interference requirement on [0,1] when r1=1+ϵ2n,s=1δn provided that ϵ>0 and 1>δ>0 are fixed and independent of n

Require: The initial locations of n mobile sensors with the identical sensing radius r1=1+ϵ2n, placed uniformly and independently at random on the unit interval [0,1].

Ensure: The final positions of sensors the to satisfy the (r1,s)-coverage and interference requirement on the interval [0,1].

Initialization:   Apply Algorithm MV(n,ρ,s) for ρ:=1+ϵ2n,s:=1δn and the random sensors X1,X2,,Xn. Let Y1,Y2,,Yn be the location of n sensors X(1)X(2)X(n) after Algorithm MV(n,ρ,s);
  •  1:
    switch ()
  •  2:
    case AYn1r1
  •  3:
       do nothing;
  •  4:
    case BYn12naa+1,1r1
  •  5:
       move the sensor Yn to the new position 1r1,i:=n1;
  •  6:
       while Yi+1Yi>2r1 do
  •  7:
         move the sensor Yi to the new position 1r1(ni)2r1,i:=i1;
  •  8:
       end while
  •  9:
    case C Yn12naa+1
  • 10:
      for i=1 to n do
  • 11:
         move the sensor Yi to the position in12n;
  • 12:
      end for
  • 13:
    end switch