Ants
Ants
an (1 + 1)-EA is not the resulting runtime bound on its own. Significant are
the underlying techniques that can be generalized to analyze EAs in different
and more general situations. In [STW04], EAs for sorting are presented. The
authors study different objective functions and mutation operators for the
respective problem. The resulting runtime bounds for sorting n elements
with an EA range from Θ(n2 · log(n)) to an in n exponentially increasing
lower bound, depending on the exact choice of the objective function mea-
suring the “sortedness” of unsorted sequences and the choice of the mutation
operator.
Further examples for combinatorial optimization problems, which can be
solved with an EA within certain, formally proved time bounds, are the single
source shortest path (SSSP) problem ([STW04]), the maximum matching
(MM) problem ([GW03]) and the minimum spanning tree (MST) problem
([NW08]).
In [Jäg03], one can find an attempt to analyze (1 + 1)-EAs for continuous
objective functions RD → R. The author presents a version of the (1 + 1)-EA
with an adapted mutation operator, where, roughly speaking, the variance
of the mutation is altered depending on the success of the algorithm. For
functions that behave like the Euclidean distance to some point o ∈ RD , i. e.,
for functions f satisfying
the author proves that the time for halving the distance between the indi-
vidual and the global minimum o is linear in D.
Ant algorithms are inspired by the famous double bridge experiment of Goss
et al. ([GADP89]). A colony of Argentine ants was set into an artificial envi-
ronment consisting of their nest and a food source which could be arrived via
two different ways with different lengths. The situation is shown in Figure
2.10. In the beginning, the ants randomly decide for one of the two paths
since the colony has no information obtained yet. While moving along the
path, each ant emits pheromones, marking the path it has chosen. The ants
that have decided for the shorter path arrive at the food source first and most
likely take the same way back to the nest because until the other group also
arrives at the food source, the pheromones are only on the shorter path.
45
2. Particle Swarm Optimization: State of the Art
When the ants that decided for the longer path finally arrive at the food
source, they sense a higher concentration of pheromones on the shorter path
than on the longer path because the shorter path is already traversed and
marked twice. As more time passes and the ants go several rounds to the
food source and back, the intensity difference between the pheromone val-
ues on the two ways further increases and the shorter path becomes more
and more attractive. In the end, only very few ants use the longer way while
the vast majority prefers the shorter path.
Food Food
Nest Nest
Source Source
(a) At the beginning: Ants moving along (b) After some time: Most ants moving
one of the two paths. along the shorter path.
This capability of ants to find the shortest way to the food source has been
modeled in order to create an optimization algorithm for the TSP ([DG97]).
The resulting ant algorithm works as follows. Every edge {i, j} of the input
graph G is assigned a pheromone value τi,j , which is initialized with some
positive value. The pheromone values represent the memory of the colony.
High pheromone values indicate a high probability for the ants to select the
respective edge again. Additionally, every edge {i, j} has a certain visibility
ηi,j , also called heuristic information, a value that determines how attractive
an edge is for the ants, without taking pheromones into account. A typical
choice is ηi,j = 1/di,j , where di,j is the length of edge {i, j}.
46
2.7 Other Nature-Inspired Meta-Heuristics
every ant k selects its next node randomly. If the current node of ant k is
(k)
node i, then it moves to node j with probability pi,j , defined as
⎧
α β
⎨ ' (τi,j ) · (ηi,j )
⎪
if j ∈
/ πk
(k) α β
pi,j := / k (τi,s ) · (ηi,s )
s∈π (2.12)
⎪
⎩0 otherwise,
pleted their tour, the pheromone values are updates via the equation
47
2. Particle Swarm Optimization: State of the Art
scribes, by how much the pheromone value of edge {i, j} is increased by ants
moving over it. One example for a concrete choice of ∆τi,j is ([DG97])
N
( (k)
∆τi,j = ∆τi,j
k=1
with )
(k) 1/L(k) if edge {i, j} is traversed by ant k,
∆τi,j =
0 otherwise,
where L(k) is the length of ant k’s tour. When the termination criterion holds,
the algorithm is stopped and the best tour visited by any ant is returned.
An algorithmic overview over the ant algorithm can be found in Algo-
rithm 3. For an overview over variants of the ant algorithm for binary prob-
lems, including some theoretical runtime results, see [NSW09].
48