Some cannonical swarm algorithms are outlined in the articles below at length. They include the mathematical derivation, code implementation, and resulting video of the robotarium in action. These are intended to act as a blueprint to develop your own algorithms.