Chapter 5Colonize! Discover Pathways
In the previous chapter, you encouraged a swarm of particles to escape your paper bag. This time, imagine a colony of ants exploring in and around a paper bag, searching for food. Your ants can amble around, visiting a few places along the way, but once they find food, they go home. You can persuade the ants to find a path out of the paper bag if you put all the food above the bag. Initially, they will explore inside the paper bag and eventually end up above the bag. They can then feed and go home. Over time, they will learn efficient routes to get back to the food. In fact, when your ants go straight up, they have found the shortest path to take.
In this chapter, you will discover how an ant colony optimization ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access