Wireless Communications and Mobile Computing / 2017 / Article / Alg 2

Research Article

Crowdsensing Task Assignment Based on Particle Swarm Optimization in Cognitive Radio Networks

Algorithm 2

Random generation of each particle (initialization).
for each mobile user
  if its remaining energy satisfies formula (3)
   It chooses a random channel;
   else it will not sense;
  end if
end for
if the cost constraint is satisfied
  The initialization is completed;
  else reserve a user sensing a same channel in a sub-location;
end if
if the cost constraint is satisfied
  The initialization is completed;
  else give up users less weight until the cost is satisfied;
end if

We are committed to sharing findings related to COVID-19 as quickly and safely as possible. Any author submitting a COVID-19 paper should notify us at help@hindawi.com to ensure their research is fast-tracked and made available on a preprint server as soon as possible. We will be providing unlimited waivers of publication charges for accepted articles related to COVID-19. Sign up here as a reviewer to help fast-track new submissions.