Skip to main content
. 2022 Sep 9;22(18):6839. doi: 10.3390/s22186839
Algorithm 4: Node Leaving.
Input:K, N
Output: Leaving notification of Ni
  •   1.

    Begin:

  •   2.

    repeat:

  •   3.

        if K ≠ φ then

  •   4.

         if η(Ni, Ni+1) > ε or η(Ni, Ni−1) > ε then

  •   5.

          if Ni CHi then

  •   6.

           CHi  Ni

  •   7.

            perform CH selection

  •   8.

           else

  •   9.

            CHi  Ni

  •   10.

          end if

  •   11.

         end if

  •   12.

        end if

  •   13.

     end repeat

  •   14.

     End