Skip to main content
Log in

The ANTS problem

  • Published:
Distributed Computing Aims and scope Submit manuscript

Abstract

We introduce the Ants Nearby Treasure Search problem, which models natural cooperative foraging behavior such as that performed by ants around their nest. In this problem, k probabilistic agents, initially placed at a central location, collectively search for a treasure on the two-dimensional grid. The treasure is placed at a target location by an adversary and the agents’ goal is to find it as fast as possible as a function of both k and D, where D is the (unknown) distance between the central location and the target. We concentrate on the case in which agents cannot communicate while searching. It is straightforward to see that the time until at least one agent finds the target is at least \({\varOmega }(D+D^2/k)\), even for very sophisticated agents, with unrestricted memory. Our algorithmic analysis aims at establishing connections between the time complexity and the initial knowledge held by agents (e.g., regarding their total number k), as they commence the search. We provide a range of both upper and lower bounds for the initial knowledge required for obtaining fast running time. For example, we prove that \(\log \log k+{\varTheta }(1)\) bits of initial information are both necessary and sufficient to obtain asymptotically optimal running time, i.e., \({\mathcal {O}}(D+D^2/k)\). We also we prove that for every \(0<\epsilon < 1\), running in time \({\mathcal {O}}(\log ^{1-\epsilon } k\cdot (D+D^2/k))\) requires that agents have the capacity for storing \({\varOmega }(\log ^\epsilon k)\) different states as they leave the nest to start the search. To the best of our knowledge, the lower bounds presented in this paper provide the first non-trivial lower bounds on the memory complexity of probabilistic agents in the context of search problems. We view this paper as a “proof of concept” for a new type of interdisciplinary methodology. To fully demonstrate this methodology, the theoretical tradeoff presented here (or a similar one) should be combined with measurements of the time performance of searching ants.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2

Similar content being viewed by others

