Ants have sexes that are deterministic like bees. So worker ants go outside the hive, drones only reproduce and so on. That is encoded in their DNA so they know their role the same way that we know how to breathe or swallow.
As for how they communicate, ants release small amounts of pheromones that indicate to other ants where food is or other things of interest. This is mostly random though, each ant hasn’t a clue what it’s doing, but on average if you have enough ants, chances are one will find food and then the pheromones will signal the others.
Latest Answers