Swarm intelligence
Swarm intelligence is a computational approach in which interactions among decentralized, relatively simple agents produce collective problem-solving, search, or optimization behavior.
Optimization Algorithms: AI techniques for design, planning, and control problems
A swarm intelligence algorithm is a distributed search or optimization method inspired by the collective behavior of social animals or other simple agents.
- How it is used
- Uses cooperative populations of agents to search for optimal or near-optimal solutions to complex optimization problems.
- How deep it goes
- Defines decentralized collective behavior and gives a generic initialization-and-update loop; leaves specific update mechanisms to individual algorithms.
- Examples
- Illustrates cooperative search with a treasure hunt and links flocking, ant foraging, and bee foraging to optimization algorithms.
- What you can do after
- Evaluate/understand it as cooperative population-based optimization, distinguish it from evolutionary replacement, and recognize several swarm algorithm families.
Grokking AI Algorithms, Second Edition
An algorithmic method that searches for solutions through interactions among multiple simple agents modeled on collective behavior.
- How it is used
- Frames collective animal behavior as a practical strategy for pathfinding and difficult optimization problems.
- How deep it goes
- Explains emergence, pheromone feedback, bridge-route convergence, and flocking rules, then points toward algorithm implementation.
- Examples
- Uses ant colonies, an asymmetric bridge experiment, bird flocks, and pheromone-guided shortest-path selection.
- What you can do after
- Build it from scratch by designing and implementing an ant colony optimization algorithm.
Read how Grokking AI Algorithms, Second Edition explains swarm intelligence →
Related concepts
- ant colony optimizationused by · Ant colony optimization is a population-based probabilistic optimization technique in which artificial agents use simulated pheromone trails to guide the search for good solutions.
- artificial bee colony algorithmincludes · The artificial bee colony algorithm is a swarm intelligence optimization algorithm modeled on honeybee foraging, role differentiation, and resource communication.
- particle swarm optimizationincludes · Particle swarm optimization is a population-based optimization method in which candidate solutions adjust their positions using individual and collective search information.
- artificial intelligencekind of · Artificial intelligence is the field concerned with creating computational systems that perform tasks associated with human intelligence, such as learning, reasoning, perception, or decision-making.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

