Mobility Matters
Home›Mobile agents on graphs›Exploration›Graph exploration by a single agent›Treasure hunt

Treasure hunt

One agent must find a static treasure at an unknown node; the cost should depend on how far the treasure is, not on the size of the graph.

Problem statement and measuresexpand

A single deterministic agent starts at a node \(s\) of an unknown connected graph whose edges carry ports (at each node, local numbers of the edges at that node); a treasure sits at an unknown node \(v^*\) at distance \(d\) from \(s\). The agent must reach \(v^*\) (it recognises the treasure when it arrives). Cost is the number of moves (edge traversals) until the treasure is found, measured against \(d\), against \(e(d)\) (the number of edges with an endpoint at distance less than \(d\) from \(s\)) or against a path weight defined per paper. Help counts any external help the agent receives: bits of advice from an oracle that knows the instance, or pebbles (objects left on nodes) placed by it. Unless a variant says otherwise the agent knows nothing about the graph, \(d\) or \(v^*\).

Measures: Cost, edge traversals until the treasure is reached; Help, bits of advice, or pebbles placed in advance by an oracle.

Anonymous finite graphs

standard settingverified
Cost: unknownHelp: unknown

If the treasure is present from the start, concatenating universal traversal sequences finds it in polynomial time; if it may appear later, explicit solutions need backtracking and take the length of a universal exploration sequence, polynomial with a huge exponent, times a polylogarithmic factor.

Assumed (added on the last edge are outlined)

+Graph dynamicsstatic graph+Edge directionundirected+Graph sizefinite

Not assumed

Node identifiersanonymous nodesExternal helpno helpTopologyarbitrary connected graph
Formal definitions of this setting
Graph dynamics: static graph
\(G_t=G\) for all \(t\): the edge set never changes.
Edge direction: undirected
\(G=(V,E)\) with \(E\subseteq\binom V2\); every edge can be traversed in both directions.
Graph size: finite graph
\(G\) has finitely many nodes.
Node identifiers: anonymous nodes
Nodes have no identifiers; an agent at \(v\) sees only \(\deg(v)\) and the port numbers \(1,\dots,\deg(v)\), which are assigned locally and independently at each endpoint of an edge.
External help: no help
No information beyond the agent's own observations.
Topology: any topology
\(G\) is any connected graph in the class allowed by the other axes.

What is known

Cost · edge traversals until the treasure is reached
unknown
No lower bound in terms of \(n\) is recorded. The best upper bound exceeds the length \(O(n^{\theta})\) of one ordinary universal exploration sequence by a factor \(\log n\,(\log\log n)^{1+\varepsilon}\) (preprint) Xin 2026.
lower boundnone known
introductory
\(O(n^{2\theta})\)
the treasure may appear after the agent startsbacktracking: the agent sees its entry port\(\Delta\)-regular graphs, \(\Delta \ge 3\) fixed
current best
\(O(n^{\theta}\log n\,(\log\log n)^{1+\varepsilon})\)
Xin 2026 preprint
the treasure may appear after the agent startsbacktracking: the agent sees its entry port\(\Delta\)-regular graphs, \(\Delta \ge 3\) fixed
Help · bits of advice, or pebbles placed in advance by an oracle
unknown
Memory is not studied in these papers.
lower boundnone known
introductory—
current best—

Results, in order of publication

Cost \(O(n^{2\theta})\)
the treasure may appear after the agent startsbacktracking: the agent sees its entry port\(\Delta\)-regular graphs, \(\Delta \ge 3\) fixed

Theorem 3.2: an infinite strongly universal exploration sequence with cover time \(O(n^{2\theta})\), \(\theta\) the exponent of Reingold's universal exploration sequences; explicit when those are. Proved for \(\Delta\)-regular graphs; arbitrary degrees are reduced to them by adding self-loops up to degree \(n\) (Section 1.5), which needs sequences for \(n\)-regular graphs.

Cost \(O(n^{\theta(1+1/a)})\)
the treasure may appear after the agent startsbacktracking: the agent sees its entry port\(\Delta\)-regular graphs, \(\Delta \ge 3\) fixed

For any fixed integer \(a \gg 1\); with backtracking (the agent sees the entry port). Proved for \(\Delta\)-regular graphs (Theorem 4); arbitrary degrees by a remark. The best peer-reviewed bound; recovered as Corollary 7.1 of Xin 2026.

