
Figure 1
Pheromone Strengths
a = 1
b = 1
c = 1
X = a + b + c = 3
To choose the next best grid square, the ant will look at the 8 surrounding squares and take the one with the highest pheromone trail.
The trails a, b and c are a third of the strength of trail X. This causes the ant to choose grid square 2, because its pheromone strength is 3 times as strong. The means the ant will move backwards.
This results in another instance of the dancing ant problem. When it moves back to square 2 its next best position is again the position in figure 1. And this continues.
Even by selecting the best grid square randomly with a bias towards the highest this problem still seems to occur to much for the ants to follow the trails properly.
