Research Article

A Source-Initiated On-Demand Routing Algorithm Based on the Thorup-Zwick Theory for Mobile Wireless Sensor Networks

Algorithm 1

The source-initiated on-demand routing algorithm for MWSNs.
AlgorithmSIODRouting( , , )
checkCache( u)
If  p is null
routingReq(u, s)
pathQuery(u, v)
notification(u, s, p)
end if
send data from u to v by p
if sending data success
end if
return  r