Skip to main content
. 2017 May 20;17(5):1168. doi: 10.3390/s17051168
Algorithm 2 Optimal Lattice Monitor Path Algorithm
  • 1:

    Input: sjSSc

  • 2:

    Compute all the neighbor links Eij and sequence it by length in an increasing way

  • 3:

    Initialize the Mi, let Mi=MiΔ(1)

  • 4:

    j=1:Eij

  • 5:

    if (rank(Mi)2(Ii+1)3) then

  • 6:

    Mi=MiMiΔ(j+1)

  • 7:

    if (Mi is full rank) then

  • 8:

      According to Mi, record the edge Eij

  • 9:

    end if

  • 10:

    end if

  • 11:

    for l={Ii, i}do

  • 12:

    for k={Ii, i, kl} do

  • 13:

      if ((k,l)Eij) then

  • 14:

       Delete (k,l)

  • 15:

       Draw the edge of Eij

  • 16:

      end if

  • 17:

    end for

  • 18:

    end for