Research Article

Energy-Efficient Adaptive Geosource Multicast Routing for Wireless Sensor Networks

Algorithm 4

Path serializing for unicast.
Input: node
Output: a branch or a destination node
(1) if  IsBranch(node) then
(2)  return node
(3) end if
(4) // a leaf node
(5) if  nodeleft == Null then
(6)  return node
(7) end if
(8) PathSerializingForUnicast(nodeleft)