Академический Документы
Профессиональный Документы
Культура Документы
Intelligent Slime
How can modelled slime mold solve the travelling salesman problem?
David Versluis
Abstract The travelling salesman problem is
a long-standing NP-hard problem in combinatorial optimization. Physarum polycephalum, the true slime mold, can be
guided to inefficiently solve the problem.
Models of the slime mold can be created to
solve the TSP without guidance. One of these
uses a shrinking blob of discrete particles representing Physarum protoplasm. It forms a
convex and then a concave hull around the
cities, and the solution can be easily read
from the final blob shape. An alternative uses
Figure 1: On the left, the railway network of Tokyo, as formed by a slime mold [11]. On the
right, a travelling salesman tour through 20 cities formed by modelled slime mold [8].
Introduction
The organism used to recreate the
railway network was Physarum polycephalum, the true slime mold [7][11]. It
has not only produced railway networks,
but also approximate solutions to classic
problems from computer science. Foremost among these is the well-known travelling salesman problem, where a sales-
The Travelling salesman problem, or TSP, is probably the most well known and
most widely studied combinatorial optimization problem [9] [5]. It consists of a
map of cities, at certain distances to each other. The salesman wants to travel to all
cities and return to the starting city in the shortest possible path (an example will be
seen later in figure 10). One such path is called a "tour". The TSP has been proven to
be an NP-hard and NP-complete problem [9]. The specifics are too complicated to
go into here, but this basically means that there is no known way to solve it in
polynomial time, and that finding such a way would have massive implications for
computer science. Solutions can nonetheless be found, and dedicated TSP solvers
are available [5]. Besides the obvious usefulness for vehicle routing, solutions to the
TSP can be used in subjects as diverse as efficient wallpaper cutting and optimal
dartboard design. [9].
Of course, this is not the most biologically accurate modelling of the slime
mold. It does not actually consist of such
independently functioning entities. Yet,
modelling it in this way gives excellent
results, that are also very similar to those
found when using the real Physarum.
This is true for both the final solution of
many graph problems, as well as the intermediate stages to such a solution. The
prime example is the Toussaint hierarchy, a number of increasingly connected
types of graphs, where connections are
based upon distance and some definition
of "neighbourhood" [6]. Both the model
and the real physarum develop the relative neighbourhood graph (Figure 7), although the model continues down the hierarchy towards less connections, while
the real physarum travels up the hierarchy somewhat. These graphs are an interesting result, but they are also quite
easy to compute normally [6]. We will
now look at the solutions produced for
the NP-hard TSP [9].
Figure 6: Using a virtual plasmodium to create a complex network, from Jones, 2011 [7].
It approximates the relative neighbourhood
graph that would be produced from these
points.
When to halt
In previous research, such as that of Jones
6, the point to stop was hand-picked. For
this solution, a more robust method was
desired. This simulation stops when all
nodes are partially uncovered[8]. Uncovered is defined as the 5x5 windows
around the node containing less than 15
particles. The outer nodes start uncovered. Because the nodes will become uncovered quite some time before the network would have tightened itself into a
pure network of trails (as in figure 6), the
outcome is still a sheet, but a sheet with
a specific shape, whose edge touches all
nodes (figure 9).
Figure 10: A clarification of the correct reading of the shrinking blob method for solving
the travelling salesman problem from Jones
& Adamatzky, 2013 [8]. This is the same node
setup as figures 8 and 9.
the concavity increases. These concavities balance, slowing but not halting the
growth of each other. If the transformation would not be stopped when a TSP is
created after the concave hull, a network
would then be formed, as in 6
In effect, the method is actually quite
similar to some algorithmic solutions,
starting with a path between several
cities, and inserting cities between others in the tour based on their cost [8].
The distances do not need to be explicitly considered as in these algorithms, because their distances in the environment
already represent it (i.e. it is a Euclidean
TSP). An important distinction from such
an algorithm is the repeatability, due to
some stochastic factors the model does
not always have the same output for the
same input.
There are also some other factors
that make this model a competent solver.
By creating the tour, the shrinking blob
goes along part of the Toussaint hierarchy, from more to less connected graphs
[8]. The authors think this may represent a tradeoff mechanism between foraging efficiency, i.e. having many links,
and transport efficiency, i.e. having only
the most efficient links. The sheet performs this by gradually moving to a concave hull from the larger convex hull
shape, and then on to a network. The
sheet approach also does not allow for
paths to cross, which causes more efficient solutions: crossing paths produce
non-optimal tours [8][4].
Alternative
As mentioned, there are also several
other methods to model slime molds,
and Physarum polycephalum in particular. One of these methods is that of Qian
et al, which combines Ant Colony systems (ACS) with a Physarum network
model [10]. This model uses an ACS
that is capable of solving the travelling
salesman problem, and enhances it with
does.
with tour lengths 6.41% longer on average in a 20-city TSP [8]. In speed, the
exact relation between the models is unclear. The authors of the PNACS do emphasize the relative speed, which is faster
than ACS with few cities, while Joness
model requires manual human observation to determine that tour, which drastically slows it down. However, PNACS is
never compared to non-ACS TSP solvers
such as the Concorde that Joness model
is compared to, so the absolute quality is
hard to determine.
Regardless, it should be emphasised
that outright performance was not considered the goal of the model by Jones,
and that it is mostly a proof of concept,
and a demonstration of complex solving behaviour from simple components.
Similarly the real Physarum was made
to solve the TSP to further examine its
usage as a computing substrate, not to
create a better TSP solver.
Conclusion
Discussion
How do the two modelling methods compare to each other, and to typical TSP
solvers? This question is surprisingly
difficult to answer. There is no single
generally accepted way to analyse a TSPsolver, so all three TSP solvers discussed
here (the real physarum and the two
models) are actually solving slightly different problems. However, some general
observations about their relations can
be made. Firstly, the natural physarum
clearly performs quite poorly, compared
to the models. In a 17-city TSP the
PNACS found the absolute best solution
in 100% of the attempt, and also finds the
shortest possible tour in a 29-city problem in 58% of the attempts [10]. The
real physarum found solutions that were
on average 33.8% longer in the eightcity TSP [12], which is clearly an inferior
performance.The performance of Joness
particle model seems to be intermediary,
The natural behaviour of Physarum Polycephalum and two models in producing solutions for the travelling salesman
problem have been described. All are
shown to be capable of creating solutions
to the travelling salesman problems that
are far better than random chance. However, while the natural organism shows
interesting behaviour, it is not capable of
solving the travelling salesman problem
without guidance. Even with guidance,
the solutions are quite suboptimal. The
models are capable of organically solving
it, and perform much better. The model
by Jones performs worse than traditional
solvers, but is an interesting example of
emergent solving behaviour from simple
autonomous agents. The model by Qian
performs better than a typical ACS under certain conditions, but is more computationally intensive, and does not feature the same emergent behavior as the
other model. In conclusion, modelled
Bibliography
[1] Adamatzky, A. (2009). Developing
proximity graphs by Physarum
polycephalum: Does the
plasmodium follow the Toussaint
hierarchy?. Parallel Processing
Letters, 19(01), 105-127. [p4]