Skip to main content
. 2024 Jun 19;24(12):3965. doi: 10.3390/s24123965
Algorithm 3MultiPath(Br,P,K,i,j,type)
  • 1:

    for (p=P to 2; p) do

  • 2:

       Acquire the set Gp,Ki,j;

  • 3:

       if (type = PS) then

  • 4:

         Bp((1β)Br)/(p1);

  • 5:

       else if (type= US) then

  • 6:

         BpBr/p;

  • 7:

       end if

  • 8:

       for (k=1 to K; k++) do

  • 9:

         if (SA(Bp,gp,ki,j) = true) then

  • 10:

            if (type = PS) then

  • 11:

              Solve T-SA;

  • 12:

            end if

  • 13:

            return Accepted;

  • 14:

         end if

  • 15:

       end for

  • 16:

    end for

  • 17:

    return Blocked;