Research Article

An Internet of Things (IoT)-Based Optimization to Enhance Security in Healthcare Applications

Algorithm 2

ACO.
{Initialization}
         Initializeand,
{Construction}
         For each ant s (currently in state n) do
         repeat
         choose in probability the state to move
         append the chosen move to the s-th ant’s set
         until ant s has completed its solution.
         end for
{Trail update}
         For each ant move (n) do
         compute
         update the trailing matrix.
         end for
{Terminating condition}
         If not (end test) go to step