Research Article

An Energy-Efficient One-Shot Scheduling Algorithm for Wireless Sensor Networks

Algorithm 2

Scheduling With Limited Channels (SLC).
Input:
Data Collection Tree:
The node set:
the number of available channel ()
Output:
Scheduling frame for
1: whiledo
2: Finding the node by using DFS
3: Assigning slots to
4: =1;
5: ;
6: while and do
7:  ifthen
8:   ;
9:   ;
10: if and then
11:  Calling Algorithm 3
12: else
13:  
14: Assigning and to
15: