Skip to main content
. 2024 Nov 23;24(23):7482. doi: 10.3390/s24237482
Algorithm 1 Propagation-Based Coverage Redistribution
  • 1:

    Input: Coverage paths CP, N, Failed robot Rk

  • 2:

    Output: Updated coverage paths CP

  • 3:

    Parent

  • 4:

    Construct the adjacency tree T based on Rk

  • 5:

    for each child robot iRNL1 do

  • 6:

        Calculate αi,assign from (7)

  • 7:

        Calculate Li from (8)

  • 8:

        CPiUpdatePaths(CPi,Li,αi,assign)

  • 9:

        Parent Parent{i}

  • 10:

    end for

  • 11:

    while Parent  do

  • 12:

        jExtract(Parent)

  • 13:

        Child ExtractChild(T,j)

  • 14:

        Calculate αChild,assign from (10)

  • 15:

        Calculate LChild from (9)

  • 16:

        Calculate Lj from (11)

  • 17:

        CPChildUpdatePaths(CPChild,LChild,αChild,assign)

  • 18:

        CPjUpdatePaths(CPj,Lj,αChild,assign)

  • 19:

        Parent Parent{Child}

  • 20:

        Parent Parent{j}

  • 21:

    end while

  • 22:

    return Updated paths CP