Research Article
A Socially Aware Routing Based on Local Contact Information in Delay-Tolerant Networks
Algorithm 1
Social network construction procedure for a node
.
(1) Slide its contact window by time slots | (2) for a node which the node has at least one contact with do | (3) if then | (4) | (5) | (6) if then | (7) | (8) for | (9) end if | (10) else | (11) if then | (12) | (13) | (14) for | (15) end if | (16) end if | (17) end for |
|