Research Article

Layer-Based Data Aggregation and Performance Analysis in Wireless Sensor Networks

Algorithm 3

Concurrent set construction.
Input: Data aggregation tree , ;
Output: Concurrent Set , , …, .
(1) initialize , = 0, 1, …;
(2) for each layer from to 1;
(3)  select one leaf node from layer ;
(4)   ;
(5)  if , then , go to step 3;
(6)  for each ,
(7)   if and par( ) par( ), then , break;
(8)  end for
(9)  if , then = + 1, go to step 5;
(10) end for