Swarm behaviour is a collective behaviour exhibited by animals of similar size which aggregate together, perhaps milling about the same spot or perhaps migrating in some direction.
Recently, a number of mathematical models have been discovered which explain many aspects of the emergent behaviour.