Xin 2026 preprint current best
Cost \(O(n^{\theta}\log n\,(\log\log n)^{1+\varepsilon})\)
the treasure may appear after the agent startsbacktracking: the agent sees its entry port\(\Delta\)-regular graphs, \(\Delta \ge 3\) fixed

Preprint. Theorem 1.1 and Corollary 8.1: one explicit infinite strongly universal exploration sequence, for every fixed \(\varepsilon > 0\); the agent knows neither \(n\) nor when the treasure appears. Theorem 6.1 gives the same with any fixed number of iterated logarithms, and the simpler periods of Section 6.1 give \(O(n^{\theta}\log^2 n)\). Arbitrary degrees (Proposition 8.2): the agent simulates the sequence on the cubic multigraph with \(2m\) nodes that replaces each node by a cycle of \(\deg(v)\) nodes, one move or stay per step, and finds the treasure within \(O(m^{\theta_3}\log m\,(\log\log m)^{1+\varepsilon})\) steps, \(\theta_3\) the exponent of universal exploration sequences for cubic multigraphs; \(O(n^{2\theta_3}\log n\,(\log\log n)^{1+\varepsilon})\) on simple graphs.

Open questions

  1. Treasure hunt when the treasure may appear after the agent starts and the agent does not see its entry port: "We do not know if an efficient solution is possible when backtracking is not allowed" Ta-Shma & Zwick 2014.

  2. Do strongly universal traversal sequences exist? They exist if and only if treasure hunt has a solution independent of the start time Ta-Shma & Zwick 2014.

  3. Is there a strongly universal exploration sequence with cover time \(O(n^{\theta})\), or \(O(n^{\theta}\log n)\), for fixed-degree graphs? Xin 2026 (preprint) reaches \(O(n^{\theta}\log n\,(\log\log n)^{1+\varepsilon})\) and shows that its recurrence cannot keep linear length with periods \(\Theta(2^j j)\) (Corollary 10.2), which is "not a lower bound for arbitrary SUESs".

Notes

For a treasure present when the agent starts, Ta-Shma and Zwick note that following \(U_1U_2U_4\dots\), universal traversal sequences of doubling length, solves the problem in polynomial time Ta-Shma & Zwick 2014. The bounds above are for the harder case. All three are proved for \(\Delta\)-regular graphs with fixed \(\Delta \ge 3\), where \(\theta\) is defined; Ta-Shma and Zwick reach arbitrary degrees by self-loops up to degree \(n\) Ta-Shma & Zwick 2014, and Xin by a cubic simulation whose bound is in \(m\) Xin 2026, so the three exponents compare directly only on regular graphs. Ta-Shma and Zwick build the strongly universal exploration sequence by inserting, after the \(i\)-th symbol of an ordinary one, a forward and a backward copy of a much shorter prefix whose length is about the square root of the 2-adic part of \(i\); walking a sequence and then its reverse returns the agent to where it was, so every window of length \(O(n^{2\theta})\) contains a full universal sequence for \(n\) nodes Ta-Shma & Zwick 2014. Xin first shrank the inserted prefixes to a \(1/a\) power Xin 2007, and later chose them by periods \(q_j \approx 2^j j(\log j)^{1+\varepsilon}\) with \(\sum_j 2^j/q_j\) finite, which keeps the whole sequence within a constant factor of the ordinary one and gives windows of length \(O(n^{\theta}\log n\,(\log\log n)^{1+\varepsilon})\) (preprint) Xin 2026. In that preprint the agent computes the \(t\)-th instruction with \(O(\log(t+2))\) bits of memory, so its memory grows with the time since it started, not with the graph Xin 2026. Checked against the full texts (Xin 2026: arXiv v1).

What carries over from neighbouring settings

Read off the order of assumptions, not checked case by case: results may carry extra assumptions (shown on their pages), and asynchronous time is measured in epochs.

Algorithms from weaker settings work here

Lower bounds from stronger settings hold here

Treasure hunt with advice
Help \(\Omega(d\log(m/C))\)
Treasure hunt guided by pebbles
Cost \(\Omega(d\log\Delta)\)

Branches from here

Know a better result for this setting, or found a mistake? Suggest a result · Report an error. Accepted contributions are acknowledged.