Research Article

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

Algorithm 3

Rules 2 and 3.
1: if  the number of neighbors of i marked with ‘3’ > = 1 then %The i indicates the location to be identified
2:   i←2;   %The 3,2 and 1 represent high risk, medium risk and low risk areas respectively
3: elseif  the number of neighbors of i marked with ‘2’ > = 1 then
4:   i←1;
5: elseif  the number of neighbors of i marked with ‘1’ > = 1 then
6:   i←1;
7: else
8:   i←0;   %The 0 indicates the location to be identified