Research Article

Energy-Efficient Adaptive Geosource Multicast Routing for Wireless Sensor Networks

Algorithm 6

Forward(path): Decision of forwarding mechanism.
Input: path
(1) if  FirstTwoBits(path 0 ) == 01 then
(2) nextHop = GetNextHop(path 0 , path 1 )
(3) Unicast packet(with path) to nextHop
(4) else
(5) Broadcast packet(with path)
(6) end if