The Study of Synchronous Flashing of Fireflies using Cellular Automata