PlatoPod Try it now Book a demo

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.

  1. Join, and add four more pods to your swarm (arena.spawn()). They leave the room when your notebook closes.
  2. No plan: each pod drives to random points for 90 s.
  3. A plan: the floor split into one strip per pod, each swept in lanes 25 cm apart.
  4. 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 foundTime
Random walk4 of 1090 s
Planned sweep9 of 1061 s

The sweep missed one target that sits where two pods' strips meet: a good first question for students.

The swarm room in 3D during a sweep: five pods of one swarm spread across the floor, each in its own strip
One notebook's swarm of five early in its sweep, each pod starting its own strip. The targets are not shown anywhere.