Skip to main content
Log in

Exploration of High-Dimensional Grids by Finite State Machines

  • Published:
Algorithmica Aims and scope Submit manuscript

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.

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.

Algorithm 1
Algorithm 2
Fig. 1
Algorithm 3
Algorithm 4
Algorithm 5
Algorithm 6
Fig. 2
Fig. 3
Algorithm 7
Algorithm 8
Algorithm 9
Fig. 4
Fig. 5
Algorithm 10
Fig. 6
Algorithm 11

Similar content being viewed by others

Notes

  1. In some related literature [17, 21, 21] the same model was referred to as asynchronous. We follow the terminology of semi-synchronous of [12] and the vast literature on autonomous mobile robots to avoid confusion with a fully asynchronous model.

  2. 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.

  3. Relative to \(a_1\).

References

  1. 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)

  2. 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)

  3. Baeza-Yates, R.A., Schott, R.: Parallel searching in the plane. Comput. Geom. 5, 143–154 (1995)

    Article  MathSciNet  Google Scholar 

  4. Beck, A.: On the linear search problem. Isr. J. Math. 2(4), 221–228 (1964)

    Article  MathSciNet  Google Scholar 

  5. Beck, A., Warren, P.: The return of the linear search problem. Isr. J. Math. 14(2), 169–183 (1973)

    Article  MathSciNet  Google Scholar 

  6. Bellman, R.: An optimal search. SIAM Rev. 5(3), 274–274 (1963)

    Article  Google Scholar 

  7. 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)

  8. 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)

    Article  MathSciNet  Google Scholar 

  9. 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)

  10. 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)

  11. 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)

  12. 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)

  13. Brass, P., Cabrera-Mora, F., Gasparri, A., Xiao, J.: Multirobot tree and graph exploration. IEEE Trans. Robot. 27(4), 707–717 (2011)

    Article  Google Scholar 

  14. 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)

  15. 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)

  16. 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)

  17. 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)

  18. 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)

  19. Das, S., Flocchini, P., Prencipe, G., Santoro, N., Yamashita, M.: Autonomous mobile robots with lights. Theor. Comput. Sci. 609(P1), 171–184 (2016)

    Article  MathSciNet  Google Scholar 

  20. Deng, X., Papadimitriou, C.H.: Exploring an unknown graph. J. Gr. Theory 32, 265–297 (1999)

    Article  MathSciNet  Google Scholar 

  21. 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)

    Article  MathSciNet  Google Scholar 

  22. Emek, Y., Langner, T., Uitto, J., Wattenhofer, R.: Solving the ants problem with finite state machines. In: Proceedings of ICALP, pp. 471–482 (2014)

  23. Estrada, M.A., Mintchev, S., Christensen, D., Cutkosky, M.R., Floreano, D.: Forceful manipulation with micro air vehicles. Sci. Robot. 3(23), 1 (2018)

    Article  Google Scholar 

  24. Feinerman, O., Korman, A., Lotker, Z., Sereni, J-S.: Collaborative search in the plane without communication. In: Proceedings of PODC, pp. 77–86 (2013)

  25. Flocchini, P., Prencipe, G., Santoro, N.: Distributed computing by oblivious mobile robots (Synthesis Lectures on Distributed Computing Theory). Morgan & Claypool Publishers (2016)

  26. 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)

    Article  MathSciNet  Google Scholar 

  27. 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)

    Article  MathSciNet  Google Scholar 

  28. 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)

    Article  MathSciNet  Google Scholar 

  29. Ghosh, S.K., Klein, R.: Online algorithms for searching and exploration in the plane. Comput. Sci. Rev. 4(4), 189–201 (2010)

    Article  Google Scholar 

  30. 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)

    Google Scholar 

  31. Jez, A., Lopuszanski, J.: On the two-dimensional cow search problem. Inf. Process. Lett. 109(11), 543–547 (2009)

    Article  MathSciNet  Google Scholar 

  32. 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)

  33. 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)

  34. Mans, B.: Optimal distributed algorithms in unlabeled tori and chordal rings. J. Parallel Distrib. Comput. 46(1), 80–90 (1997)

    Article  Google Scholar 

  35. Wald, A.: On cumulative sums of random variables. Ann. Math. Statist. 15(3), 283–296 (1944)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Denis Pankratov.

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-024-01207-6

Navigation