Research Article

UAV-Assisted Sensor Data Dissemination in mmWave Vehicular Networks Based on Network Coding

Algorithm 2

Vehicle broadcast.
Require: Sending vehicle ;
Ensure: Void;
 1: whiledo
 2:  if ( is the first selected sending vehicle) then
 3:    broadcasts with the maximum weight ac-
     cording to formula (2);
 4:  else
 5::   Calculate of according to avai-
     lable link identification and interference thresh-
     old;
 6:   while Any packet cached on do
 7:    ifthen
 8:      broadcasts the packet to any ve-
       hicles from ;
 9:     Return;
 10:    end if
 11:   end while
 12:    finds the maxclique from ;
 13:   ifthen
 14:    Select any vetexex from ;
 15:    Construct with the packets requested
      by the selected vertex;
 16:     broadcasts ;
 17:   else
 18:     Construct with the packets requested
       by every vertex from ;
 19:      broadcasts ;
 20:   end if
 21:  end if
 22: end while