Research Article

A Hop Count Based Heuristic Routing Protocol for Mobile Delay Tolerant Networks

Algorithm 3

Routing.
For each node   do
  (1)
  (2) for     do
  (3) for     do
  (4)  
  (5)  
  (6)  if     then
  (7)    true
  (8)  else
  (9)    false
 (10)  end if
 (11)  if   =  true  then
 (12)    sends an extra copy of to
 (13)  else if     then
 (14)    turns over its own copy of to
 (15)  end if
 (16) end for
 (17) end for