Skip to main content
. 2015 Dec 11;15(12):31224–31243. doi: 10.3390/s151229860
Algorithm 1 Transmitting time slot-determining algorithm.
Input: A schedule node us, the set of its reaching nodes R(us);
Output: The set of splitting schedule nodes usj and its transmitting time slot usj.t;
  • 1:

    Sorting the nodes in R(us) according to their last active time slot;

  • 2:

    jL+1;

  • 3:

    while R(us) is not empty do

  • 4:

      v1 the first node in R(us);

  • 5:

      Create a new schedule node usj identical to us;

  • 6:

      usj.tend(v1);

  • 7:

      Add edge (ug,usj) and (usj,v1) in G;

  • 8:

      for i=2 to |R(us)| do

  • 9:

          vi the i-th node in R(us)

  • 10:

          if start(vi)usj.t then

  • 11:

                add edge (usj,vi);

  • 12:

          else

  • 13:

                break;

  • 14:

          end if

  • 15:

      end for

  • 16:

      jj+1;

  • 17:

      Remove v1 from R(us);

  • 18:

    end while

  • 19:

    Delete us from G;

  • 20:

    return the set of splitting schedule nodes of us;