Notes

  1. Note that a lower bound of \(x\ge 1\) bits on the advice size implies a lower bound of \(2^{x-1}\) on the number of states used by the agents already when commencing the search.

  2. To measure the time complexity, we adopt the terminology of competitive analysis, and say that an algorithm is c-competitive, if its time complexity is at most c times the straightforward lower bound, that is, at most \(c(D+ D^2/k)\). In particular, an \({\mathcal {O}}(1)\)-competitive algorithm is an algorithm that runs in \({\mathcal {O}}(D+ D^2/k)\) time.

  3. The spiral search is a particular deterministic search algorithm that starts at a node v and enables the agent to visit all nodes at distance \({\varOmega }(\sqrt{x})\) from v by traversing x edges, for every integer x (see, e.g., [9]). For our purposes, since we are interested with asymptotic results only, we can replace this atomic navigation protocol with any procedure that guarantees such a property. For simplicity, in what follows, we assume that for any integer x, the spiral search of length x starting at a node v visits all nodes at distance at most \(\sqrt{x}/2\) from v.

  4. It is not clear whether or not a probabilistic oracle is strictly more powerful than a deterministic one. Indeed, the oracle assigning the advice is unaware of D, and may thus potentially use the randomization to reduce the size of the advices by balancing between the efficiency of the search for small values of D and larger values.

  5. We note that even though we consider a very liberal setting, and allow a very powerful oracle, the oracles we use for our upper bounds constructions are very simple and rely on much weaker assumptions. Indeed, these oracles are not only deterministic but also assign the same advice to each of the k agents.

  6. For example, it can simulate to following very liberal setting. Assume that in the preprocessing stage, the k agents are organized in a clique topology, and that each agent can send a separate message to each other agent. Furthermore, even though the agents are identical, in this preprocessing stage, let us assume that agents can distinguish the messages received from different agents, and that each of the k agents may use a different probabilistic protocol for this preliminary communication. In addition, no restriction is made either on the memory and computation capabilities of agents or on the preprocessing time, that is, the preprocessing stage takes finite, yet unlimited, time.

  7. Although the treasure is placed far, in principle, it could have also been placed much closer to the source. In fact, had the treasure been placed at a distance of roughly the number of agents \(k<K\), the algorithm would have had enough time T to find it. This is the intuition behind of choice of the value of parameter T.

  8. For example, note that the functions of the form \(\alpha _0+\alpha _1\log ^{\beta _1} x+\alpha _2\log ^{\beta _2}\log x+ \alpha _3 2^{\log ^{\beta _3 }\log x} \log x+\alpha _4\log ^{\beta _4} x\log ^{\beta _5}\log x\), (for non-negative constants \(\alpha _i\) and \(\beta _i\), \(i=1,2,3,4,5\) such that \(\sum _{i=1}^4\alpha _i>0\)) are all relatively-slow.

  9. The scenario is called imaginary, because, instead of letting the oracle assign the advice for the agents, we impose a particular advice to each agent, and let the agents perform the search with our advices. Note that even though such a scenario cannot occur by the definition of the model, each individual agent with advice a cannot distinguish this case from the case that the number of agents was some \(k'\) and the oracle assigned it the advice a.

  10. Since we may have more bits than we need here, we can just pad zero’s as the most significant bits.

  11. This procedure is straightforward. Simply follow a binary search in \(S(\alpha )\) for the element \(k_{i^*}(\alpha )\), up to depth B(k).

  12. The name harmonic was chosen because of structure resemblances to the celebrated harmonic algorithm for the k-server problem, see, e.g., [10].

  13. The bait itself may be “imaginary” in the sense that it need not be placed physically on the terrain. Instead, a camera can just be placed filming the location, and detecting when searchers get nearby.

References

  1. Afek, Y., Alon, N., Bar-Joseph, Z., Cornejo, A., Haeupler, B., Kuhn, F.: Beeping a maximal independent set. Distrib. Comput. 26(4), 195–208 (2013)

    Article  MATH  Google Scholar 

  2. Afek, Y., Alon, N., Barad, O., Hornstein, E., Barkai, N., Bar-Joseph, Z.: A biological solution to a fundamental distributed computing problem. Science 331(6014), 183–185 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  3. Albers, S., Henzinger, M.R.: Exploring unknown environments. SIAM J. Comput. 29, 1164–1188 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  4. Alon, N., Avin, C., Kouck, M., Kozma, G., Lotker, Z., Tuttle, M.R.: Many random walks are faster than one. Comb. Probab. Comput. 20(4), 481–502 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  5. Arkin, R.C.: Cooperation without communication: multiagent schema-based robot navigation. J. Robot. Syst. 9(3), 351–364 (1992)

    Article  Google Scholar 

  6. Averbakh, I., Berman, O.: A heuristic with worst-case analysis for minimax routing of two traveling salesmen on a tree. Discrete Appl. Math. 68, 17–32 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  7. Averbakh, I., Berman, O.: \((p - 1)/(p + 1)\)-approximate algorithms for p-traveling salesmen problems on a tree with minmax objective. Discrete Appl. Math. 75, 201–216 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  8. Arbilly, M., Motro, U., Feldman, M.W., Lotem, A.: Co-evolution of learning complexity and social foraging strategies. J. Theor. Biol. 267(4), 573–581 (2010)

    Article  MathSciNet  Google Scholar 

  9. Baeza-Yates, R.A., Culberson, J.C., Rawlins, G.J.E.: Searching in the plane. Inf. Comput. 106(2), 234–252 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  10. Bartal, Y., Grove, E.: The harmonic \(k\)-server algorithm is competitive. J. ACM 47(1), 1–15 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  11. Beekman, M., Sumpter, D.J.T., Seraphides, N., Ratniek, F.L.W.: Comparing foraging behaviour of small and large honey-bee colonies by decoding waggle dances made by foragers. Funct. Ecol. 18, 829–835 (2004)

    Article  Google Scholar 

  12. Berkolaiko, G., Havlin, S.: Territory covered by N Levy flights on d-dimensional lattices. Phys. Rev. E 55(2), 1395–1400 (1999)

    Article  Google Scholar 

  13. Bockenhauer, H., Komm, D., Kralovic, R., Kralovic, R.: On the advice complexity of the \(k\)-server problem. ICALP 1, 207–218 (2011)

    MathSciNet  MATH  Google Scholar 

  14. Bonifaci, V., Mehlhorn, K., Varma, G.: Physarum can compute shortest paths. In: SODA, pp. 233–240 (2012)

  15. Capaldi, E.A., Smith, A.D., Osborne, J.L., Fahrbach, S.E., Farris, S.M., Reynolds, D.R., Edwards, A.S., Martin, A., Robinson, G.E., Poppy, G.M., Riley, J.R.: Ontogeny of orientation flight in the honeybee revealed by harmonic radar. Nature 403, 537–540 (2000)

    Article  Google Scholar 

  16. Chazelle, B.: Natural algorithms. In: Proceedings of Symposium Discrete Algorithms (SODA), pp. 422–431 (2009)

  17. Cohen, R., Fraigniaud, P., Ilcinkas, D., Korman, A., Peleg, D.: Label-guided graph exploration by a finite automation. ACM Trans. Algorithms (TALG) 4(4) (2008)

  18. Collett, T.S., Dillmann, E., Giger, A., Wehner, R.: Visual landmarks and route following in desert ants. J. Comp. Physiol. A Mol. Integr. Physiol. 170(4), 435–442 (1992)

    Google Scholar 

  19. Cooper, C., Frieze, A.M., Radzik, T.: Multiple random walks in random regular graphs. SIAM J. Discrete Math. 23(4), 1738–1761 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  20. Courchamp, F., Clutton-Brock, T., Grenfell, B.: Inverse density dependence and the Allee effect. Trends Ecol. Evol. (Personal edition) 14(10), 405–410 (1999)

    Article  Google Scholar 

  21. Demaine, E.D., Fekete, S.P., Gal, S.: Online searching with turn cost. Theor. Comput. Sci. 361(2–3), 342–355 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  22. Dessmark, A., Pelc, A.: Optimal graph exploration without good maps. Theor. Comput. Sci. 326(1–3), 343–362 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  23. Elsasser, R., Sauerwald, T.: Tight bounds for the cover time of multiple random walks. Theor. Comput. Sci. 412(24), 2623–2641 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  24. Emek, Y., Fraigniaud, P., Korman, A., Rosen, A.: Online computation with advice. Theor. Comput. Sci. (TCS) 412(24), 2642–2656 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  25. Emek, Y., Langner, T., Uitto, J., Wattenhofer, R.: Solving the ANTS problem with asynchronous finite state machines. In: ICALP 2014 (2014)

  26. Emek, Y., Langner, T., Stolz, D., Uitto, J., Wattenhofer, R.: How many ants does it take to find the food? In: Proceedings of the 21st International Colloquium on Structural Information and Communication Complexity (SIROCCO), pp. 263–278 (2014)

  27. Emek, Y., Wattenhofer, R.: Stone age distributed computing. In: Proceedings of the ACM SIGACT-SIGOPS Symposium on Principles of Distributed Computing (PODC), pp. 137–146 (2013)

  28. Feinerman, O., Korman, A.: Memory lower bounds for randomized collaborative search and implications to biology. In: Proceedings of 26th International Symposium on Distributed Computing (DISC), pp. 61–75 (2012)

  29. Feinerman, O., Korman, A., Lotker, Z., Sereni, J.S.: Collaborative search on the plane without communication. In: Proceedings of 31st ACM Symposium on Principles of Distributed Computing (PODC), pp. 77–86 (2012)

  30. Flocchini, P., Ilcinkas, D., Pelc, A., Santoro, N.: Remembering without memory: tree exploration by asynchronous oblivious robots. Theor. Comput. Sci. 411, 1583–1598 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  31. Flocchini, P., Ilcinkas, D., Pelc, A., Santoro, N.: How many oblivious robots can explore a line. Inf. Process. Lett. 111(20), 1027–1031 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  32. Fraigniaud, P., Ga̧sieniec, L., Kowalski, D.R., Pelc, A.: Collective tree exploration. Networks 48(3), 166–177 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  33. Fraigniaud, P., Ilcinkas, D., Pelc, A.: Oracle size: a new measure of difficulty for communication tasks. In: PODC 2006, pp. 179–187 (2006)

  34. Fraigniaud, P., Gavoille, C., Ilcinkas, D., Pelc, A.: Distributed computing with advice: information sensitivity of graph coloring. Distrib. Comput. 21(6), 395–403 (2009)

    Article  MATH  Google Scholar 

  35. Fraigniaud, P., Korman, A., Lebhar, E.: Local MST computation with short advice. Theory Comput. Syst. (ToCS) 47(4), 920–933 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  36. Fraigniaud, P., Korman, A., Peleg, D.: Towards a complexity theory for local distributed computing. J. ACM 60(5), 35 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  37. Fraigniaud, P., Korman, A., Rodeh, Y.: Parallel exhaustive search without coordination. In: STOC 2016, pp. 312–323 (2016)

  38. Giraldeau, L.A., Kramer, D.L., Deslandes, I., Lair, H.: The effect of competitors and distance on central place foraging eastern chipmunks, Tamias striatus. Anim. Behav. 47(3), 621–632 (1994)

    Article  Google Scholar 

  39. Ambuhl, C., Gasieniec, L., Pelc, A., Radzik, T., Zhang, X.: Tree exploration with logarithmic memory. ACM Trans. Algorithms 7(2), 17 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  40. Giraldeau, L.A., Carco, T.: Social Foraging Theory. Princeton University Press, NJ (2000)

    Google Scholar 

  41. Giraldeau, L.A., Gillis, D.: Do lions hunt in group sizes that maximize hunters’ daily food returns? Anim. Behav. 36(2), 611–613 (1988)

    Article  Google Scholar 

  42. Harkness, R.D., Maroudas, N.G.: Central place foraging by an ant (Cataglyphis bicolor Fab.): a model of searching. Anim. Behav. 33(3), 916–928 (1985)

    Article  Google Scholar 

  43. Holder, K., Polis, G.A.: Optimal and central-place foraging theory applied to a desert harvester ant, Pogonomyrmex californicus. Oecologia 72(3), 440–448 (1987)

    Article  Google Scholar 

  44. Holldobler, B., Wilson, E.O.: The Ants. Harvard University Press, Cambridge (1990)

    Book  Google Scholar 

  45. Jarvis, J.U.M., Bennett, N.C., Spinks, A.C.: Food availability and foraging by wild colonies of Damaraland mole-rats (Cryptomys damarensis): implications for sociality. Oecologia 113(2), 290–298 (1998)

    Article  Google Scholar 

  46. Kagan, E., Ben-Gal, I.: An informational search for a moving target. In: Convention of Electrical and Electronics Engineers in Israel, pp. 153–155 (2006)

  47. Kao, M., Reif, J.H., Tate, S.R.: Searching in an unknown environment: an optimal randomized algorithm for the cow-path problem. J. Inf. Comput. 1, 63–79 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  48. Karp, R.M., Saks, M., Wigderson, A.: On a search problem related to branch-and-bound procedures. In: Proceedings of the 27th Annual Symposium on Foundations of Computer Science (FOCS), pp. 19–28 (1986)

  49. Kitano, H.: Systems biology: a brief overview. Science 295(5560), 1662–1664 (2002)

    Article  Google Scholar 

  50. Korman, A., Sereni, J.S., Viennot, L.: Toward more localized local algorithms: removing assumptions concerning global knowledge. Distrib. Comput. 26(5–6), 289–308 (2013)

    Article  MATH  Google Scholar 

  51. Korman, A., Kutten, S.: Distributed verification of minimum spanning trees. Distrib. Comput. (DC) 20(4), 253–266 (2007)

    Article  MATH  Google Scholar 

  52. Korman, A., Kutten, S., Peleg, D.: Proof labeling schemes. Distrib. Comput. (DC) 22(4), 215–233 (2010)

    Article  MATH  Google Scholar 

  53. Korman, A., Rodeh, Y.: Parallel Linear Search with no Coordination for a Randomly Placed Treasure (submitted)

  54. Krebs, J.R.: Optimal foraging, predation risk and territory defense. Ardea 68, 83–90 (1980)

    Google Scholar 

  55. Langner, T., Stolz, D., Uitto, J. and Wattenhofer, R.: Fault-tolerant ANTS. In: DISC 2014 (2014)

  56. Lenzen, C., Lynch, N.A., Newport, C., Radeva, T.: Trade-offs between selection complexity and performance when searching the plane without communication. In: PODC 2014 (2014)

  57. López-Ortiz, A., Sweet, G.: Parallel searching on a lattice. In: CCCG, pp. 125–128 (2001)

  58. Orians, G.F., Pearson, N.E.: On the theory of central place foraging. Anal. Ecol. Syst. 155–177 (1979)

  59. Panaite, P., Pelc, A.: Exploring unknown undirected graphs. J. Algorithms 33, 281–295 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  60. Polycarpouy, M.M., Yang, Y., Passinoz, K.M.: A cooperative search framework for distributed agents. In: Intelligent Control, pp. 1–6 (2001)

  61. Pratt, S.C.: Quorum sensing by encounter rates in the ant Temnothorax albipennis. Behav. Ecol. 16(2), 488–496 (2005)

    Article  Google Scholar 

  62. Razin, N., Eckmann, J.P., Feinerman, O.: Desert ants achieve reliable recruitment across noisy interactions. J. R. Soc. Interface 10(82), 20130079 (2013)

    Article  Google Scholar 

  63. Reingold, O.: Undirected connectivity in log-space. J. ACM 55(4) (2008)

  64. Reynolds, A.M.: Cooperative random Lévy flight searches and the flight patterns of honeybees. Phys. Lett. A 354, 384–388 (2006)

    Article  Google Scholar 

  65. Reynolds, A.M.: Optimal random Lévy-loop searching: new insights into the searching behaviours of central-place foragers. Eur. Phys. Lett. 82(2), 20001 (2008)

    Article  Google Scholar 

  66. Reynolds, A.M., Smith, A.D., Randolf, M., Greggers, U., Reynolds, D.R., Riley, J.R.: Displaced honey bees perform optimal scale-free search flights. Ecology 88(8), 1955–1961 (2007)

  67. Reynolds, A.M., Smith, A.D., Reynolds, D.R., Carreck, N.L., Osborne, J.L.: Honeybees perform optimal scale-free searching flights when attempting to locate a food source. J. Exp Biol. 210(Pt 21), 3763–3770 (2007)

    Article  Google Scholar 

  68. Rollik, H.A.: Automaten in planaren graphen. Acta Inform. 13, 287–298 (1980)

    Article  MathSciNet  MATH  Google Scholar 

  69. Schoener, T.W.: Theory of feeding strategies. Annu. Rev. Ecol. Syst. 2, 369–404 (1971)

    Article  Google Scholar 

  70. Sommer, S., Wehner, R.: The ant’s estimation of distance travelled: experiments with desert ants, Cataglyphis fortis. J. Comp. Physiol. A. 190(1), 1–6 (2004)

    Article  Google Scholar 

  71. Srinivasan, M.V., Zhang, S., Altwein, M., Tautz, J.: Honeybee navigation: nature and calibration of the odometer. Science 287, 851–853 (2000)

    Article  Google Scholar 

  72. Traniello, J.F.A.: Recruitment behavior, orientation, and the organization of foraging in the carpenter ant Camponotus pennsylvanicus DeGeer (Hymenoptera: Formicidae). Behav. Ecol. Sociobiol. 2(1), 61–79 (1977)

    Article  Google Scholar 

  73. Wagner, I.A., Altshuler, Y., Yanovski, V., Bruckstein, A.M.: Cooperative cleaners—a study in ant-robotics. Int. J. Robot. Res. 27(1), 127–151 (2008)

    Article  Google Scholar 

  74. Wehner, R., Meier, C., Zollikofer, C.: The ontogeny of foraging behaviour in desert ants, Cataglyphis bicolor. Ecol. Entomol. 29, 240–250 (2004)

    Article  Google Scholar 

  75. Wehner, R., Srinivasan, M.Y.: Searching behaviour of desert ants, genus Cataglyphis (Formicidae, Hymenoptera). J. Comp. Physiol. 142(3), 315–338 (1981)

    Article  Google Scholar 

  76. Yang, Y., Minai, A.A., Polycarpou, M.M.: Decentralized cooperative search by networked UAVs in an uncertain environment. In: Proceeding of the 2004 American Control Conference, pp. 5558–5563 (2004)

Download references

Acknowledgments

The authors are thankful to Jean-Sébastien Sereni and Zvi Lotker for helpful discussions, that were particularly useful for facilitating the proofs of Theorems 8 and 10. In addition, the authors are thankful to the anonymous reviewers for helping to improve the presentation of the paper, and for providing us with an idea that was used to prove the upper bound in Sect. 5.2.2.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Amos Korman.

Additional information

O.F., incumbent of the Shlomo and Michla Tomarin Career Development Chair, was partially supported by the Clore Foundation and the Israel Science Foundation (grant 833/15). A.K. was partially supported by the ANR projects DISPLEXITY and PROSE, and by the INRIA project GANG.

This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 648032).

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Feinerman, O., Korman, A. The ANTS problem. Distrib. Comput. 30, 149–168 (2017). https://doi.org/10.1007/s00446-016-0285-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00446-016-0285-8

Keywords

Navigation