Skip to main content
. 2020 Apr 30;20(9):2566. doi: 10.3390/s20092566
Algorithm 1 Pseudocode of CACOC.
procedure CACOC
  currentstate“ahead”
  loop
   ρnext value in first return map
   if no pheromone sensed in the neighbourhood then
    currentstateCROMM
   else
    if ρ<PR then
     currentstate“right”
    else if ρ<PR+PL then
     currentstate“left”
    else
     currentstate“ahead”
    end if
    move according to the currentstate
   end if
  end loop
end procedure