Research Article
Location Prediction-Based Data Dissemination Using Swarm Intelligence in Opportunistic Cognitive Networks
Algorithm 3
LoP_Service(
): the location prediction service in the LPS.
(1) : ; | (2) for all do | (3) ; | (4) for all do | (5) ; //calculate the location state of at | (6) if then // and encounter at | (7) ++ ; // is stored as the forwarding node in set | (8) ++; //The probability of meets is stored in set | (9) ++; //the encounter time slice of | (10) end if | (11) end for | (12) end for | (13) : SEI; |
|