liveBook · Manning

Swarm intelligence

Swarm intelligence is a computational approach in which interactions among decentralized, relatively simple agents produce collective problem-solving, search, or optimization behavior.

How 3 Manning books explain it

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.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains swarm intelligence →

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

Related concepts

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.