Research Article

A Joint Channel Allocation and Power Control Scheme for D2D Communication in UAV-Based Networks

Algorithm 2

D2D energy efficiency maximization scheme based on the QWASSA in D2D-abled UAV-based system.
read
whiledo
 update randomly and generate corresponding to
 f ordo
  
  
 end do
fordo
  
  
  
  
 end do
fordo
  
ifthen
  
  
  
  end if
end do
ifthen
  
  
  
 else
  
  
  
 end if
end do
print, and