Swarm Coverage Control — Voronoi Partitioning & Lloyd's Algorithm
Interactive 3D simulation of distributed swarm coverage control: robots partition a region into Voronoi cells and drift toward each cell's density-weighted centroid (Lloyd's algorithm), the real algorithm behind sensor-network and surveillance-drone deployment.
This simulation shows how a robot swarm spreads itself across a region with no central coordinator: each robot claims the patch of space nearest to it (a Voronoi cell), computes that cell's density-weighted centroid, and drifts toward it. Repeating this locally at every robot is exactly Lloyd's algorithm, and it provably drives the whole swarm downhill on a real coverage-quality cost until the deployment locally stabilises into a centroidal Voronoi tessellation. Switch the importance field between a flat priority and one or two "hot zones" to watch the swarm automatically reallocate — more robots, smaller cells, near the regions that matter — the same distributed algorithm used to deploy real surveillance-drone fleets, ocean-sensor buoys and warehouse-monitoring robot teams.
Watch a decentralized robot swarm partition a region into Voronoi cells and drift toward each cell's density-weighted centroid, the real Lloyd's-algorithm control law behind sensor-network and surveillance-drone deployment.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install