A swarm that searches
Room UUDPYD. An example of where it fits: ZEIT4150 Fundamentals of Artificial Intelligence, at UNSW Canberra. Notebook: swarm-search.ipynb.
Ten targets are hidden on a 3 m by 2 m floor; nobody, not even the console, shows where. One program commands five pods, each with a detector that reports a target within 15 cm. The swarm keeps one shared map of what it has found.
- Join, and add four more pods to your swarm (
arena.spawn()). They leave the room when your notebook closes. - No plan: each pod drives to random points for 90 s.
- A plan: the floor split into one strip per pod, each swept in lanes 25 cm apart.
- Your turn: compare the two, share out a strip when a pod fails, allocate strips by auction, and use what has been found to choose where to look next.
| Search (measured on the server) | Targets found | Time |
|---|---|---|
| Random walk | 4 of 10 | 90 s |
| Planned sweep | 9 of 10 | 61 s |
The sweep missed one target that sits where two pods' strips meet: a good first question for students.
