Foraging Algorithms for Robotic Swarms