Graph exploration by a single agent
One agent starts at a node of an unknown anonymous graph and must visit every node; how much memory does it need, which pebbles or knowledge make it possible, and how fast can it be?
Problem statement and measurescollapse
A single deterministic agent is placed at a node \(s\) of a connected graph \(G\) with \(n\) nodes, \(m\) edges and maximum degree \(\Delta\). Nodes are anonymous (they carry no names the agent can read), and the edges at each node are numbered locally; these numbers are the node's ports. The agent sees the degree of its node and the port by which it entered. It must visit every node of \(G\). Three termination requirements are standard:
- perpetual exploration: every node is eventually visited; the agent never has to stop;
- exploration with stop: every node is visited and the agent then stops, anywhere;
- exploration with return: every node is visited and the agent stops at \(s\).
Return implies stop, and stop implies perpetual exploration. Memory is the number of bits of the agent's state; when the agent carries pebbles (objects it can drop on a node and pick up again) their number is reported with the memory. Time is the number of moves (edge traversals) until exploration is complete; for periodic exploration it is the period. Unless a variant says otherwise the agent knows nothing about \(G\), not even \(n\).
Exploration is the oldest problem of the mobile-agent literature: it started as maze search by finite automata, and the question of how little memory suffices runs from Budach's impossibility (1978) to Reingold's log-space algorithm (2005). Several agents exploring together form the sibling problem, collaborative exploration.
Measures: Time, edge traversals until every node is visited (for periodic exploration: the period); Memory, bits of agent memory; pebbles, if any, are counted separately.
A first look
the basic problem, a simple algorithm and why some things cannot be done, for a newcomer
Imagine a small cleaning machine put down in a large building with no map, where every room looks the same. We model the building as a graph: rooms are nodes and corridors are edges (each edge joins two nodes), and the machine is an agent that walks from node to node along edges; one crossing of one edge is a move. \(n\) is the number of nodes and \(m\) the number of edges; the degree of a node is the number of edges at it, and \(\Delta\) is the largest degree. At each node the edges are numbered \(0, 1, \dots\); these numbers are called ports, and the numbering at one node has nothing to do with the numbering at the next. The agent sees only the degree of its current node and the port by which it came in; nodes are anonymous (they have no names), so it cannot tell a node it has seen before from a new one. In the basic version (perpetual exploration) it must eventually visit every node of every connected graph, without ever having to stop, and the question is how few bits of memory (what the agent keeps from one move to the next) make this possible.
This is the algorithm Choose-Next of Diks et al. 2004, for graphs without cycles (trees); here the ports of a node of degree \(d\) are numbered \(1, \dots, d\).
- Leave the start node (the node where you are placed) by port 1.
- When you enter a node of degree \(d\) by port \(i\), leave it by port \((i \bmod d) + 1\), the next port in cyclic order (at a node of degree 1 this sends you straight back).
- Repeat forever.
Why it matters. Choosing the next port from the entry port alone is the basic move of almost every memory-efficient exploration algorithm, and the universal exploration sequences used for general graphs are a generalisation of it.
Ask for more: the agent must visit every node and then stop, without knowing \(n\) and without a pebble (an object it could drop on a node to recognise that node later). Take rings (cycles) of every size, numbered so that at every node port 0 leads clockwise and port 1 counterclockwise. In such a ring every node has degree 2 and every arrival looks the same, so what the agent sees never depends on the size of the ring. A deterministic agent (one with no random choices) therefore makes the same sequence of moves in every such ring. Since it explores and stops in, say, the ring of 3 nodes, it stops after some fixed number \(T\) of moves, and it does the same in the ring of \(T+2\) nodes.
Why it matters. It shows that the hard part of exploration is often knowing when you are done, a theme that returns in dispersion, rendezvous and gathering.
Allow the agent to flip coins, and tell it a number \(N \ge n\).
- At each node, pick one of the ports uniformly at random and take its edge.
- Count the moves; stop after \(2N^3\) moves.
Why it matters. The random-walk bound was the starting point for universal traversal and exploration sequences, which turn the random walk into a fixed list of port choices that works on every graph.
What is known
The best upper bound against the best lower bound in each catalogued setting. Open a setting for its results, proofs and notes, or see the progress map with the branch points.
Open questions 18
Arbitrary graphs, perpetual exploration
- What is the time of memory-optimal perpetual exploration, and is there a trade-off between memory and time?
Trees, exploration with stop
- Can exploration with stop on trees use asymptotically less memory than exploration with return? (Open problem of Diks et al. 2004.) Equivalently: close \(\Omega(\log\log\log n)\) versus \(O(\log n)\).
Exploration with return and pebbles
- How much memory is needed to encode the agent's transition function? The naive table needs \((\log n)^{O(1)}\) bits (Remark 1 of Disser et al. 2019).
Exploration with stop when \(n\) is known
- Is \(\Omega(\log n)\) bits necessary when \(n\) is known? The trap arguments Fraigniaud et al. 2005a are stated for agents that know nothing.
Randomized exploration when \(n\) is known
- What is the memory needed by a randomized agent that must stop correctly with high probability, as a function of \(n\)?
Exploration with stop and one pebble
- Is \(\Omega(D\log\Delta)\) memory needed for exploration with stop by an agent with one pebble Fraigniaud et al. 2005b?
Port numbers chosen by the designer (periodic exploration)
- Close the constant gaps: \(2n-2\) versus \(3.5n-2\) for constant memory, \(2.8n - O(1)\) versus \(4n-2\) for oblivious agents Czyzowicz et al. 2012c Kosowski & Navarra 2012.
- Trade-offs between period and memory: the only lower bound for agents with memory does not depend on memory.
Directed graphs, one pebble
- Close \(\Omega(n\log\Delta_{out})\) versus \(O(n\Delta_{out}\log n)\) bits for exploring digraphs with one pebble.
- Determine the trade-off between time and memory: polynomial-time exploration with stop is known only with \(O(n^2\Delta_{out}\log n)\) bits and \(O(\log\log n)\) pebbles, far from the \(\Omega(n\log\Delta_{out})\) lower bound (Section 5 of Fraigniaud & Ilcinkas 2004).
Directed graphs, one pebble, bound on \(n\) known
- Improve the \(O(N^2 n^6 \Delta_{out}^2)\) running time (Section 5 of Bender et al. 2002).
Directed graphs with labelled nodes
- Close \(\Omega(\phi^2m)\) versus \(O(\phi^8m)\) for online exploration of digraphs with deficiency \(\phi\).
Temporal graphs, schedule known
- Tight bounds when the underlying graph is a grid, has bounded degree or is planar Erlebach et al. 2021. For bounded degree and for planar underlying graphs the best bounds known are \(\Omega(n\log n)\) and \(O(n^{3/2}\sqrt{\log n})\) Bastide et al. 2025; the upper bound holds for grids too.
- For underlying maximum degree \(\Delta\), close the gap between \(\Omega(\Delta n(1+\log(n/\Delta)))\) Carnevale 2026 and \(O(\min\{n^2, n^{3/2}\sqrt{\Delta\log n}\})\) Bastide et al. 2025; for constant \(\Delta\) the bounds are \(\Omega(n\log n)\) and \(O(n^{3/2}\sqrt{\log n})\). The upper bound needs only that every snapshot has maximum degree at most \(\Delta\).
- When at most \(\mu\) edges are missing in each snapshot, remove the factor \(\mu\) between \(O(\mu n\log\mu)\) Lahtin & Zamaraev 2027 and \(\Omega(n\log\mu)\) (as reported by Lahtin & Zamaraev 2027).
\(T\)-interval-connected graphs, labelled nodes
- Close the gap on the window, \(\Omega(m)\) against \(O(\zeta m + n\log^2 n)\); it is at most a \(\log^2 n\) factor and remains when \(m = n^{1+o(1)}\) Sudo et al. 2026c.
- How much smaller can the window be, and how much faster the exploration, for a randomized agent Sudo et al. 2026c?
- Close the polylogarithmic gap on the time with 1-hop view, \(\Omega(m)\) against \(O(\zeta m + n\log^2 n)\), and determine exactly what the 1-hop view buys Sudo et al. 2026c.
What the community started looking at
Exploration began as maze search by finite automata. The first question was whether a machine with bounded memory can visit every node at all: Budach showed it cannot for mazes Budach 1978, Blum and Kozen showed that two pebbles or two automata are enough in mazes Blum & Kozen 1978, and Rollik showed that every finite team has a planar trap Rollik 1980.
From there the community turned to how much memory an agent needs as a function of the graph: \(\Theta(D\log\Delta)\) bits in general Fraigniaud et al. 2005a, \(O(\log n)\) once \(n\) is known Reingold 2008, and the effect of the termination requirement on trees Diks et al. 2004 Ambühl et al. 2011. Markers came next: what one pebble buys Fraigniaud et al. 2006c, and the exact exchange rate between pebbles and memory Disser et al. 2019. Time was a secondary measure throughout.
Derived problems
Treasure hunt: An agent that explores the graph finds any treasure, so every exploration algorithm solves treasure hunt; the question is how much cheaper it can be when the treasure is close, measured against its distance \(d\) (or a weight of the path to it) rather than the size of the graph.
Rendezvous: If the agents can break symmetry (for example by their labels), one may wait while the other explores, so exploration solves rendezvous; the work is in doing better than that, or in meeting when neither knows who should wait Pelc 2019.
Map construction: Building an isomorphic map implies having visited every node, so map construction is exploration with more output; it is used to solve rendezvous and leader election Das 2019.
Exploration by oblivious robots: The robots follow the Look–Compute–Move model of the plane, moved to graphs: they see the positions of all robots but remember nothing, so the configuration itself must encode the progress of the exploration.
Exploration of recolourable graphs: The same task for one agent (visit every node; with return, stop or perpetually), but every node holds a colour from a palette of \(c\) colours that the agent at the node reads and, unless the colours are fixed, overwrites; the agent itself may have no memory at all, and in the main model it has no port numbers and sees its neighbours' colours instead. With \(c = 1\) the colours carry nothing: an algorithm of the parent problem that uses no markers works here whenever this setting grants its ports, entry port and memory, and a lower bound of this problem proved for any number of colours holds for the parent setting with the same view. The parent's pebbles are movable markers carried by the agent Pattanayak & Pelc 2024a Disser et al. 2019; here the marks stay in the nodes and there is one per node.
Online exploration of weighted graphs: The same task for one agent (visit every node and return to the start node), in the tradition of online algorithms: nodes carry identifiers, edges carry weights, memory and computation are unbounded, and an algorithm is judged by its competitive ratio against a shortest tour rather than by its memory. Results do not transfer in either direction without care: the parent counts moves on anonymous unweighted graphs, this problem counts weight on labelled weighted graphs. The setting directed-labelled of the parent Deng & Papadimitriou 1999 is the analogue for unweighted directed graphs.
Collision-free exploration: Every agent explores the graph as in exploration, and no two agents may ever be at the same node. A single-agent exploration procedure is the building block: with vision of radius 2, two agents run any such procedure with a slowdown of at most a factor \(\log n\) Bhagat & Pelc 2025 (a constant factor is claimed by Papin 2026). Lower bounds for exploring by one agent hold here whenever every agent must visit every node.
Related problems
Deciding graph properties by mobile agents: A lone agent with constant memory and constant-size whiteboards explores by a depth-first search in port order Izumi et al. 2022; without memory it cannot explore every graph Cohen et al. 2008, which is why it cannot decide whether \(n\) is odd.
Perspectives
- Why compute by moving The atlas collects four models that grew out of four different wishes: software that travels through a network, swarms of robots that are as weak as possible, searchers that must find something at an unknown place, and matter that reshapes itself. They share an adversary, locality and symmetry; they differ in what they count.
- Finding your way A single agent in an anonymous graph: how much memory it needs, what a pebble, an advice string or knowledge of n buys, why stopping is harder than exploring, and how treasure hunt asks for exploration only as far as the target. Each line of papers, in its own words, on why the question matters.
- From exploration to dispersion, and beyond How collaborative exploration asks how much a team speeds up a search, how dispersion arose as the case k = n under weaker assumptions, what dispersion gives back to exploration, and why dispersing first has become the standard opening move for computing graph structures with agents.
- What forces the bounds Every lower bound in the atlas names the resource the adversary exploits. Read side by side, a few bottlenecks (distance, symmetry, missing information, an adversary that acts) explain most tight results, and the open entries cluster where no bottleneck beyond distance is known.
- The most consequential open problems Ten open questions ranked by how far a solution would propagate through the atlas, with the chain of problems each one feeds.
Further reading
Papers on this problem that are not yet placed in a setting.
- Bhagat & Pelc 2026 Exploring wedges of an oriented grid by an automaton with pebbles. Bhagat and Pelc: a deterministic finite automaton in the infinite anonymous oriented grid \(\mathbb Z \times \mathbb Z\) (ports N, E, S, W at every node) must visit every node of a given wedge, the grid nodes between two rays from a common origin, whose directions are built into the automaton. Each ray is a wall (the edges across it are blocked) or free, and the agent starts at a node of the wedge chosen by an adversary (at the origin for a wedge with two free rays). The minimum number of pebbles is 0, 1 and 2 for wedges of angle below \(\pi\) with two walls, one wall and no wall, and 1, 2 and 3 for angles of at least \(\pi\) (Theorems 2.1–2.5 and 3.1–3.5, Corollaries 2.1, 2.2, 3.1 and 3.2); a narrow walled wedge can be disconnected, and then the component of the start node is explored. The impossibilities for wedges with two free rays follow from bounds on teams of two and of three automata in the grid by Emek, Langner, Stolz, Uitto and Wattenhofer and by Brandt, Uitto and Wattenhofer, as cited there. This is perpetual exploration of one given infinite graph, which no setting of this problem covers. Read (arXiv v1, 2023).
- Adamson 2025a Exploring Temporal Graphs with Frequent and Regular Edges. Exploration with the schedule known when every edge of the underlying graph is present at least once in every \(F\) consecutive steps, no snapshot being required to be connected: one agent explores from any start node within \(F(2n-3)\) steps by following a spanning tree of minimum total waiting time (Theorem 3.5, Lemma 3.6), and a star in which all edges but one are present only every \(F\)-th step needs \(F(2n-5)+1\) steps (Theorem 3.10, Corollary 3.11); edges present periodically with period at most \(F\) are a special case (Corollary 3.8). Consequences for public-transport timetables (Theorem 4.1), for graphs in which each node opens one incoming edge per step in a fixed cyclic order (\(4m\) steps, Theorem 4.2) and for broadcast networks (Corollary 4.4, Theorem 4.6). Preprint; read.
- Adamson 2025b Exploring Word-Representable Temporal Graphs. Exploration with the schedule known, for temporal graphs given by a word over the nodes: the word is cut into factors without a repeated symbol, one per step, and an edge of the underlying graph (a pair of symbols that alternate in the word) is present in a step when one of its end nodes occurs in that factor. If every snapshot is connected, one agent explores within \(2n\cdot\min_v \deg(v)\) steps, the degree taken in the underlying graph (Theorem 4). If only the underlying graph is connected, with diameter \(D\) (their \(d\)), and the word has length at least \(n(2Dn+D)\), it explores within \(2Dn\) steps (Theorem 11), and for all \(n\) and \(D\) some such temporal graph needs \(\Omega(Dn)\) steps (Theorem 22). Preprint; read.
- Baguley et al. 2026 Temporal Exploration of Random Spanning Tree Models. Random temporal graphs in which every snapshot is a spanning tree drawn independently from a fixed distribution over a set of trees on the \(n\) nodes. With high probability an agent that knows the whole sequence explores within \(O(n^{3/2})\) steps (Theorem 1.1), which is tight for the uniform distribution over \(\lceil n/3\rceil\) stars (Theorem 5.4), and within \(54m\) steps when all trees are spanning trees of one graph with \(m\) edges (Theorem 1.2). Trees of maximum degree \(\Delta\) can force \(\Omega(\sqrt{\Delta}\,n)\) steps (Theorem 5.12, odd \(\Delta \ge 5\)), and \(O(\sqrt{\Delta}\,n)\) is conjectured (Conjecture 1.3). Bastide et al. 2025 prove \(O(\Delta n\log^3 n)\) in expectation and with probability \(1 - e^{-\log^3 n}\) (Theorem 1.6 and Corollary A.3), for any distribution over connected graphs with \(\Delta\) replaced by the average temporal maximum degree in expectation. An agent that sees only the current snapshot needs \(\Omega(n\log n)\) steps on some such model to succeed with probability \(1-n^{-\Omega(1)}\) (Proposition 4.4), and more than \(n^2/15\) steps with high probability on \(n/2\) uniform stars (Proposition 5.13). Read.
- Balev et al. 2025 The Shortest Temporal Exploration Problem. Shortest temporal exploration: in an always-connected temporal graph whose whole schedule is known, the agent minimises the number of edges it traverses rather than its arrival time. With lifetime at least \(12n^{3.5}+4n\) some exploration traverses \(O(n^{1.5})\) edges (Theorem 12), against the \(O(n^2)\) implied by the arrival-time bound; if every snapshot has diameter at most some parameter, fewer edges than that parameter times \(n\) suffice within that parameter times \(n^2\) steps (Theorem 13); on a temporal ring with lifetime at least \(2n-2\), \(\lfloor 3(n-1)/2\rfloor\) edges suffice and may be needed, whereas with lifetime exactly \(2n-3\) an exploration may need \(2n-3\) edges (Lemmas 16 to 18). The authors conjecture that every always-connected temporal graph has an exploration of \(\Theta(n^2)\) steps that traverses \(\Theta(n)\) edges. Preprint; read.
- Chalopin et al. 2015a Anonymous Graph Exploration with Binoculars. An agent with binoculars (it sees the graph within a constant distance) can explore an anonymous graph and stop in many graphs that are not trees: a characterisation of the graphs explorable this way by simple connectivity of a clique complex, with a universal algorithm that explores each of them and never stops elsewhere (Theorem 1). Read (arXiv v1).
- Doi et al. 2022 Search by a metamorphic robotic system in a finite 2D square Grid. A different model, a metamorphic robotic system: anonymous oblivious modules on the square grid that slide or rotate while staying connected search an unknown finite grid for a target. Three modules with a common compass are necessary and sufficient from any initial shape (Theorem 1); without a compass, five modules are necessary and sufficient from restricted initial shapes (Theorem 4). Read (arXiv v2).
- Gorain & Pelc 2018 Deterministic Graph Exploration with Advice. How much advice an agent needs to explore an anonymous graph in a given time, from an oracle that knows the whole instance or only the map. Abstract read.
- Pelc 2018b Explorable Families of Graphs. Which families of anonymous graphs can be explored deterministically without knowledge: a characterisation, and whether one universal algorithm explores every explorable family. Abstract read.
- Menc et al. 2015 Brief announcement: On the power of one bit in graph exploration without backtracking. An agent with \(M_a\) bits of memory and \(M_w\) bits per node that does not learn its entry port: one bit of agent memory changes what can be explored compared with the rotor-router, a \((0, \log d)\)-agent. A brief announcement; introduction read.
- Disser & Klimm 2022 The Space Complexity of Undirected Graph Exploration. A survey of space complexity: \(\Theta(\log n)\) bits are necessary and sufficient to explore all \(n\)-node graphs, and with sublogarithmic memory \(\Theta(\log\log n)\) agents are needed. Abstract read.
- Devismes et al. 2026a Graph Exploration: The Impact of a Distance Constraint. Distance-constrained exploration: the agent must always know a path of length at most \((1+\alpha)r\) back to its start, with \(r\) the eccentricity of the start; the penalty is the number of traversals beyond the edges. Abstract read.
- Caissy & Pelc 2016 Exploration of Faulty Hamiltonian Graphs. Exploration of the fault-free component when some edges are faulty: a perfectly competitive algorithm for rings, and depth-first search is within \(10/9\) of the best overhead on Hamiltonian graphs. Abstract read.
- Dobrev et al. 2024 Exploration of High-Dimensional Grids by Finite State Machines. Finding a treasure in the \(n\)-dimensional infinite grid by finite-state agents that start together: three randomised synchronous agents suffice for every \(n\), disproving a conjecture that \(n+1\) are needed. Abstract read.
- Stopkin 2025b Finite graph exploration by a mobile agent. A mobile agent that reads and changes marks on nodes and edges explores a finite undirected graph in \(O(n^3)\) time with \(O(n^2)\) space. Abstract read.
- Stopkin 2026 Finite Undirected Graphs Exploration by a Mobile Agent. A further marking algorithm for exploring finite undirected graphs by one agent. Abstract read.
- Li et al. 2021b Searching for Optimal Off-Line Exploration Paths in Grid Environments for a Robot with Limited Visibility. Computing optimal offline exploration paths in grid environments for a robot with limited visibility (AAAI 2012). Abstract read.
- Ilcinkas & Wade 2021 Exploration of Dynamic Cactuses with Sub-logarithmic Overhead. A single agent that knows the dynamics explores constantly connected dynamic graphs whose underlying graph is a cactus in \(O(n\log n/\log\log n)\) time units, with a near-matching lower bound. Abstract read.
- Ilcinkas & Wade 2020 Exploration of carrier-based time-varying networks: The power of waiting. Exploration of carrier-based time-varying networks (carriers on periodic routes) when the agent may wait at stations. Abstract read.
- Wade 2021 Exploration with return of highly dynamic networks. Exploration with return of constantly connected dynamic rings: \(3n-4\) time units are necessary and sufficient. Abstract read.
- Arrighi et al. 2023 Kernelizing Temporal Exploration Problems. Kernelization of non-strict temporal exploration of a given temporal graph. A preprint; abstract read.
- Bodlaender & van der Zanden 2018 On Exploring Temporal Graphs of Small Pathwidth. Temporal graph exploration is NP-complete even when the underlying graph has pathwidth 2 and every snapshot is connected. A preprint; abstract read.
- Bellitto et al. 2023 Restless Exploration of Periodic Temporal Graphs. Restless temporal exploration (the agent must move at every step) of periodic temporal graphs: polynomial for period 2, hard otherwise. Abstract read.
- Brandt et al. 2020c A Tight Lower Bound for Semi-Synchronous Collaborative Grid Exploration. Three semi-synchronous agents running one finite automaton (distinct initial states, sensing only agents in the same cell) cannot explore the infinite grid, answering a question of Emek et al. Abstract read.
- Baaziz & Pelc 2026b Exploration of convex terrains by a deterministic automaton with pebbles. A deterministic finite automaton in a convex open region of the plane: it sees the disc of radius 1 around it, moves less than 1 per step, and must eventually see every point, with movable pebbles to mark places. Convex regions are bounded ones, cups, belts, half-planes and the plane (Theorem 1). Bounded regions need no pebble (Theorem 2), cups and belts exactly two (Corollaries 1, 2), half-planes and the plane exactly three (Theorems 5, 6, Corollary 3; the lower bound uses the grid result of Brandt et al. 2020c); the agent knows the type of region but not the region or its start. Read in full.
- Reingold et al. 2006 Pseudorandom walks on regular digraphs and the RL vs. L problem. Reingold, Trevisan and Vadhan carry the log-space method of Reingold 2008 over to directed graphs in which every node has the same in-degree and out-degree \(D\) (biregular digraphs): a deterministic log-space algorithm finds a path between two given nodes. The algorithm yields a log-space constructible universal traversal sequence, a sequence of port numbers that leads a walk from any start node of any graph in the family through every node, for biregular digraphs whose labelling is consistent (at each node the incoming arcs carry distinct labels); every biregular digraph has such a labelling. They also give a log-space pseudorandom walk for these graphs, and show that extending it to every labelling of biregular digraphs would give RL = L. Read: abstract and introduction of the ECCC report TR05-022 (2005).
- Rivest & Schapire 1993 Inference of finite automata using homing sequences. Rivest and Schapire learn an unknown finite automaton, a directed graph whose arcs are labelled by actions and whose nodes show outputs, from its input/output behaviour alone, without a reset that returns it to a start state; their motivating example is a robot in an unfamiliar environment. The key tool is a homing sequence, a sequence of actions whose observed outputs determine the state reached. With a teacher who answers wrong conjectures by counterexamples, the algorithm outputs a correct description with any prescribed probability of success, in time polynomial in the size of the automaton, the length of the longest counterexample and the logarithm of the inverse failure probability. For permutation automata they give probabilistic algorithms that need no teacher. Bender & Slonim 1994 introduce a homing sequence for two agents and need no teacher. Read: abstract and first page (scanned journal version).
All settings
The assumption tree (18 settings, 5 branch points)
The root assumes nothing. Going down, each edge adds the assumptions on its chips (+blue); a grey chip names the branch that leaves that axis unassumed while a sibling assumes something. Solid nodes are catalogued variants with their status per measure (Time, Memory); dashed nodes are branch points with no catalogued variant, named after the axis on which their branches differ. Axis order: Graph dynamics › Edge direction › Node identifiers › Knowledge › Randomness › Markers › Preprocessing › Termination requirement › Topology.
-
No assumptions · 2 branches by graph dynamics
Nothing is assumed on any axis.
-
+static graphEdge direction · 4 branches
-
+undirectedKnowledge · 8 branches
-
nothing knownno markersadversarial ports+perpetualArbitrary graphs, perpetual exploration standard setting The classical memory question: how many bits must a finite-state agent have to visit every node of every graph of diameter \(D\) and degree \(\Delta\)?
-
nothing knownno markersadversarial ports+with stopExploration with stop, nothing known Without a bound on \(n\) and without a way to mark a node, an agent can never be sure it has seen everything.
-
nothing known+pebblesExploration with return and pebbles \(\Theta(\log\log n)\) pebbles are necessary and sufficient for a constant-memory agent, which then explores in polynomial time and returns to the start without knowing \(n\).
-
+knows a bound on \(n\)Randomness · 2 branches
-
deterministic+with stopExploration with stop when \(n\) is known Reingold's log-space universal exploration sequences give an \(O(\log n)\)-bit agent that explores and stops in polynomial time.
-
+private coins+with stopRandomized exploration when \(n\) is known A random walk covers any graph in expected \(2m(n-1)\) steps; with a step counter and a bound on \(n\) it stops after exploring with good probability.
-
-
nothing known+one pebble+with stopExploration with stop and one pebble One pebble makes stopping possible; the agent then needs \(\Omega(\log n)\) bits.
-
nothing knownno markersadversarial portswith return+treeTrees, exploration with return Returning to the start on a tree takes \(\Theta(\log n)\) bits.
-
nothing knownno markers+designer labels+with stopNode labels chosen by the designer With three-valued labels on the nodes, an agent with fewer than 25 states explores every graph and stops after at most \(20m\) edge traversals.
-
nothing knownno markers+designer ports+perpetualPort numbers chosen by the designer (periodic exploration) If the designer may set the port numbers, a constant-memory agent visits every node periodically with period between \(2n-2\) and \(3.5n-2\).
-
-
directedanonymous nodesnothing known+one pebble+with stopDirected graphs, one pebble An agent that cannot walk back along an arc needs \(\Omega(n\log\Delta_{out})\) bits, even with up to \(n\) pebbles; with one pebble, \(O(n\Delta_{out}\log n)\) bits suffice, in exponential time.
-
directedanonymous nodes+knows a bound on \(n\)+one pebble+with stopDirected graphs, one pebble, bound on \(n\) known With a bound \(N \ge n\), one pebble lets an agent map any strongly connected digraph in polynomial time.
-
directed+labelled nodes+with stopDirected graphs with labelled nodes draft An agent that recognises nodes but cannot backtrack must traverse every arc; the cost depends on the deficiency \(\phi\) of the digraph.
-
-
+connected every round+undirectedNode identifiers · 3 branches
-
anonymous nodesnothing known+perpetual+ringDynamic rings On a \(T\)-interval-connected ring whose edges may be missing for up to \(\delta\) steps, the worst-case exploration time is known exactly up to additive terms.
-
anonymous nodes+knows the map+perpetualTemporal graphs, schedule known If the whole schedule of an always-connected temporal graph is known, \(\Theta(n^2)\) steps are necessary and sufficient in the worst case.
-
+labelled nodes+with stop\(T\)-interval-connected graphs, labelled nodes On a \(T\)-interval-connected graph whose nodes carry identifiers, a deterministic agent can explore every graph with \(m\) edges only if \(T = \Omega(m)\); with a slightly larger window it explores and stops within \(\Theta(n^3)\) moves in the worst case, and within \(\Theta(n^2)\) if it also sees its neighbours' identifiers.
-
-
Assumptions specific to this problem
Knowledge
Knowing the size of the graph is the classical way to let an exploring walk end. Aleliunas, Karp, Lipton, Lovász and Rackoff proved that a random walk on a connected graph visits every node within \(2m(n-1)\) expected steps from any start (Theorem 4), so by Markov's inequality \(O(mn\log n)\subseteq O(n^3\log n)\) steps cover it with high probability, and a step counter and the value of \(n\) give a randomized explorer that stops Aleliunas et al. 1979; Reingold's log-space universal exploration sequences do the same deterministically when \(n\) is known Reingold 2008 (Corollary 5.5). Without a bound and without a marker an agent cannot tell a cycle from a longer one, so it can explore perpetually but never stop Fraigniaud et al. 2006c. Bender, Fernández, Ron, Sahai and Vadhan measured what the bound is worth in directed graphs: one pebble suffices when an upper bound on \(n\) is known, while without it \(\Theta(\log\log n)\) pebbles are necessary and sufficient, the lower bound holding even for randomized robots Bender et al. 2002. The top level, a full map, makes static exploration an offline planning task (a known undirected graph is explored by depth-first search in fewer than \(2n\) steps); it matters for temporal graphs, where exploration with the whole schedule known in advance was introduced by Michail and Spirakis, who are given the whole temporal graph as input and show that the fastest exploration cannot be approximated within \(cn\) for some constant \(c > 0\) unless P = NP (Theorem 1) Michail & Spirakis 2016, and studied by Erlebach, Hoffmann and Kammer Erlebach et al. 2021.
Formal definitions
- 0nothing known
- The agent knows nothing about \(G\): not \(n\), \(m\), \(\Delta\) or \(D\).
- 1knows a bound on \(n\)
- The agent is given an integer \(N\ge n\) (an upper bound on the number of nodes) as input.
- 2knows the map
- The agent is given a graph isomorphic to \(G\), with port numbers, and (where stated) its own position on it; for a dynamic graph, the whole sequence \((G_t)\).
Markers
Pebbles come from the tradition of automata in mazes. After Budach proved that no finite automaton explores every finite maze Budach 1978, Blum and Kozen showed that two pebbles suffice for a finite automaton in a maze, against Shah's conjecture that five were needed, and left open whether one pebble suffices Blum & Kozen 1978; Hoffmann showed that it does not (as cited by Disser et al. 2019). Cohen, Fraigniaud, Ilcinkas, Korman and Peleg describe this "Rabin's pebble model" as the ability of the robot to label nodes dynamically, at most one unit of label per pebble Cohen et al. 2008. Bender et al. carried the question to directed graphs and agents with unbounded memory, titling their paper "The power of a pebble": one pebble and a bound on \(n\) already give polynomial-time mapping Bender et al. 2002. In anonymous graphs a marker is what makes stopping possible at all, and by convention a robot asked to stop is given a pebble Fraigniaud et al. 2006c. The number of pebbles became a resource of its own when Disser, Hackfeld and Klimm showed that \(\Theta(\log\log n)\) pebbles are necessary and sufficient for a constant-memory agent on undirected graphs, and that an agent with \(O((\log n)^{1-\varepsilon})\) bits already needs \(\Omega(\log\log n)\) of them Disser et al. 2019; this is why one pebble and several pebbles are separate levels.
Formal definitions
- 0no markers
- The agent cannot mark nodes.
- 1one pebble
- The agent carries one pebble that it can drop at its current node and later pick up; it sees whether a pebble is at its node.
- 2pebbles
- The agent carries \(p\) pebbles (identical or distinguishable, as stated); \(p\) is a resource reported with the memory.
Preprocessing
This axis asks what a designer who prepares the graph before the agent arrives can do for it, a question that grew out of the impossibility results of Budach and Rollik for finite automata Budach 1978 Rollik 1980. Cohen, Fraigniaud, Ilcinkas, Korman and Peleg let the designer write short labels on the nodes and showed that three label values let a constant-memory robot explore every graph and stop; by Rollik's result two values are the minimum one could hope for Cohen et al. 2008. They place the model next to pebbles: it "can be considered stronger than Rabin's pebble model since labels are given in a preprocessing stage, but it can also be considered weaker since, once assigned to nodes, the labels cannot be modified", and they cite it as part of a line of work on short information supplied in advance, including the oracle-size measure of Fraigniaud, Ilcinkas and Pelc Cohen et al. 2008 Fraigniaud et al. 2006b. Choosing the port numbers is preprocessing that writes nothing on the nodes: Ilcinkas starts from Budach's result that no finite automaton explores all graphs when an adversary sets the local orientation, and asks for the shortest exploration period when the designer sets it, improving the period \(10n\) of Dobrev et al. to \(4n\) Ilcinkas 2008. The two forms of preprocessing are kept on the same level because neither is known to simulate the other.
Formal definitions
- 0adversarial ports
- Port numbers (and any node labels) are chosen by an adversary.
- 1designer ports
- Before the agent starts, the designer may choose the port numbering \(\mathrm{port}_v:\{\text{edges at }v\}\to\{1,\dots,\deg(v)\}\) at every node. Ilcinkas calls a designer's port numbering a local orientation Ilcinkas 2008.
- 1designer labels
- Before the agent starts, the designer may write a label of \(b\) bits (a constant) at every node, which the agent reads on arrival.
Termination requirement
The three termination requirements were separated in the memory-bounded exploration literature of the early 2000s. Fraigniaud, Ilcinkas, Peer, Pelc and Peleg list them explicitly, exploration with return, exploration with stop and perpetual exploration, and recall that Diks, Fraigniaud, Kranakis and Pelc showed for trees that exploration with stop needs \(\Omega(\log\log\log n)\) bits of memory Fraigniaud et al. 2005a Diks et al. 2004; the same paper shows that exploration with return needs \(\Omega(\log n)\) bits Diks et al. 2004 (as summarised in Disser et al. 2019 and Czyzowicz et al. 2012c), while perpetual exploration of bounded-degree trees is possible with \(O(1)\) bits Fraigniaud et al. 2006c. In arbitrary anonymous graphs the requirement also decides feasibility: a robot cannot recognise that it has closed a cycle, so without a marker or a bound on \(n\) it can explore perpetually but never stop Fraigniaud et al. 2006c. The axis orders the requirements from the hardest (return) to the weakest (perpetual); periodic exploration, which asks every node to be visited infinitely often within a bounded period, is a perpetual task measured by its period Ilcinkas 2008.
Formal definitions
- 0with return
- The agent visits every node and then halts at its start node \(s\).
- 1with stop
- The agent visits every node and then halts, at any node. Also called terminating exploration.
- 2perpetual
- Every node is visited at least once (and, for periodic exploration, infinitely often); the agent never needs to halt.
Know a better result, or found a mistake? Suggest a result · Report an error. Accepted contributions are acknowledged.