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
- Introduces cooperative population-based search as an alternative to evolutionary selection and replacement.
- How deep it goes
- Defines decentralized agent interaction and sketches a general swarm loop, while deferring algorithm-specific mechanisms to individual methods.
- Examples
- Uses cooperative treasure hunting and biological behaviors such as flocking, foraging, and bacterial swarming.
- What you can do after
- Evaluate and understand how interacting agents support population-based search and how swarm methods differ from evolutionary algorithms.
Algorithms Every Programmer Should Know
Swarm intelligence is collective problem-solving behavior that emerges from interactions among decentralized agents.
- How it is used
- Frames swarm intelligence as a way to find good-enough solutions when massive state spaces make exact optimization impractical.
- How deep it goes
- Traces ACO through local choices, weighted probabilities, pheromone updates, pseudocode, and Python implementation.
- Examples
- Uses ants moving from a nest among crumbs to demonstrate probabilistic route selection and pheromone feedback.
- What you can do after
- Build it from scratch by implementing probabilistic node selection and iterative ant tours with pheromone updates.
Read how Algorithms Every Programmer Should Know explains swarm intelligence →
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 →
What to know first
- artificial intelligenceArtificial intelligence is the field of computing concerned with creating systems that perform tasks associated with intelligence, such as learning, reasoning, perception, and decision-making.
- genetic algorithmA genetic algorithm is an evolutionary optimization method that improves a population of candidate solutions through fitness-based selection and variation, often including recombination and mutation.
- search spaceA search space is the set of possible states, choices, configurations, or candidate solutions that may be considered when exploring or solving a problem.
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 of computing concerned with creating systems that perform tasks associated with intelligence, such as learning, reasoning, perception, and decision-making.
- biology-inspired algorithmkind of · A biology-inspired algorithm is a computational method whose design models behaviors or processes observed in living organisms.
Questions about swarm intelligence
What is swarm intelligence?
Swarm intelligence is a computational approach in which interactions among decentralized, relatively simple agents produce collective problem-solving, search, or optimization behavior.
Which Manning books explain swarm intelligence?
Optimization Algorithms: AI techniques for design, planning, and control problems, Algorithms Every Programmer Should Know and Grokking AI Algorithms, Second Edition.
What should I know before learning swarm intelligence?
Manning books that teach swarm intelligence usually introduce artificial intelligence, genetic algorithm and search space first.
What kinds of swarm intelligence are there?
Kinds of swarm intelligence include artificial bee colony algorithm and particle swarm optimization.
What is swarm intelligence a kind of?
Swarm intelligence is a kind of artificial intelligence. Artificial intelligence is the field of computing concerned with creating systems that perform tasks associated with intelligence, such as learning, reasoning, perception, and 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.


