Research Article

Path Planning of Ant Colony Algorithm Based on Decision Tree in the Context of COVID-19

Algorithm 4

Pseudocode of improved ACO algorithm.
1: Initializing the human flow density matrix;
2: The crowd density matrix is updated based on decision tree rules;
3: Initialize the pheromone matrix;
%Update the pheromone volatility matrix based on the human flow density matrix
4: if  from the high-density area to the low-density area, or in the low-density area then
5:  ←A1; %The is the pheromone volatility coefficient
6: elseif  in the same density area then  %The A1, A2, and A3 are three different coefficient values
7:  ←A2;  %A1<A2<A3
8: elseif  from the low-density area to the high-density area then
9:  ←A3;
10: Basic ACO algorithm;