> They leave trail of pheromones when they go back with food. If ants go somewhere but never return - this path won't have any pheromones and other paths will get more appealing over time.
Most traps do not kill the ants on contact. Ants are supposed to take whatever is in the trap and bring it back to the colony.
They leave trail of pheromones when they go back with food. If ants go somewhere but never return - this path won't have any pheromones and other paths will get more appealing over time.
There are even algorithms for solving hard problems in programming based on that :)