Research Article

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

Algorithm 2

Rule 1.
1: if the number of neighbors of i marked with ‘3’ ≥ 4 then %The i indicates the location to be identified
2:  i←3;  %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 ‘3’ ≥ 1 then
4:  i←2;
5: elseif  the number of neighbors of i marked with ‘2’ ≥ 4 then
6:  i←2;
7: elseif  the number of neighbors of i marked with ‘2’ ≥ 1 then
8:  i←1;
9: elseif  the number of neighbors of i marked with ‘1’ ≥ 4 then
10:  i←1;
11: else
12:  i←0;  %The 0 indicates the location to be identified