Research Article
A Hop Count Based Heuristic Routing Protocol for Mobile Delay Tolerant Networks
Algorithm 1
Maintaining the matrix
and its slide-windows.
Require: packet , current time | Ensure: matrix , slide-window win | When packet comes | local variables: | (1) | (2) | (3) | (4) for do | (5) | (6) | (7) end for | (8) for to do | (9) for to do | (10) | (11) end for | (12) end for | (13) return , win |
|