Skip to main content
. 2015 Dec 11;15(12):31224–31243. doi: 10.3390/s151229860
Algorithm 2 Approximate scheduling and constructing algorithm.
Input: A duty-cycled network G, a source node s and a set of destination nodes D;
Output: A multicast tree T and the set of transmitting schedules M(T) for the multicast tree T;
  • 1:

    Construct the auxiliary graph G according to Definition 3;

  • 2:

    for all schedule node us in G do

  • 3:

      Call Algorithm 1 to determine the transmitting time slot for each schedule node;

  • 4:

    end for

  • 5:

    Call the Steiner tree algorithm to get a multicast tree Tagapp on G;

  • 6:

    Correct Tagapp to a valid multicast tree Tagc on G by using the three correction operations in Section 4.4;

  • 7:

    Map the valid multicast tree Tagc into a feasible solution for MEMAP using the method in Theorem 4, including the multicast tree T and the set of transmitting schedule M(T);

  • 8:

    return the multicast tree T and the set of transmitting schedule M(T);