Home▸Articles▸Biology & Life

The Slime Mold Network: A Biological Algorithm for Efficient Pathfinding

Physarum polycephalum, a single-celled slime mold, demonstrates remarkable problem-solving abilities through self-organized behavior.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What the Slime Mold Network Is

The slime mold network is a fascinating example of emergent behavior where individual agents (in this case, simulated cells) collaborate without central control to form efficient transport networks. This phenomenon was first observed in Physarum polycephalum, a type of slime mold that can solve mazes and find the shortest path between food sources.

In the simulation, thousands of simple agents move across a shared field, sensing their environment through pheromone trails they deposit. These agents self-organize into networks that mimic real-world infrastructure such as road systems or electrical grids.

How It Works

Each agent in the simulation follows a set of simple rules: it moves towards food sources, deposits pheromones to mark paths, and avoids areas with high pheromone concentration. The key mechanism is positive feedback — agents are more likely to follow paths that have higher concentrations of pheromones because these indicate shorter or more efficient routes.

As the simulation progresses, the network topology evolves over time, optimizing itself based on the rules governing agent behavior and environmental conditions.

live demo · related simulation● LIVE

Why It Matters

The slime mold network provides insights into how complex systems can emerge from simple interactions. This phenomenon has inspired research in areas such as urban planning, computer networks, and even artificial intelligence.

Understanding these biological algorithms can help us design more efficient and self-organizing systems in various fields.

Real-World Applications

The principles of the slime mold network have been applied to solve real-world problems, such as optimizing public transportation routes and designing robust communication networks.

Researchers use this model to study self-organization in biological systems and to develop new algorithms for solving complex optimization problems.

Frequently asked questions

How do the agents know which path is shorter?

Agents follow paths with higher pheromone concentrations, which indicate shorter or more efficient routes. This positive feedback loop helps them converge on optimal solutions over time.

Can this model be used to solve mazes in real life?

Yes, the principles of the slime mold network have been applied to solve mazes and other optimization problems, demonstrating its potential for practical applications.

What is positive feedback in this context?

Positive feedback refers to a situation where the output of a system reinforces its input. In the simulation, it means that agents are more likely to follow paths with higher pheromone concentrations, which leads to those paths becoming even more prominent.

How does changing the agent count affect the network formation?

Increasing the number of agents can lead to faster and more complex network formations. However, too many agents might result in overcrowding and less efficient pathfinding due to increased competition for resources.

Try it live

Everything above runs in your browser — open Slime Mold Network — Physarum Agent Simulation and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Slime Mold Network — Physarum Agent Simulation simulation

What did you find?

Add reproduction steps (optional)