Bird-Flocking-Simulation The boids algorithm by Craig Reynolds is a very good example of how complex animal behaviour can be generated by set of some very simple rules.