Ants use stigmergy[0]. They lay down different pheremones in their environment as they walk. Intelligent behavior arises out of the combination of all these signals. Wikipedia, the law, and open source software are great examples of stigmergy in humans.
[0] https://en.wikipedia.org/wiki/Stigmergy