Skip to main content
. 2022 Feb 25;22(5):1835. doi: 10.3390/s22051835
Algorithm 1 Aurora Algorithm Pseudocode.
  • 1:

    dcalculateDistance(|S|,|APRES|¯)

  • 2:

    nxtHops0

  • 3:

    i0

  • 4:

    Sh{s0}

  • 5:

    while  i<d do

  • 6:

         Send APREQ to node nxtHop

  • 7:

         P APRES from nxtHop

  • 8:

         Update α according to the amount of unique nodes in P

  • 9:

        if α=λ then

  • 10:

             break

  • 11:

         ShShP

  • 12:

         nxtHop random node not already contacted from Sh

  • 13:

    z1α/λ

  • 14:

    return  (z,nxtHop)