its called swarm intelligence and not so unknown in the AI science. Scientists copied the idea from the ants as a single one of them is not intelligent but in a large group they can do pretty much everything- same goes for bees.