Skip to main content
. 2020 May 27;20(11):3034. doi: 10.3390/s20113034
Algorithm 3 Prioritized-based multiple contact-duration frame selection mechanisms (PMCdFS) algorithm.
Input: Initial deployed information of nodes and UAVs, SkB1,2, SkB1, SkB2.
Output:SkB1 and SkB2
  1: for SiSkB1,2 do
  2:        Calculate the contact duration between Si and the UAV1 (denoted as Ti,1), the UAV2 (denoted as Ti,2), respectively;
  3:        if Ti,1<Ti,2 then
  4:                SkB2 = SkB2{Si} ;
  5:        else
  6:                SkB1 = SkB1{Si} ;
  7:        end if
  8: end for
  9: return SkB1 and SkB2;