Abstract
We consider the problem of finding a “treasure” at an unknown point of an n-dimensional infinite grid, \(n\ge 3\), by initially collocated finite automaton (FA) agents. Recently, the problem has been well characterized for 2 dimensions for deterministic as well as randomized FA agents, both in synchronous and semi-synchronous models (Brandt et al. in Proceedings of 32nd International Symposium on Distributed Computing (DISC) LIPCS 121:13:1–13:17, 2018; Emek et al. in Theor Comput Sci 608:255–267, 2015). It has been conjectured that \(n+1\) randomized FA agents are necessary to solve this problem in the n-dimensional grid (Cohen et al. in Proceedings of the 28th SODA, SODA ’17, pp 207–224, 2017). In this paper we disprove the conjecture in a strong sense: we show that three randomized synchronous FA agents suffice to explore an n-dimensional grid for any n. Our algorithm is optimal in terms of the number of the agents. Our key insight is that a constant number of FA agents can, by their positions and movements, implement a stack, which can store the path being explored. We also show how to implement our algorithm using: four randomized semi-synchronous FA agents; four deterministic synchronous FA agents; or five deterministic semi-synchronous FA agents. We give a different, no-stack algorithm that uses 4 deterministic semi-synchronous FA agents for the 3-dimensional grid. This is provably optimal in the number of agents and the exploration cost, and surprisingly, matches the result for 2 dimensions. For \(n\ge 4\), the time complexity of the stack-based algorithms mentioned above is exponential in distance D of the treasure from the starting point of the agents. We show that in the deterministic case, one additional finite automaton agent brings the time down to a polynomial. We also show that any algorithm using 3 synchronous deterministic FA agents in 3 dimensions must travel beyond \(\Omega (D^{3/2})\) from the origin. Finally, we show that all the above algorithms can be generalized to unoriented grids. More specifically, six deterministic semi-synchronous FA agents are sufficient to locate the treasure in an unoriented n-dimensional grid.
Similar content being viewed by others
Notes
This is similar to the simulation of PDAs by counter machines - see Chapter 8.5 in Hopcroft, Motwani, and Ullman text [30]; however, the details of our implementation are completely different.
Relative to \(a_1\).
References
Aleliunas, R., Karp, R.M., Lipton, R.J., Lovasz, L., Rackoff, C.: Random walks, universal traversal sequences, and the complexity of maze problems. In: Proceedings of 20th FOCS, pp. 218–223 (1979)
Baeza-Yates, R.A., Culberson, J.C., Rawlins, G.J.E.: Searching with uncertainty (extended abstract). In: Proceedings of the 1st Scandinavian Workshop on Algorithm Theory (SWAT 88), pp. 176–189 (1988)
Baeza-Yates, R.A., Schott, R.: Parallel searching in the plane. Comput. Geom. 5, 143–154 (1995)
Beck, A.: On the linear search problem. Isr. J. Math. 2(4), 221–228 (1964)
Beck, A., Warren, P.: The return of the linear search problem. Isr. J. Math. 14(2), 169–183 (1973)
Bellman, R.: An optimal search. SIAM Rev. 5(3), 274–274 (1963)
Bender, M.A., Slonim, D.K.: The power of team exploration: two robots can learn unlabeled directed graphs. In: Proceedings 35th Annual Symposium on Foundations of Computer Science, pp. 75–85 (1994)
Bender, M.A., Fernández, A., Ron, D., Sahai, A., Vadhan, S.: The power of a pebble: exploring and mapping directed graphs. Inf. Comput. 176(1), 1–21 (2002)
Blum, M., Sakoda, W.J.: On the capability of finite automata in 2 and 3 dimensional space. In: Proceedings of FOCS, pp. 147–161 (1977)
Bose, P., De Carufel, J.-L., Durocher, S.: Revisiting the problem of searching on a line. In: Proceedings of the ESA 2013, Sophia Antipolis, France, September 2–4, 2013, pp. 205–216 (2013)
Brandt, S., Forster, K.-T., Richner, B., Wattenhofer, R.: Wireless evacuation on \(m\) rays with \(k\) searchers. In: Proceedings of SIROCCO 2017, LNCS, 10641, 140–157 (2017)
Brandt, S., Uitto, J., Wattenhofer, R.: A tight lower bound for semi-synchronous collaborative grid exploration. In: Proceedings of 32nd International Symposium on Distributed Computing (DISC) LIPCS 121, 13:1–13:17 (2018)
Brass, P., Cabrera-Mora, F., Gasparri, A., Xiao, J.: Multirobot tree and graph exploration. IEEE Trans. Robot. 27(4), 707–717 (2011)
Castello, E., Yamamoto, T., Libera, F.D., Liu, W., Winfield, A., Nakamura, Y.: Adaptive foraging for simulated and real robotic swarms: the dynamical response threshold approach. Swarm Intell. 10(1), 1–31 (2016)
Chopra, S., Egerstedt, M.: Multi-robot routing for servicing spatio-temporal requests: a musically inspired problem. In: IFAC Conference on Analysis and Design of Hybrid Systems (2012)
Chrobak, M., Gasieniec, L., Gorry, T., Martin, R.: Group search on the line. In: Proceedings of SOFSEM 2015: 41st International Conference on Current Trends in Theory and Practice of Computer Science, pp. 164–176 (2015)
Cohen, L., Emek, Y., Louidor, O., Uitto, J.: Exploring an infinite space with finite memory scouts. In: Proceedings of the 28th SODA, SODA ’17, pp. 207–224 (2017)
Czyzowicz, J., Gasieniec, L., Gorry, T., Kranakis, E., Martin, R., Pajak, D.: Evacuating robots via unknown exit in a disk. In: Proceedings of the 28th International Symposium on Distributed Computing (DISC 2014), pp. 122–136 (2014)
Das, S., Flocchini, P., Prencipe, G., Santoro, N., Yamashita, M.: Autonomous mobile robots with lights. Theor. Comput. Sci. 609(P1), 171–184 (2016)
Deng, X., Papadimitriou, C.H.: Exploring an unknown graph. J. Gr. Theory 32, 265–297 (1999)
Emek, Y., Langner, T., Stolz, D., Uitto, J., Wattenhofer, R.: How many ants does it take to find the food? Theor. Comput. Sci. 608, 255–267 (2015)
Emek, Y., Langner, T., Uitto, J., Wattenhofer, R.: Solving the ants problem with finite state machines. In: Proceedings of ICALP, pp. 471–482 (2014)
Estrada, M.A., Mintchev, S., Christensen, D., Cutkosky, M.R., Floreano, D.: Forceful manipulation with micro air vehicles. Sci. Robot. 3(23), 1 (2018)
Feinerman, O., Korman, A., Lotker, Z., Sereni, J-S.: Collaborative search in the plane without communication. In: Proceedings of PODC, pp. 77–86 (2013)
Flocchini, P., Prencipe, G., Santoro, N.: Distributed computing by oblivious mobile robots (Synthesis Lectures on Distributed Computing Theory). Morgan & Claypool Publishers (2016)
Flocchini, P., Prencipe, G., Santoro, N., Widmayer, P.: Arbitrary pattern formation by asynchronous, anonymous, oblivious robots. Theor. Comput. Sci. 407(1–3), 412–447 (2008)
Flocchini, P., Ilcinkas, D., Pelc, A., Santoro, N.: Remembering without memory: tree exploration by asynchronous oblivious robots. Theor. Comput. Sci. 411(14–15), 1583–1598 (2010)
Fraigniaud, P., Ilcinkas, D., Peer, G., Pelc, A., Peleg, D.: Graph Exploration by a Finite Automaton. Theor. Comput. Sci. 345(2–3), 331–344 (2005)
Ghosh, S.K., Klein, R.: Online algorithms for searching and exploration in the plane. Comput. Sci. Rev. 4(4), 189–201 (2010)
Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation, 3rd edn. Addison-Wesley Longman Publishing Co. Inc, Boston, MA (2006)
Jez, A., Lopuszanski, J.: On the two-dimensional cow search problem. Inf. Process. Lett. 109(11), 543–547 (2009)
Lenzen, C., Lynch, N.A., Newport, C.C., Radeva, T.: Trade-offs between selection complexity and performance when searching the plane without communication. In: ACM Symposium on Principles of Distributed Comp. (PODC 2014), pp. 252–261 (2014)
López-Ortiz, A., Sweet, G.: Parallel searching on a lattice. In: Proceedings of the 13th Canadian Conference on Computational Geometry (CCCG 2001), pp. 125–128 (2001)
Mans, B.: Optimal distributed algorithms in unlabeled tori and chordal rings. J. Parallel Distrib. Comput. 46(1), 80–90 (1997)
Wald, A.: On cumulative sums of random variables. Ann. Math. Statist. 15(3), 283–296 (1944)
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest.
The authors have no relevant financial or non-financial interests to disclose.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Dobrev, S., Narayanan, L., Opatrny, J. et al. Exploration of High-Dimensional Grids by Finite State Machines. Algorithmica 86, 1700–1729 (2024). https://doi.org/10.1007/s00453-024-01207-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-024-01207-6