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 2 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
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.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems 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 →

Related concepts

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.