Ant clustering algorithm

The video was recorded with CamStudio. Red ants - carry food, blue ants - do no carry food, orange - food This is a Python implementation of an algorithm propused to explain the way ants sort itmes, such as food or bodies of dead ants, into clusters or piles. Each ant move randomly, and once it hits a food item (orange) it pick it up with a probability that is inversely proportional to the local density of food itmes; then it keep moving randomly, and once it hits an empty area it drop it down
Back to Top