betaFeedback

WorksComputer Science

Hiding a Vertex from the Temporal Explorer: A Lower Bound for Degree-Bounded Temporal Graphs

Abstract

A temporal graph is a sequence of graphs on a common set of nn vertices, its snapshots, one for each time step. An agent, knowing the entire sequence in advance, may at each time step wait or move along an edge of the current snapshot, and the temporal graph is explored once the agent has visited every vertex. We consider always-connected temporal graphs, in which every snapshot is connected, and ask how long exploration can be forced to take when the underlying graph, the union of all snapshots, has maximum degree at most~ΔΔ. Two lower bounds were known in this setting, Ω(Δn)Ω(Δn) and Ω(nlog⁡n)Ω(n\log n), realised by different constructions. We establish a stronger lower bound, answering a question of Bastide, Groenland, Michel and Rambaud. Specifically, for every nn and ΔΔ with Δ0≤Δ≤n−1Δ_0\leΔ\le n-1 we construct an always-connected temporal graph on nn vertices with underlying maximum degree at most~ΔΔ that cannot be explored in fewer than γ Δn (1+log⁡(n/Δ))γ\,Δn\,(1+\log(n/Δ)) time steps from any start vertex, where γ>0γ>0 and Δ0Δ_0 are absolute constants. The construction is deterministic, and every snapshot is a spanning tree with exactly one vertex of degree greater than three. Time is divided into phases. In each phase, a rotating-cycle gadget prevents the agent from reaching more than half of the trees attached to it. Between phases, we reassign target vertices among these trees using walks on a constant-degree expander, and a Gray code order of the targets keeps the underlying degree bounded. The reassignment guarantees that, for any walk of the agent, some target remains unvisited throughout all phases.

Introduction

Temporal graphs model networks whose topology changes over time. A temporal graph is a sequence G1,G2,…G_1, G_2, \ldots of graphs on a common set VV of nn vertices; the graph GtG_t, the snapshot at time tt, describes the connections available at time step tt. At each time step a temporal walk either waits at its current vertex or moves along one edge of the current snapshot, so it can use an edge only at a time when that edge is present. The temporal exploration problem asks for a temporal walk that starts at a given vertex and visits every vertex of the graph as early as possible; we study the offline version, in which the whole sequence of graphs is known in advance.

The problem was introduced by Michail and Spirakis [25], whose temporal graphs may be directed and have a finite lifetime; they proved that deciding whether a temporal graph can be explored within its lifetime is NP-complete, and that, even when every snapshot is strongly connected, the exploration time cannot be approximated within a factor 2−ε2 - \varepsilon for any ε>0\varepsilon> 0 unless P = NP. Much of the later work, starting with Erlebach, Hoffmann and Kammer [13], concerns undirected always-connected temporal graphs, in which every GtG_t is connected; for these they showed that approximating the exploration time within O(n1−ε)O(n^{1-\varepsilon}) is NP-hard for every ε>0\varepsilon> 0.

Under this restriction an exploration always exists: since every snapshot is connected, the set of vertices the agent can have reached is either already all of VV or has an edge of the current snapshot leaving it, and therefore grows by at least one vertex per time step. The agent can thus reach any prescribed vertex within n−1n-1 steps, and visiting the nn vertices one after the other takes O(n2)O(n^2) steps [25]. A rotating star shows that this bound is tight in general [13]. Half of the vertices take turns as the centre in cyclic order, and each snapshot is the star centred at the current one. After visiting a vertex outside this rotating set, the agent can leave it only by moving to the current centre. By the time it arrives, however, the centre has advanced to the next vertex. Chasing the centre repeats the same problem: the agent always arrives one step too late. It must therefore wait almost a full rotation for the vertex it occupies to become the centre before it can visit another vertex outside the rotating set. Visits to distinct vertices in this second set thus require Ω(n)\Omega(n) steps each, giving an exploration time of Ω(n2)\Omega(n^2).

Since the quadratic bound is attained by very dense temporal graphs, later work asked how much faster exploration becomes under structural restrictions on the underlying graph, such as bounded treewidth or planarity [13, 1, 9, 2]. The line we follow bounds degrees, and here two parameters are natural. One may bound the maximum degree of every snapshot GtG_t, or that of the underlying graph, the union of all snapshots; the second is the stronger condition, since it bounds how many different neighbours a vertex has over time. For a bound Δs\Delta_s on the degree of every snapshot, Erlebach and Spooner [15] proved an upper bound of O(Δslog⁡Δs⋅n2/log⁡n)O(\Delta_s \log\Delta_s \cdot n^2/\log n), which Erlebach, Kammer, Luo, Sajenko and Spooner [14] improved to O(n7/4)O(n^{7/4}) for constant Δs\Delta_s. Bastide, Groenland, Michel and Rambaud [9] subsequently obtained a stronger upper bound in terms of the average temporal maximum degree.

Two lower bounds were known for bounded underlying degree. The first comes from the rotating star itself: chaining n/Δn/\Delta copies of it, each on Θ(Δ)\Theta(\Delta) vertices and sharing a leaf with the next, brings the underlying degree down to Δ\Delta, while inside a copy each vertex of the other half still costs Ω(Δ)\Omega(\Delta) steps, so the whole chain takes Ω(Δn)\Omega(\Delta n) steps [13]. The second does not rely on high degrees at all: on a planar underlying graph of maximum degree four whose snapshots are paths [13], and even of maximum degree three [1], exploration can be forced to take Ω(nlog⁡n)\Omega(n\log n) steps. Together they give Ω(nmax⁡{Δ,log⁡n})\Omega(n\max\{\Delta,\log n\}), but the two delays are realised by different families of temporal graphs, and Bastide et al. [9] remark that the two constructions seem difficult to combine. Indeed, the degree delay of the rotating star needs a vertex of large degree that moves, and the logarithmic delay, as we obtain it, needs the vertices still to be visited to be rearranged between phases. A vertex whose place changes can meet new neighbours each time, and when Δ\Delta is small compared with the number of phases this is more than the underlying degree allows. We show that the rearrangement can be organised so that the underlying degree stays within Δ\Delta, and that a single temporal graph then forces both delays at once.

Theorem 1.1. There are absolute constants γ>0\gamma> 0 and Δ0\Delta_0 with the following property. For all integers nn and Δ\Delta with Δ0≤Δ≤n−1\Delta_0 \le\Delta\le n-1 there is an always-connected temporal graph G\mathcal{G} on nn vertices whose underlying graph has maximum degree at most Δ\Delta and such that every exploration of G\mathcal{G}, from every start vertex, uses at least γΔn(1+log⁡(n/Δ))\gamma\Delta n(1+\log(n/\Delta)) time steps. Every snapshot of G\mathcal{G} is a spanning tree with a single vertex of degree larger than three. The temporal graph is constant from some time step O(Δn(1+log⁡(n/Δ)))O(\Delta n(1+\log(n/\Delta))) on, and it can be constructed deterministically in time polynomial in nn.

Against the previous lower bound, for Δ≤n1−ε\Delta\le n^{1-\varepsilon} the maximum in Ω(nmax⁡{Δ,log⁡n})\Omega(n\max\{\Delta,\log n\}) becomes a product. In general the gain is a factor Θ(min⁡{Δ,1+log⁡(n/Δ)})\Theta(\min\{\Delta,1+\log(n/\Delta)\}). It is Θ(Δ)\Theta(\Delta) for Δ≤log⁡n\Delta\le\log n, so there is none for constant Δ\Delta, and Θ(log⁡n)\Theta(\log n) for log⁡n≤Δ≤n1−ε\log n \le\Delta\le n^{1-\varepsilon}. Closer to nn it degrades, as it must, since n2n^2 steps always suffice: it is only Θ(log⁡log⁡n)\Theta(\log\log n) at Δ=n/log⁡n\Delta=n/\log n, and constant for Δ=Θ(n)\Delta=\Theta(n).

Since Δs≤Δ\Delta_s \le\Delta, Theorem 1.1 is a lower bound for the bounded snapshot degree setting as well. On the upper bound side, Bastide et al. [9] showed that every always-connected temporal graph can be explored in O(n3/2Δ‾log⁡n)O(n^{3/2}\sqrt{\overline{\Delta}}\log n) steps, where Δ‾\overline{\Delta} is its average temporal maximum degree, the average over the vertices vv of the largest degree of vv over all time steps. As Δ‾≤Δs\overline{\Delta} \le\Delta_s (§ 2), their bound is O(n3/2Δslog⁡n)O(n^{3/2}\sqrt{\Delta_s}\log n) for snapshot degree at most Δs\Delta_s and O(n3/2Δlog⁡n)O(n^{3/2}\sqrt{\Delta}\log n) for underlying degree at most Δ\Delta. The best known upper bound for our class is therefore O(min⁡{n2,n3/2Δlog⁡n})O(\min\{n^2,n^{3/2}\sqrt{\Delta}\log n\}). This leaves a polynomial gap whenever Δ\Delta is polynomially smaller than nn. For example, for any fixed 0<ε<10 < \varepsilon< 1, setting Δ=n1−ε\Delta= n^{1-\varepsilon} gives a lower bound of Ω(n2−εlog⁡n)\Omega(n^{2-\varepsilon}\log n) and an upper bound of O(n2−ε/2log⁡n)O(n^{2-\varepsilon/2}\sqrt{\log n}).

The difficulty of combining the two known lower bounds is what led Bastide et al. to Problem 3.1 of [9], which asks whether there is a function f=ω(1)f = \omega(1) such that for all integers n,D≥1n, D \ge1 there is a temporal graph on nn vertices with average temporal maximum degree at most DD whose shortest exploration has length at least f(D)nlog⁡nf(D)n\log n. Since the average temporal maximum degree of an always-connected temporal graph on nn vertices lies between 2−2/n2 - 2/n and n−1n - 1, we consider DD in this range. They note that one way to obtain such a construction would be through snapshots of maximum degree at most DD. Theorem 1.1 answers the question positively in this way, and even with bounded underlying degree, the most restrictive of the three degree settings. Moreover, in every snapshot all vertices but one have degree at most three, and the factor Δ\Delta in the bound comes from the remaining vertex, whose degree is Θ(Δ)\Theta(\Delta) (§ 7).

Corollary 1.2. Let Δ0≤Δ≤n−1\Delta_0 \le\Delta\le n - 1. The temporal graph constructed for Theorem 1.1 has average temporal maximum degree Δ‾=Θ(Δ)\overline{\Delta} = \Theta(\Delta), and its exploration time from every start vertex is at least (γ/2)(Δ/log⁡Δ)nlog⁡n(\gamma/2)(\Delta/\log\Delta)n\log n, which improves to (γ/2)Δnlog⁡n(\gamma/2)\Delta n\log n when Δ≤n\Delta\le\sqrt{n}.

The corollary, which we prove in § 6 once the parameters are fixed, shows that one can take f(x)=γx/(2log⁡x)f(x) = \gamma x/(2\log x) for x≥Δ0x \ge\Delta_0 in Problem 3.1: for Δ0≤D≤n−1\Delta_0 \le D \le n - 1, the temporal graph constructed for Δ=D\Delta= D has average temporal maximum degree at most DD, and every exploration of it takes at least f(D)nlog⁡nf(D)n\log n steps. The order of ff is best possible up to a constant factor: when n=D+1n = D + 1, the lower bound f(D)nlog⁡nf(D)n\log n cannot exceed the universal O(n2)O(n^2) upper bound, which gives f(D)=O(D/log⁡D)f(D) = O(D/\log D).

The construction in outline

The temporal graph has three ingredients: a cycle, a set of branches hanging from one vertex of the cycle, and a schedule that reassigns vertices among the branches from one phase to the next. Figure 1 shows two consecutive snapshots; the precise definitions are in § 3.

Two consecutive snapshots of the construction within one phase

Figure 1. Two consecutive snapshots of the construction within one phase, at time tt (top) and t+1t+1 (bottom), with the first and the last of the bb branches drawn (notation as in Section 3). The cycle is present except for the edge trailing the hub. Every branch is attached to the hub through the gate of the hub’s class, gj,u(t)g_{j,u(t)} at time tt; the gates before the attachment point form a dead end, and the last gate is joined to the fixed target ρj\rho_j, the first vertex of the current target path. From one step to the next the hub and the missing edge advance by one position, clockwise in the picture, so the missing edge becomes the one between hth_t and ht+1h_{t+1}, and every branch is attached at gj,u(t+1)g_{j,u(t+1)} instead, here the next gate along the gate path. Nothing else changes, since the targets are reassigned only between phases.

The shape of a snapshot. There is a cycle on k=Θ(n)k = \Theta(n) vertices. At every time step all edges of the cycle are present except one, the missing edge, so what remains of the cycle is a path, and one of its two endpoints is called the hub. There are b=Θ(Δ)b = \Theta(\Delta) branches. Each branch is a path that runs through p=Θ(n/Δ)p = \Theta(n/\Delta) gates and then through q=Θ(n/Δ)q = \Theta(n/\Delta) targets, and the hub is joined to one of its gates; no other vertex of a branch is adjacent to anything outside its branch. Every snapshot is therefore a spanning tree made of the cycle path and the bb branches, each joined to the hub by a single edge, and the hub, of degree b+1b + 1, is its only vertex of degree larger than three.

The cycle as a clock. From one time step to the next, the missing edge advances by one position along the cycle, and the hub, which is the endpoint of that edge in the direction of motion, advances with it. This is the mechanism of the rotating star [13], transferred to a cycle. Suppose the agent is inside some branch and wants to reach another branch. The only way out is through the hub, so at some step it moves from its branch onto the hub. At the next step, however, the missing edge has moved: it is now exactly the edge between the vertex where the agent stands and the new hub. The agent is at one end of the cycle path and the hub at the other, k−1k - 1 edges apart. The hub keeps advancing, which shortens the path between them by one edge per step, and the agent can walk towards it, which shortens the path by one more edge. Hence the two meet only after about k/2k/2 steps, and until then the agent cannot enter any branch. Theorem 4.1 makes this precise. Every visit to a new branch therefore costs Ω(k)\Omega(k) time steps, so during a phase of L=bk/8=Θ(Δn)L=bk/8=\Theta(\Delta n) steps the agent visits fewer than half of the bb branches.

Reassigning the targets. Time is divided into phases of LL steps, and within a phase the snapshots differ only by the rotation, which moves the missing edge, the hub and the bb edges that join the hub to the branches; the targets stay in their branches. At the beginning of each phase they are reassigned among the branches according to a fixed schedule, every branch receiving qq targets. In every phase the rotation leaves more than half of the branches unvisited, and with them more than half of the targets. A reassignment can also put the agent in a new branch without a move, when the target it stands on is reassigned, but this gains it at most one branch per phase, and Theorem 4.3 allows for it. The schedule is designed so that, whichever branches the agent leaves unvisited in each phase, as long as they are more than half, some target stays unvisited through all τ\tau phases, so no exploration can finish within τL\tau L steps. It is built from walks on a constant-degree expander on the branches, one walk per target, as Section 5 explains. There are bcτ−1bc^{\tau-1} targets for a constant cc, one for each first branch and each choice of the τ−1\tau-1 steps, and since the graph has room for Θ(n)\Theta(n) targets, this allows τ=Θ(1+log⁡(n/Δ))\tau=\Theta(1+\log(n/\Delta)) phases and gives the bound Ω(Δn(1+log⁡(n/Δ)))\Omega(\Delta n(1+\log(n/\Delta))).

Bounded underlying degree. Two devices serve only the bound on the underlying degree, the gates and the order of the targets; for a bound on the degree of each GtG_t alone, the targets could hang directly from the hub (§ 7). The gates are needed because the hub moves over all kk cycle vertices, so a vertex joined directly to it would acquire kk neighbours over time. The cycle vertices are therefore divided into Θ(n/Δ)\Theta(n/\Delta) classes of Θ(Δ)\Theta(\Delta) vertices each, by the residue of their index, and each branch carries one gate per class, the hub being joined to the gate of its own class; a gate is thus joined, over time, only to the Θ(Δ)\Theta(\Delta) cycle vertices of its class. The order of the targets matters for a similar reason: with an arbitrary order, a target could get new neighbours on its target path in every phase, up to 2τ2\tau in all, which is more than Δ\Delta when Δ\Delta is small compared with the number of phases. We order the targets by a Gray code on the step sequences of the expander walks, and then the target paths of all phases lie in one fixed graph of maximum degree at most four. The same ordering might help in other constructions in which paths change from phase to phase but must stay inside a graph of bounded degree. Neither device helps the agent, since it still has to pass through the hub to get from one branch to another.

Related work

Temporal graphs appear in the literature under several names, among them time-varying graphs, evolving graphs and dynamic networks; the surveys [12, 19, 24] give an overview.

A line of work complementary to degree bounds studies exploration under structural restrictions on the underlying graph. Erlebach et al. [13] gave the first subquadratic bounds, O(n3/2w3/2log⁡n)O(n^{3/2}w^{3/2}\log n) for treewidth ww, O(n9/5log⁡n)O(n^{9/5}\log n) for planar graphs and O(nlog⁡3n)O(n\log^{3}n) for 2×n2 \times n grids, and Adamson, Gusev, Malyshev and Zamaraev [1] improved the first two to O(wn3/2log⁡n)O(wn^{3/2}\log n) and O(n7/4log⁡n)O(n^{7/4}\log n). Both were improved further, to O(n3/2wlog⁡n)O(n^{3/2}\sqrt{w}\log n) and O(n3/2log⁡n)O(n^{3/2}\sqrt{\log n}), by the general bound of Bastide et al. [9]. For bounded ww, Adamson and Spirakis [2] recently obtained O(n4/3w11/2log⁡5/2n)O(n^{4/3}w^{11/2}\log^{5/2}n).

Exploration is faster when the temporal graph is random. Erlebach et al. [13] showed that if every edge of an mm-edge graph is present in every time step independently, with probabilities that sum to at least a constant across every cut, an exploration of O(mlog⁡n)O(m\log n) steps exists with high probability. Baguley et al. [7] study random spanning tree models, in which every GtG_t is a spanning tree drawn independently from a fixed distribution; with high probability such a model can be explored in O(n3/2)O(n^{3/2}) steps, which is tight for a suitable distribution on stars, and in O(m)O(m) steps when all its trees are spanning trees of one fixed graph with mm edges. They conjecture that O(Δsn)O(\sqrt{\Delta_s}n) steps suffice with high probability when all trees have maximum degree Δs\Delta_s. For adversarial spanning trees the dependence on the degree is at least linear instead: the chained rotating stars of [13] have snapshots of maximum degree Θ(Δ)\Theta(\Delta) and force Ω(Δn)\Omega(\Delta n) steps, and those of Theorem 1.1 force Ω(Δn(1+log⁡(n/Δ)))\Omega(\Delta n(1+\log(n/\Delta))).

Exploration is also faster when few edges are missing: Lahtin and Zamaraev [22] showed that always-connected temporal graphs whose snapshots miss at most κ\kappa edges of the underlying graph can be explored in O(κnlog⁡κ)O(\kappa n\log\kappa) steps for κ≥2\kappa\ge2, improving the O(κnlog⁡n)O(\kappa n\log n) bound of Erlebach and Spooner [17], whereas our snapshots miss Θ(Δn)\Theta(\Delta n) underlying edges. Several variants change what the agent may do: it may make two moves per time step [14] or traverse any number of edges of a snapshot in one step [16], it may have to move at every step [10, 6], or, on a temporal star, return to the centre after visiting all leaves [3]. Others change the objective, minimising the number of traversed edges [8] or asking for every edge to be traversed [11], and the parameterised complexity of exploration has also been studied [18, 5].

Organisation

Section 2 fixes the model. Section 3 presents the construction: it chooses the parameters, describes the snapshots and states their basic properties, taking the assignment of targets to branches as a black box. Section 4 analyses the rotating cycle, and Section 5 builds the assignment. Section 6 sets the admissible range of Δ\Delta, states the estimates on the parameters and proves Theorems 1.1 and 1.2. § 7 collects limits and variants of the construction, and § 8 discusses open questions. Table 1, after the references, collects the notation.

symbolmeaningdefined in
n=∣V∣n = \lvert V\rvertnumber of vertices§ 2
G=(Gt)t≥1\mathcal{G} = (G_t)_{t \ge1}temporal graph, GtG_t its snapshot at time tt§ 2
U(G)U(\mathcal{G})underlying graph, the union of all snapshots§ 2
W=(v1,v2,…)W = (v_1, v_2, \ldots)temporal walk, vtv_t the position at the start of step tt§ 2
texp⁡(G,v∗)\operatorname{texp}(\mathcal{G}, v^*)exploration time from v∗v^*§ 2
dmax⁡(v)d_{\max}(v)largest degree of vv over all time steps§ 2
Δ,Δs,Δ‾\Delta, \Delta_s, \overline{\Delta}underlying, snapshot, average temporal maximum degree§ 2
d=82d = 82expander degree§ 3
c=d+1c = d + 1number of permutations§ 3
b=Δ/64b = \Delta/64number of branches(1)
τ\taunumber of phases(1)
q=cτ−1q = c^{\tau-1}number of targets per branch(1)
p=⌈2n/Δ⌉p = \lceil2n/\Delta\rceilnumber of classes, and of gates per branch(2)
k=n−bp−bqk = n - bp - bqnumber of cycle vertices(2)
L=bk/8L = bk/8number of time steps per phase(2)
γ,Δ0\gamma, \Delta_0absolute constants of Theorem 1.1§ 6
admissible Δ\Deltapower of two with Δ0≤Δ≤n−1\Delta_0 \le\Delta\le n - 1§ 6
Δ′\Delta'largest power of two at most Δ\Delta§ 6
r1,…,rkr_1, \ldots, r_kcycle vertices, with indices read modulo kk§ 3.2
SuS_uclass of index uu§ 3.2
gj,1,…,gj,pg_{j,1}, \ldots, g_{j,p}gates of branch jj; gj,ug_{j,u} serves SuS_u§ 3.2
XXset of the bqbq targets§ 3.2
Xi,jX_{i,j}targets of branch jj in phase iiTheorem 3.1
AiA_ibranches not visited in phase ii, at least b/2b/2 of themTheorem 3.2
Pi,j,ρjP_{i,j}, \rho_jtarget path of branch jj in phase ii, and its first vertex§ 3.3
skeletonunion of all the paths Pi,jP_{i,j}§ 3.3
ht=rth_t = r_t, u(t)u(t)hub at time tt, and the index of its class§ 3.4
QtQ_tcycle path at time tt, read from the hub outwards§ 3.4
branch jj in phase iivertex set {gj,1,…,gj,p}∪Xi,j\{g_{j,1}, \ldots, g_{j,p}\} \cup X_{i,j}§ 3.4
visits branch jjin phase ii: some vtv_t with (i−1)L<t≤iL+1(i - 1)L < t \le iL + 1 lies in it§ 4
HHdd-regular expander on the set [b][b] of branchesTheorem 5.1
π0,…,πd\pi_0, \ldots, \pi_dπ0\pi_0 the identity, π1(x),…,πd(x)\pi_1(x), \ldots, \pi_d(x) the neighbours of xx§ 5.1
b0b_0threshold on bb in the expander constructionTheorem 5.1
w,Cw,xw,aw, C_w, x_{w,a}word, its column, and the column’s target in row aa§ 5.2
λi(w,a)\lambda_i(w,a)label of xw,ax_{w,a} in phase ii, that is, its branch(3)
N[Y]N[Y]YY together with its neighbours in HHTheorem 5.2
w(1),…,w(q)w^{(1)}, \ldots, w^{(q)}words in Gray code order§ 5.3
MiM_imatching between two consecutive columns in phase ii§ 5.3
G∗\mathcal{G}^*G\mathcal{G} with its τ\tau phases repeated for ever§ 7
sweepwalk through a whole branch and back to the cycleTheorem 7.1

Table 1. Notation.

Preliminaries

All graphs are finite and undirected, and simple unless stated otherwise. For a positive integer ℓ\ell we write [ℓ]={1,…,ℓ}[\ell] = \{1,\ldots,\ell\}.

A temporal graph is a sequence G=(Gt)t≥1\mathcal{G} = (G_t)_{t\ge1} of graphs Gt=(V,Et)G_t = (V,E_t) on a common finite vertex set VV, and we write n=∣V∣n = |V|. We call GtG_t the snapshot at time step tt. The temporal graph is always-connected if every GtG_t is connected. The underlying graph of G\mathcal{G} is U(G)=(V,⋃t≥1Et)U(\mathcal{G}) = (V,\bigcup_{t\ge1} E_t).

A temporal walk of ℓ\ell time steps is a sequence W=(v1,…,vℓ+1)W = (v_1,\ldots,v_{\ell+1}) of vertices such that, for every t∈[ℓ]t \in[\ell], either vt+1=vtv_{t+1} = v_t or vtvt+1∈Etv_tv_{t+1} \in E_t. We think of vtv_t as the position of the agent at the start of time step tt; during step tt the agent either waits or moves along an edge of GtG_t, and vt+1v_{t+1} is its position at the start of step t+1t+1. The walk visits the vertices v1,…,vℓ+1v_1,\ldots,v_{\ell+1}. An exploration from v∗v^* is a temporal walk with v1=v∗v_1 = v^* that visits every vertex of VV, and the exploration time texp⁡(G,v∗)\operatorname{texp}(\mathcal{G},v^*) is the smallest number of time steps of such a walk. If G\mathcal{G} is always-connected, every vertex is reachable from every position within n−1n-1 steps, so texp⁡(G,v∗)≤(n−1)2\operatorname{texp}(\mathcal{G},v^*) \le(n-1)^2 [25].

We use three degree parameters. For a vertex vv let dmax⁡(v)=max⁡t≥1deg⁡Gt(v)d_{\max}(v) = \max_{t\ge1}\deg_{G_t}(v) be its largest degree over all time steps. We write Δ\Delta for the maximum degree of the underlying graph U(G)U(\mathcal{G}), Δs=max⁡v∈Vdmax⁡(v)\Delta_s = \max_{v\in V} d_{\max}(v) for the largest degree of a single snapshot, and Δ‾=1n∑v∈Vdmax⁡(v)\overline{\Delta} = \frac{1}{n}\sum_{v\in V} d_{\max}(v) for the average temporal maximum degree, the parameter introduced in [9]. Since EtE_t is a subset of the edge set of the underlying graph, deg⁡Gt(v)≤dmax⁡(v)≤deg⁡U(G)(v)\deg_{G_t}(v) \le d_{\max}(v) \le\deg_{U(\mathcal{G})}(v) for all vv and tt, whence Δ‾≤Δs≤Δ\overline{\Delta} \le\Delta_s \le\Delta. We also use that a connected graph on nn vertices with exactly n−1n-1 edges is a tree, to check that our snapshots are spanning trees.

The construction

Throughout, d=82d = 82 is the degree of the expander graph of Theorem 5.1 and c=1+d=83c = 1+d = 83 is the number of permutations we use, the identity and the dd permutations derived from that graph. Both are fixed once and for all, and the constants γ\gamma and Δ0\Delta_0 of Theorem 1.1 depend on them. The degree bound Δ\Delta is instead a parameter, and in this section and in § 6 we assume that it is a power of two with Δ≥512\Delta\ge512, so that b=Δ/64b = \Delta/64 and L=(Δ/512)kL = (\Delta/512)k are integers; the general case is derived from this one at the end of § 6.

Parameters

The temporal graph has three kinds of vertices: a cycle of kk vertices, divided into pp classes of at most Δ/2\Delta/2 vertices; bb branches with pp gates each; and bqbq targets, qq for each branch. Time is divided into τ\tau phases of LL steps. Given nn and Δ\Delta with Δ≤n−1\Delta\le n-1, these parameters are chosen as follows. We set

b=Δ64,τ=max⁡{i≥1:bci−1≤n/3},q=cτ−1,(1)b = \frac{\Delta}{64}, \qquad\tau= \max\{i \ge1 : bc^{i-1} \le n/3\}, \qquad q = c^{\tau-1}, \tag*{(1)}

and then

p=⌈2nΔ⌉,k=n−bp−bq,L=bk8=Δ512k.(2)p = \left\lceil\frac{2n}{\Delta}\right\rceil, \qquad k = n-bp-bq, \qquad L = \frac{bk}{8} = \frac{\Delta}{512}k. \tag*{(2)}

Their orders of magnitude are recorded in Theorem 6.1; for the moment we only need b≥8b \ge8, p≥2p \ge2, k≥3k \ge3 and L≥1L \ge1.

Vertices

The vertex set consists of three kinds of vertices.

  • The cycle on the vertices r1,…,rkr_1,\ldots,r_k, in this cyclic order. Indices of cycle vertices are read modulo kk, so that r0=rkr_0=r_k and rk+1=r1r_{k+1}=r_1. The cycle vertices are divided into pp classes according to the residue modulo pp of their index z∈[k]z\in[k]: the class of index u∈[p]u\in[p] is

Su={rz:z∈[k], z≡u(modp)}.S_u=\{r_z:z\in[k],\ z\equiv u\pmod p\}.

Every class has ⌊k/p⌋\lfloor k/p\rfloor or ⌈k/p⌉\lceil k/p\rceil vertices, and ⌈k/p⌉≤Δ/2\lceil k/p\rceil\leq\Delta/2 because k<n≤pΔ/2k<n\leq p\Delta/2.

  • For every branch j∈[b]j\in[b], the gates gj,1,…,gj,pg_{j,1},\ldots,g_{j,p}. The gate gj,ug_{j,u} serves the class SuS_u.

  • A set XX of bqbq targets.

In total there are k+bp+bq=nk+bp+bq=n vertices, by the choice of kk.

The assignment of targets to branches

The targets are divided among the branches, in a way that changes from phase to phase. We describe the requirements here and construct the assignment in § 5.

Definition 3.1. A branch assignment of a set XX of bqbq targets with τ\tau phases consists of one partition of XX for every phase i∈[τ]i\in[\tau],

X=Xi,1∪Xi,2∪⋯∪Xi,b,∣Xi,j∣=q(j∈[b]).X=X_{i,1}\cup X_{i,2}\cup\cdots\cup X_{i,b},\qquad|X_{i,j}|=q\quad(j\in[b]).

The set Xi,jX_{i,j} is the set of targets of branch jj in phase ii.

Definition 3.2. A branch assignment is evasive if for every choice of sets A1,…,Aτ⊆[b]A_1,\ldots,A_\tau\subseteq[b] with ∣Ai∣≥b/2|A_i|\geq b/2 for all ii there is a target x∈Xx\in X such that, for every i∈[τ]i\in[\tau], x∈Xi,jx\in X_{i,j} for some j∈Aij\in A_i.

In the proof, AiA_i will be the set of branches that the agent does not visit during phase ii. The evasive property then gives a single target that lies in an unvisited branch in every phase, and so is not visited during the τ\tau phases.

Inside a branch the targets are arranged on a path. To keep the underlying degree bounded, we require the paths of a branch to start at the same vertex in every phase, and the union of all paths to have bounded degree. A path realisation of a branch assignment consists of vertices ρ1,…,ρb∈X\rho_1,\ldots,\rho_b\in X and paths Pi,jP_{i,j}, one for every phase ii and branch jj, such that Pi,jP_{i,j} has vertex set Xi,jX_{i,j} and first vertex ρj\rho_j. In particular ρj∈Xi,j\rho_j\in X_{i,j} for every ii: the target ρj\rho_j never changes branch. The skeleton of the realisation is the graph on XX whose edge set is the union of the edge sets of all paths Pi,jP_{i,j}.

Theorem 3.3. There is a constant b0b_0 with the following property. For all integers b≥b0b\geq b_0 and τ≥1\tau\geq1, with q=cτ−1q=c^{\tau-1}, one can construct in time polynomial in bqbq an evasive branch assignment of a set of bqbq targets with τ\tau phases, together with a path realisation whose skeleton has maximum degree at most four.

Time steps

Fix an evasive branch assignment of XX with a path realisation as in Theorem 3.3, which applies because b≥b0b\geq b_0 for every admissible Δ\Delta (§ 6). Phase i∈[τ]i\in[\tau] consists of the time steps (i−1)L+1,…,iL(i-1)L+1,\ldots,iL, and we call the passage from one phase to the next a phase boundary; there are τ−1\tau-1 of them. For a time step tt let ht=rth_t=r_t, the index being read modulo kk, and let u(t)∈[p]u(t)\in[p] be the index of its class, so that ht∈Su(t)h_t\in S_{u(t)}. We call hth_t the hub at time tt. The hub advances by one position per step, so it travels once around the cycle every kk steps.

For every time step tt of phase ii, the graph GtG_t has exactly the following edges; see Figure 1.

  1. All edges rzrz+1r_zr_{z+1} of the cycle except rt−1rtr_{t-1}r_t. These k−1k-1 edges form a Hamiltonian path of the cycle, which we always read from the hub outwards: the cycle path is the sequence Qt=(ht,rt+1,rt+2,…,rt−1)Q_t=(h_t,r_{t+1},r_{t+2},\ldots,r_{t-1}).

  1. For every branch jj, the hub edge htgj,u(t)h_tg_{j,u(t)} from the hub to the gate of its class.

  1. For every branch jj, the gate path gj,1gj,2⋯gj,pg_{j,1}g_{j,2}\cdots g_{j,p} and the edge gj,pρjg_{j,p}\rho_j.

  1. For every branch jj, the target path Pi,jP_{i,j}.

Branch jj in phase ii is the vertex set {gj,1,…,gj,p}∪Xi,j\{g_{j,1},\ldots,g_{j,p}\}\cup X_{i,j}. For t>τLt>\tau_L we set Gt=GτLG_t=G_{\tau_L}, so that GG is defined at all times and constant from step τL\tau_L on, with hτLh_{\tau_L} as its hub.

Basic properties

Proposition 3.4. Every GtG_t is a spanning tree of the vertex set. Its only vertex of degree larger than three is the hub, which has degree b+1b+1. The underlying graph has maximum degree at most Δ/2+2\Delta/2+2.

Proof. Fix a time step t≤τLt\leq\tau_L, in phase ii; for larger tt the snapshot is GτLG_{\tau_L}. The path QtQ_t has kk vertices and k−1k-1 edges. For every branch jj, the hub edge, the gate path, the edge gj,pρjg_{j,p}\rho_j and the target path Pi,jP_{i,j} together form a tree on the p+qp+q vertices of branch jj plus the hub, with p+qp+q edges, and this tree meets the rest of the graph only in the hub. Hence GtG_t is connected and has (k−1)+b(p+q)=n−1(k-1)+b(p+q)=n-1 edges, so it is a spanning tree. In GtG_t the hub has one cycle neighbour and bb gate neighbours. A gate has at most two neighbours among the gates and ρj\rho_j, and only one gate per branch carries the hub edge, so every gate has degree at most three; ρj\rho_j has the neighbour gj,pg_{j,p} and at most one neighbour on Pi,jP_{i,j}; all other vertices lie on paths and have degree at most two.

For the underlying graph, consider a cycle vertex r∈Sur\in S_u. It has two cycle neighbours, and it is adjacent to a gate only at times when it is the hub, when its gate neighbours are g1,u,…,gb,ug_{1,u},\ldots,g_{b,u}. Its degree is therefore at most b+2b+2. A gate gj,ug_{j,u} has at most two neighbours among the gates and ρj\rho_j, and it is joined to a cycle vertex rr only through a hub edge at a time when rr is the hub and r∈Sur\in S_u; so its cycle neighbours lie in SuS_u, which has at most ⌈k/p⌉≤Δ/2\lceil k/p\rceil\leq\Delta/2 vertices, and its degree is at most Δ/2+2\Delta/2+2. Finally, a target is adjacent to other targets only through edges of the paths Pi,jP_{i,j}, that is, of the skeleton, which has maximum degree at most four by Theorem 3.3, and its only possible further neighbour is gj,pg_{j,p}, when it is ρj\rho_j. Every target therefore has degree at most five. All three bounds are at most Δ/2+2\Delta/2+2, because b=Δ/64b=\Delta/64 and Δ≥512\Delta\geq512. □\square

The rotating cycle

All statements concern a fixed walk W=(v1,v2,…)W=(v_1,v_2,\ldots) in the temporal graph of § 3, during its τ\tau phases.

We say that the walk enters a branch at step tt if vt=htv_t=h_t and vt+1v_{t+1} is a gate, and that it leaves a branch at step tt if vtv_t is a gate and vt+1=htv_{t+1}=h_t. The only edges between the cycle and the rest of the graph at time tt are the hub edges, so every passage between the cycle and a branch is an entry or an exit, and different branches are joined only through the cycle. Within a phase, therefore, the walk enters every branch it visits, except possibly the one it is in when the phase begins. An exit is expensive: if the walk leaves a branch at step tt, then at the start of step t+1t+1 it stands on the old hub ht=rth_t=r_t, the last vertex of Qt+1Q_{t+1}, as far from the new hub as it can be (Figure 1).

Lemma 4.1. Let tt be a time step and suppose that vt=rt−1v_t=r_{t-1}, the last vertex of QtQ_t. Then vt′≠ht′v_{t'}\ne h_{t'} for every time step t′t' with t≤t′<t+(k−1)/2t\leq t'<t+(k-1)/2.

Proof. For a step t′t' at whose start the walk is on a cycle vertex, let its offset ℓt′\ell_{t'} be the position of vt′v_{t'} on Qt′Q_{t'}, counted from the hub, so that the walk is on the hub exactly when ℓt=0\ell_t=0, and ℓt=k−1\ell_t=k-1. As long as the offset is positive, the walk is not on the hub, so it stays on the cycle and moves at most one position along the path, and the hub advances by one position; the offset therefore decreases by at most two. From offset 1 the walk can also move onto the hub ht′h_{t'} itself, but then at the start of step t′+1t'+1 it stands on ht′h_{t'}, the last vertex of Qt′+1Q_{t'+1}, and its offset is again k−1k-1. In every case ℓt′+1≥ℓt′−2\ell_{t'+1}\ge\ell_{t'}-2, hence ℓt′+i≥k−1−2i\ell_{t'+i}\ge k-1-2i, which is positive for i<(k−1)/2i<(k-1)/2. □

Lemma 4.2. Two consecutive steps at which the walk enters a branch are at least (k+3)/2(k+3)/2 apart.

Proof. Let t1<t3t_1<t_3 be two consecutive steps at which the walk enters a branch. At the start of step t1+1t_1+1 the walk is on a gate. In every phase the hub edges are the only edges between the cycle and the rest of the graph, so the walk returns to the cycle only by leaving a branch, say at step t2≥t1+1t_2\ge t_1+1. Then vt2+1=ht2=rt2v_{t_2+1}=h_{t_2}=r_{t_2}, and Theorem 4.1 applied to the step t2+1t_2+1 shows that the walk is not on the hub at the start of any step t′t' with t2+1≤t′<t2+1+(k−1)/2t_2+1\le t'<t_2+1+(k-1)/2. Entering a branch at step t3t_3 requires vt3=ht3v_{t_3}=h_{t_3}, so t3≥t2+1+(k−1)/2≥t1+2+(k−1)/2=t1+(k+3)/2t_3\ge t_2+1+(k-1)/2\ge t_1+2+(k-1)/2=t_1+(k+3)/2. □

We say that the walk visits branch jj during phase ii if vtv_t belongs to branch jj in phase ii for some tt with (i−1)L+1≤t≤iL+1(i-1)L+1\le t\le iL+1. The last of these positions, viL+1v_{iL+1}, is also the first position of phase i+1i+1, so it counts for both phases. This is deliberate: the targets are reassigned at the phase boundary, and the vertex on which the walk then stands may belong to one branch under the old assignment and to another under the new one.

Lemma 4.3. Assume b≥8b\ge8 and L≤bk/8L\le bk/8. During every phase the walk visits fewer than b/2b/2 branches.

Proof. Fix a phase ii. By Theorem 4.2 consecutive entries are more than k/2k/2 steps apart, and the phase has L≤bk/8L\le bk/8 steps, so the walk enters a branch fewer than 1+2L/k≤1+b/41+2L/k\le1+b/4 times during the phase. Every branch that the walk visits during the phase either contains its first position v(i−1)L+1v_{(i-1)L+1} or is entered during the phase, because within the phase the assignment does not change and the hub edges are the only edges into a branch. Hence the walk visits fewer than 2+b/4≤b/22+b/4\le b/2 branches, the last inequality because b≥8b\ge8. □

Evasive assignments

This section proves Theorem 3.3. We first explain the idea informally, since each ingredient of the construction is easier to follow once the difficulty it answers is clear; the definitions and proofs follow in § 5.1 to § 5.3.

Two requirements pull against each other. Evasion asks the targets to change branch, since one that keeps its branch can be caught as soon as that branch is visited, and the agent may visit almost half of the branches, different ones in every phase. The bound on the underlying degree asks the opposite: the targets adjacent to a target are those before and after it on the paths Pi,jP_{i,j}, and one whose branch changes unpredictably meets new ones every phase.

We reconcile the two by letting the branch of a target change only to a neighbour in a fixed expander HH on the bb branches. From HH we derive dd permutations of the branches: each sends every branch to a neighbour in HH, and together they reach every neighbour of a branch. To these we add the identity, so that there are c=d+1c=d+1 in all. Here cc is an absolute constant, the same for every bb: the expander gives a fixed supply of relabellings that serves however many branches there are. The targets sit in a grid of bb rows and qq columns and stay there: a phase boundary changes no vertex, only which of them each path collects. Every column is assigned a word of length τ−1\tau-1, the number of phase boundaries, one column for each word over the alphabet of the permutations; there are cτ−1c^{\tau-1} such words, so q=cτ−1q=c^{\tau-1}. In every phase every target has a label, the branch it is in. In phase 1 the label of a target is its row, so the labels of a column are all the branches, in the same order in every column. At the boundary from phase ii to phase i+1i+1 the labels of a column are replaced by their images under the permutation written in position ii of its word. The common order may break at the first boundary where two columns use different letters, but it remains true that the labels of a column are all the bb branches, each exactly once: the permutation is one and the same for the whole column, and a permutation does not merge two labels into one. Hence in every phase every branch has exactly one target in every column, and the path of branch jj in phase ii consists precisely of those targets, one from each column: qq in all, the same for every branch and every phase. In phase 1, where all the columns are labelled alike, those paths are exactly the rows.

For a single target, the same rule says that its labels, followed over the phases, form a walk in HH. The walk starts at the target’s row and at the boundary from phase ii to phase i+1i+1 takes the step given by the permutation written in position ii of its column’s word, a step to a neighbour, or no step at all if that permutation is the identity. The walk therefore depends only on the target’s row and on its column’s word, not on the paths around it. In phase 1 the qq targets in one row are all in the same branch, and each then follows the word of its own column. Since the columns exhaust all the words, every walk that starts at that branch is realised by a target in the row, in a column whose word spells it.

What evasion needs is therefore a walk in HH that the agent misses. In each phase the branches a target could be in, if it has been in an unvisited branch in every phase so far, form a set: at a boundary the set spreads to the neighbours of its members, and the agent then removes the branches it visits, at most half of all of them. The spreading has to beat the loss, and it does as soon as every quarter of the branches, together with its neighbours, makes up three quarters of them; the set never shrinks below a quarter then, whatever the agent does, a quarter being the fixed point of “spread, then lose half”. Some walk therefore survives all τ\tau phases, and a target realises it, in the row where the walk starts and in a column whose word spells it. That target is never visited. The grid holds bcτ−1b c^{\tau-1} targets and there is room for only Θ(n)\Theta(n), which is what limits τ\tau to Θ(1+log⁡(n/Δ))\Theta(1+\log(n/\Delta)), a logarithm in base cc; with phases of Θ(Δn)\Theta(\Delta n) steps this gives the logarithm of Theorem 1.1. The expansion of every quarter of the branches to three quarters is all we ask of the dd-regular graph HH, and Alon’s explicit expanders [4] give it for d=82d=82 and every b≥b0b \ge b_0.

What is still free is the order of the columns, and it is what keeps the underlying degree bounded: the order does not enter the labels, so evasion is settled whatever we choose, and all it decides is which targets are neighbours. Between two consecutive columns the paths pair targets carrying the same label, one from each column. This pairing survives any boundary at which the two columns are relabelled alike, so it can change only at the boundaries where their words differ. A Gray code orders the words so that consecutive ones differ in a single letter; two consecutive columns are then joined by at most two pairings in the whole lifetime of the graph, and a target never has more than two neighbours on each side (§ 5.3).

Expanders and permutations

We state the property of HH in the form in which we use it, and prove it from an explicit construction of Alon [4] and the standard argument that a spectral gap forces large sets to have large neighbourhoods.

Lemma 5.1. There is a constant b0b_0 such that for every b≥b0b \ge b_0 one can construct in time polynomial in bb a dd-regular graph HH on [b][b], not necessarily simple, in which every Y⊆[b]Y \subseteq[b] with ∣Y∣≥b/4|Y| \ge b/4 has, together with its neighbours, at least 3b/43b/4 elements. Moreover one can construct in polynomial time permutations π1,…,πd\pi_1,\ldots,\pi_d of [b][b] such that for every x∈[b]x \in[b] the neighbourhood of xx in HH is {π1(x),…,πd(x)}\{\pi_1(x),\ldots,\pi_d(x)\}.

Proof. Alon [4], Theorem 1.3] shows that for every degree dd, every ε>0\varepsilon> 0 and every sufficiently large bb with bdbd even, one can construct in time polynomial in bb a dd-regular graph on bb vertices whose eigenvalues other than the largest, dd, have absolute value at most 2d−1+ε2\sqrt{d-1}+\varepsilon. Our d=82d=82 is even, so bdbd is even for every bb. We take ε=1\varepsilon=1, so that these eigenvalues are at most 281+1=19≤d/42\sqrt{81}+1=19\le d/4 in absolute value, let b0b_0 be the threshold from which the theorem applies for d=82d=82 and ε=1\varepsilon=1, and let HH be the resulting graph on [b][b].

For the expansion, let Y⊆[b]Y\subseteq[b] with ∣Y∣≥b/4|Y|\ge b/4, and let ZZ be the set of vertices neither in YY nor adjacent to a vertex of YY. There are no edges between YY and ZZ, so the expander mixing lemma [20 Lemma 2.5] gives d∣Y∣∣Z∣/b≤(d/4)∣Y∣∣Z∣d|Y||Z|/b\le(d/4)\sqrt{|Y||Z|}, that is, ∣Y∣∣Z∣≤b2/16|Y||Z|\le b^2/16. Hence ∣Z∣≤b/4|Z|\le b/4, and YY together with its neighbours has b−∣Z∣≥3b/4b-|Z|\ge3b/4 elements.

For the permutations, let H′H' be the bipartite multigraph on [b]×{1,2}[b]\times\{1,2\} with as many edges between (x,1)(x,1) and (y,2)(y,2) as HH has between xx and yy, for all x,y∈[b]x,y\in[b]. It is dd-regular (a loop of HH counts once in the degree, as in [20]), so by König's theorem it is the disjoint union of dd perfect matchings, which can be found in polynomial time [23]. In the ii-th of these matchings every vertex (x,1)(x,1) has exactly one partner (y,2)(y,2), and we set πi(x)=y\pi_i(x)=y; since the matching is perfect, πi\pi_i is a permutation of [b][b]. Every edge of H′H' lies in exactly one of the matchings, so each yy appears among π1(x),…,πd(x)\pi_1(x),\ldots,\pi_d(x) as many times as HH has edges between xx and yy, and these are therefore the neighbours of xx.

We fix HH and π1,…,πd\pi_1,\ldots,\pi_d from Theorem 5.1, and we let π0\pi_0 be the identity permutation, so that a target may also stay in its branch from one phase to the next. We thus have c=d+1c=d+1 permutations π0,…,πd\pi_0,\ldots,\pi_d of [b][b], and for every Y⊆[b]Y\subseteq[b] the images of YY under them are exactly YY and its neighbours, the set whose size Theorem 5.1 bounds from below.

Words, columns and labels

Let τ≥1\tau\ge1 and q=cτ−1q=c^{\tau-1}. A word is a sequence w=(w1,…,wτ−1)w=(w_1,\ldots,w_{\tau-1}) with entries in {0,…,d}\{0,\ldots,d\}; there are qq words. (For τ=1\tau=1 there is a single empty word and everything is trivial: there is one column, one target per branch, and no skeleton edges.) Let XX be a set of bqbq targets, and name its elements xw,ax_{w,a}, one for every word ww and every a∈[b]a\in[b]. The bb targets with the same word form the column CwC_w, so XX is the union of the qq columns, and we call aa the row of xw,ax_{w,a}.

The branch of a target in phase ii is determined by following the permutations named in its word. For a word ww, a row a∈[b]a\in[b] and a phase i∈[τ]i\in[\tau] let

λi(w,a)=πwi−1∘πwi−2∘⋯∘πw1(a),(3)\lambda_i(w,a)=\pi_{w_{i-1}}\circ\pi_{w_{i-2}}\circ\cdots\circ\pi_{w_1}(a), \tag*{(3)}

where the composition is empty for i=1i=1, so that λ1(w,a)=a\lambda_1(w,a)=a for every word, and λi+1(w,a)=πwi(λi(w,a))\lambda_{i+1}(w,a)=\pi_{w_i}(\lambda_i(w,a)) for i<τi<\tau. We call λi(w,a)\lambda_i(w,a) the label of xw,ax_{w,a} in phase ii, and we put Xi,j={xw,a:λi(w,a)=j}X_{i,j}=\{x_{w,a}:\lambda_i(w,a)=j\}. For fixed ww and ii the map a↦λi(w,a)a\mapsto\lambda_i(w,a) is a composition of permutations, hence a permutation of [b][b], so every column contains exactly one target of each label in each phase and ∣Xi,j∣=q|X_{i,j}|=q for all ii and jj. Thus the sets Xi,jX_{i,j} form a branch assignment in the sense of Theorem 3.1.

The labels of xw,ax_{w,a} form the walk in HH that starts at aa and is named by ww; when wi=0w_i=0 the label is the same in phases ii and i+1i+1. Figure 2 shows the columns of a small example, whose other features are explained in § 5.3.

The skeleton in full, for $b=4$ branches, $\tau=3$ phases and $d=2$

Figure 2. The skeleton in full, for b=4b=4 branches, τ=3\tau=3 phases and d=2d=2. Here HH is a four-cycle, with π1=(1 2)(3 4)\pi_1=(1\ 2)(3\ 4) and π2=(1 3)(2 4)\pi_2=(1\ 3)(2\ 4), and the words are the cτ−1=9c^{\tau-1}=9 pairs over {0,1,2}\{0,1,2\}, in Gray code order. Columns are the sets CwC_w, rows the indices aa. Solid edges are the identity matchings; between any two consecutive columns there is one further matching, dashed, which replaces the identity from phase 2 on if their words differ in the first entry, and from phase 3 on if they differ in the second. The paths of phase 1 are therefore the rows, and every target has at most two neighbours on each side, so the skeleton has maximum degree four. The shaded paths are P2,1P_{2,1} and P3,1P_{3,1}, those of branch 1 in phases 2 and 3. Both start at ρ1=x00,1\rho_1=x_{00,1}; P2,1P_{2,1} changes row only where the first entry of the words changes, and P3,1P_{3,1} between any two consecutive columns.

Lemma 5.2. The branch assignment (Xi,j)(X_{i,j}) is evasive.

Proof. Let A1,…,Aτ⊆[b]A_1,\ldots,A_\tau\subseteq[b] with ∣Ai∣≥b/2|A_i|\ge b/2 for every ii. For Y⊆[b]Y\subseteq[b] write N[Y]N[Y] for YY together with its neighbours in HH. Define Y1=A1Y_1=A_1 and Yi+1=N[Yi]∩Ai+1Y_{i+1}=N[Y_i]\cap A_{i+1} for 1≤i<τ1\le i<\tau, so that Yi⊆AiY_i\subseteq A_i for every ii. We claim that ∣Yi∣≥b/4|Y_i|\ge b/4 for every ii. This holds for i=1i=1, as ∣A1∣≥b/2|A_1|\ge b/2. If it holds for ii, then ∣N[Yi]∣≥3b/4|N[Y_i]|\ge3b/4 by Theorem 5.1, and since ∣Ai+1∣≥b/2|A_{i+1}|\ge b/2 the set Yi+1=N[Yi]∩Ai+1Y_{i+1}=N[Y_i]\cap A_{i+1} has at least 3b/4+b/2−b=b/43b/4+b/2-b=b/4 elements.

In particular YτY_\tau is not empty, so choose yτ∈Yτy_\tau\in Y_\tau. For i=τ−1,τ−2,…,1i=\tau-1,\tau-2,\ldots,1 in turn, yi+1y_{i+1} lies in Yi+1⊆N[Yi]Y_{i+1}\subseteq N[Y_i], so there is yi∈Yiy_i\in Y_i with yi+1∈{π0(yi),…,πd(yi)}y_{i+1}\in\{\pi_0(y_i),\ldots,\pi_d(y_i)\}; choose such a yiy_i and let

Potential "eigenvalues..." starts mid sentence, starts_mid yes. Equation exact composition. Superscript? Good. theorem citation narrative xref bare. Citation [20] in parenthetical "as in [20]" must mark citep. We missed. Also lemma [20] exact. fix as citep. [b] mathematical in text yes. Need all math. "d-regular" d math variable, should dd-regular. Also x,y etc. "i-th" i math. We have mostly. Inline math every formula. Update relevant. Text "as in [20]" cite. Also "theorem applies for d=82" math done. final.

wi∈{0,…,d}w_i\in\{0,\ldots,d\} be an index with yi+1=πwi(yi)y_{i+1}=\pi_{w_i}(y_i). By (3) the target xw,y1x_{w,y_1} with w=(w1,…,wτ−1)w=(w_1,\ldots,w_{\tau-1}) has label λi(w,y1)=yi\lambda_i(w,y_1)=y_i in phase ii, so it lies in Xi,yiX_{i,y_i} with yi∈Aiy_i\in A_i, for every ii. □\square

Ordering the targets

We order the words, and with them the columns, by the reflected cc-ary Gray code; see Knuth [21], Section 7.2.1.1 or Savage [26] for background. For a list L\mathcal{L} of words and a letter β\beta, write βL\beta\mathcal{L} for the list obtained by prefixing β\beta to every word of L\mathcal{L}, and LR\mathcal{L}^{R} for L\mathcal{L} in reverse order. Let Γ0\Gamma_0 consist of the empty word alone, and for ℓ≥0\ell\geq0 let

Γℓ+1=0Γℓ, 1ΓℓR, 2Γℓ, 3ΓℓR, …,\Gamma_{\ell+1}=0\Gamma_\ell,\ 1\Gamma_\ell^{R},\ 2\Gamma_\ell,\ 3\Gamma_\ell^{R},\ \ldots,

with one block for each letter β∈{0,…,d}\beta\in\{0,\ldots,d\}, the blocks using Γℓ\Gamma_\ell and ΓℓR\Gamma_\ell^{R} alternately; for c=3c=3, Γ2\Gamma_2 is the order of the columns in Figure 2. By induction on ℓ\ell, the list Γℓ\Gamma_\ell contains every word of length ℓ\ell exactly once, starts with the all-zero word, and any two of its consecutive words differ in exactly one position. Indeed, in Γℓ+1\Gamma_{\ell+1} the first block is 0Γℓ0\Gamma_\ell, consecutive words inside a block differ in one position because those of Γℓ\Gamma_\ell and of its reverse do, and where two blocks meet the two words differ in the first letter and have the same suffix, the last or the first word of Γℓ\Gamma_\ell. We use Γτ−1\Gamma_{\tau-1}, which can be listed in time polynomial in its length q=cτ−1q=c^{\tau-1}, and write w(1),…,w(q)w^{(1)},\ldots,w^{(q)} for its words in this order.

The path Pi,jP_{i,j} passes through the columns Cw(1),…,Cw(q)C_{w^{(1)}},\ldots,C_{w^{(q)}} in this order and takes from each the unique target whose label in phase ii is jj, so its vertex set is Xi,jX_{i,j} and each of its edges joins two consecutive columns. The target ρj=xw(1),j\rho_j=x_{w^{(1)},j} has label jj in every phase, because w(1)w^{(1)} is the all-zero word and π0\pi_0 is the identity, so every path Pi,jP_{i,j} starts at ρj\rho_j.

Consider two consecutive columns CwC_w and Cw′C_{w'}. In phase ii the paths cross from one to the other by pairing each target of CwC_w with the target of Cw′C_{w'} that has the same label; this pairing is a perfect matching between the two columns, which we call MiM_i. The skeleton has between the two columns exactly the edges of M1,…,MτM_1,\ldots,M_\tau, so a target has at most as many neighbours in the other column as there are different matchings among them. Since ww and w′w' differ in only one position, there are at most two, as Theorem 5.3 shows.

Lemma 5.3. Let ww and w′w' be consecutive words, differing in position μ\mu. Then M1=⋯=MμM_1=\cdots=M_\mu is the identity matching {xw,axw′,a:a∈[b]}\{x_{w,a}x_{w',a}:a\in[b]\}, and Mμ+1=⋯=MτM_{\mu+1}=\cdots=M_\tau.

Proof. In phase 1 the label of every target is its row, so M1M_1 is the identity matching. Now let 1≤i<τ1 \le i < \tau with i≠μi \ne\mu. Then wi=wi′w_i = w_i', so by (3) the labels of both columns in phase i+1i+1 are obtained from those in phase ii by the same permutation π=πwi\pi= \pi_{w_i}, and

λi+1(w,a)=λi+1(w′,a′)⟺π(λi(w,a))=π(λi(w′,a′))⟺λi(w,a)=λi(w′,a′).\lambda_{i+1}(w,a) = \lambda_{i+1}(w',a') \Longleftrightarrow\pi(\lambda_i(w,a)) = \pi(\lambda_i(w',a')) \Longleftrightarrow\lambda_i(w,a) = \lambda_i(w',a').

the last step because π\pi is a permutation. Hence Mi+1=MiM_{i+1} = M_i. Applying this for i<μi < \mu and for i>μi > \mu gives M1=⋯=MμM_1 = \cdots= M_\mu and Mμ+1=⋯=MτM_{\mu+1} = \cdots= M_\tau.

By Theorem 5.3, the skeleton, the union of all the paths Pi,jP_{i,j}, consists of the bb rows together with at most one further perfect matching between any two consecutive columns; Figure 2 shows it on a small example. A target therefore has at most two neighbours on each side, and the skeleton has maximum degree at most four.

Proof of Theorem 3.3. Take for b0b_0 the constant of Theorem 5.1, and let b≥b0b \ge b_0 and τ≥1\tau\ge1. The sets Xi,jX_{i,j} defined by the labels (3) form a branch assignment of the bqbq targets (§ 5.2), and it is evasive by Theorem 5.2. The paths Pi,jP_{i,j} form a path realisation with first vertices ρ1,…,ρb\rho_1,\ldots,\rho_b, and by Theorem 5.3 their union, the skeleton, has maximum degree at most four. Every step is deterministic and takes time polynomial in bqbq: the graph HH and the permutations π1,…,πd\pi_1,\ldots,\pi_d are given by Theorem 5.1, the labels by (3), and the Gray code order can be listed in time polynomial in its length qq; the paths are then read off from the labels and the order.

Proof of the main theorem

Let dd and cc be as in § 3, and let the parameters be given by (1) and (2). Let b0b_0 be the constant of Theorem 5.1, and let Δ0\Delta_0 be the smallest power of two with Δ0/64≥max⁡{8,b0}\Delta_0/64 \ge\max\{8,b_0\}. We call Δ\Delta admissible if it is a power of two with Δ0≤Δ≤n−1\Delta_0 \le\Delta\le n-1. An admissible Δ\Delta gives enough branches both for the construction and for Theorem 5.1; in particular Δ≥512\Delta\ge512, the standing assumption of § 3. The condition also forces n>Δ0n > \Delta_0, so nothing has to be assumed separately about nn. The constant Δ0\Delta_0 is absolute but not explicit, since b0b_0 comes from the expander construction we quote, and we do not optimise the numerical constants. Theorem 6.1 collects the estimates we need, including the edge count used in § 1.

Lemma 6.1. Let Δ\Delta be admissible. With these parameters, b=Δ/64≥max⁡{8,b0}b = \Delta/64 \ge\max\{8,b_0\}, 2≤p≤2n/Δ+12 \le p \le2n/\Delta+ 1, n/(3c)<bq≤n/3n/(3c) < bq \le n/3, n/2<k<nn/2 < k < n and L=bk/8≥kL = bk/8 \ge k. Moreover τ≥(1+log⁡(n/Δ))/(2log⁡c)\tau\ge(1+\log(n/\Delta))/(2\log c). In particular pp and qq are Θ(n/Δ)\Theta(n/\Delta), L=Θ(Δn)L = \Theta(\Delta n) and τ=Θ(1+log⁡(n/Δ))\tau= \Theta(1+\log(n/\Delta)). Finally, U(G)U(G) has between Δn/128\Delta n/128 and 2n+Δn/642n+\Delta n/64 edges.

Proof. Since Δ\Delta is admissible, b=Δ/64≥Δ0/64≥max⁡{8,b0}b = \Delta/64 \ge\Delta_0/64 \ge\max\{8,b_0\}. Since Δ≤n\Delta\le n and p=⌈2n/Δ⌉p = \lceil2n/\Delta\rceil, we have 2≤p≤2n/Δ+12 \le p \le2n/\Delta+ 1, hence

bp≤Δ64(2nΔ+1)=n32+Δ64≤3n64.bp \le\frac{\Delta}{64}\left(\frac{2n}{\Delta}+1\right) = \frac{n}{32}+\frac{\Delta}{64} \le\frac{3n}{64}.

The set in the definition of τ\tau is not empty because b≤n/64≤n/3b \le n/64 \le n/3, and by the maximality of τ\tau we have bcτ>n/3bc^\tau> n/3. Hence

n3c<bq≤n3,n3cb<q≤n3b,and soq=Θ(nΔ).\frac{n}{3c} < bq \le\frac{n}{3}, \qquad\frac{n}{3cb} < q \le\frac{n}{3b}, \qquad\text{and so} \qquad q = \Theta\left(\frac{n}{\Delta}\right).

The number of cycle vertices satisfies

k=n−bp−bq≥n−3n64−n3>n2,k = n-bp-bq \ge n-\frac{3n}{64}-\frac{n}{3} > \frac{n}{2},

and k<nk < n. In particular k≥3k \ge3, and L=bk/8≥k≥1L = bk/8 \ge k \ge1 because b≥8b \ge8. For the number of phases, cτ=cq>n/(3b)≥n/Δc^\tau= cq > n/(3b) \ge n/\Delta because 3b≤Δ3b \le\Delta, so τ>log⁡c(n/Δ)\tau> \log_c(n/\Delta), and τ≥1\tau\ge1 by definition. A maximum of two numbers is at least their average, so

τ≥max⁡{1,log⁡cnΔ}≥12(1+log⁡cnΔ)≥12log⁡c(1+log⁡nΔ).\tau\ge\max\left\{1,\log_c\frac{n}{\Delta}\right\} \ge\frac{1}{2}\left(1+\log_c\frac{n}{\Delta}\right) \ge\frac{1}{2\log c}\left(1+\log\frac{n}{\Delta}\right).

where the last step uses log⁡c>1\log c > 1. In the other direction cτ−1=q≤n/(3b)c^{\tau-1}=q\le n/(3b) gives τ≤1+log⁡c(64n/(3Δ))\tau\le1+\log_c(64n/(3\Delta)), so τ=Θ(1+log⁡(n/Δ))\tau=\Theta(1+\log(n/\Delta)).

Finally, we count the edges of the underlying graph. There are kk cycle edges and bpbp edges on the gate paths and between gates and targets, and the skeleton has at most 2bq2bq edges, since it has maximum degree at most four. Between the cycle and the gates there are exactly bkbk edges, those joining each cycle vertex to the bb gates of its class; each of them appears, because every cycle vertex is the hub at some step of the first phase, as L≥kL\ge k. Since k+bp+bq=nk+bp+bq=n and bq≤n/3bq\le n/3, the total is at most n+n/3+bk≤2n+Δn/64n+n/3+bk\le2n+\Delta n/64, and it is at least bk≥(Δ/64)(n/2)=Δn/128bk\ge(\Delta/64)(n/2)=\Delta n/128.

Proof of Theorem 1.1. Assume first that Δ\Delta is admissible, and let G\mathcal{G} be the temporal graph of § 3, built from the evasive branch assignment and path realisation of Theorem 3.3, which exist because b≥b0b\ge b_0. It has exactly nn vertices, by the choice of kk (§ 3.2). By Theorem 3.4, every snapshot of G\mathcal{G} is a spanning tree in which the hub is the only vertex of degree larger than three, so G\mathcal{G} is always-connected, and the underlying graph has maximum degree at most Δ/2+2≤Δ\Delta/2+2\le\Delta.

Consider any temporal walk of at most τL\tau L time steps, from an arbitrary start vertex. Extending it by waiting, we may assume that it has exactly τL\tau L steps, W=(v1,…,vτL+1)W=(v_1,\ldots,v_{\tau L+1}). For every phase ii let Ai⊆[b]A_i\subseteq[b] be the set of branches that WW does not visit during phase ii. By Theorem 4.3, which applies because b≥8b\ge8 and L=bk/8L=bk/8, the walk visits fewer than b/2b/2 branches during phase ii, so ∣Ai∣>b/2|A_i|>b/2. Since the assignment is evasive there is a target xx such that for every phase ii there is ji∈Aij_i\in A_i with x∈Xi,jix\in X_{i,j_i}. During phase ii the target xx belongs to branch jij_i, which WW does not visit, so xx is none of the positions v(i−1)L+1,…,viL+1v_{(i-1)L+1},\ldots,v_{iL+1}. These position ranges for i=1,…,τi=1,\ldots,\tau cover all positions v1,…,vτL+1v_1,\ldots,v_{\tau L+1}. Hence WW does not visit xx, so no temporal walk of at most τL\tau L steps is an exploration, and texp⁡(G,v∗)≥τL+1\operatorname{texp}(\mathcal{G},v^*)\ge\tau L+1 for every start vertex v∗v^*.

By Theorem 6.1,

Δn1024<L<Δn512and1+log⁡(n/Δ)2log⁡c≤τ=O(1+log⁡(n/Δ)),\frac{\Delta n}{1024}<L<\frac{\Delta n}{512} \qquad\text{and}\qquad \frac{1+\log(n/\Delta)}{2\log c}\le\tau=O(1+\log(n/\Delta)),

so

texp⁡(G,v∗)>τL≥Δn(1+log⁡(n/Δ))2048log⁡c\operatorname{texp}(\mathcal{G},v^*)>\tau L\ge\frac{\Delta n(1+\log(n/\Delta))}{2048\log c}

for every start vertex v∗v^*, and τL=O(Δn(1+log⁡(n/Δ)))\tau L=O(\Delta n(1+\log(n/\Delta))). The temporal graph is constant from step τL\tau L on. The assignment and its path realisation are constructed deterministically in time polynomial in bq≤nbq\le n by Theorem 3.3, and each of the first τL=O(n2log⁡n)\tau L=O(n^2\log n) snapshots, which determine G\mathcal{G}, can then be written down in time polynomial in nn, so G\mathcal{G} is constructed deterministically in time polynomial in nn.

It remains to remove the assumption that Δ\Delta is a power of two. Let Δ\Delta be any integer with Δ0≤Δ≤n−1\Delta_0\le\Delta\le n-1, and let Δ′\Delta' be the largest power of two with Δ′≤Δ\Delta'\le\Delta. Then Δ/2<Δ′≤Δ\Delta/2<\Delta'\le\Delta, and Δ′\Delta' is admissible, because Δ0\Delta_0 is itself a power of two at most Δ\Delta and hence Δ0≤Δ′\Delta_0\le\Delta'. We use the temporal graph of § 3 for nn and Δ′\Delta'. Its underlying graph has maximum degree at most Δ′≤Δ\Delta'\le\Delta. It is constant from some time step O(Δ′n(1+log⁡(n/Δ′)))O(\Delta'n(1+\log(n/\Delta'))) on, which is O(Δn(1+log⁡(n/Δ)))O(\Delta n(1+\log(n/\Delta))) because Δ′≤Δ\Delta'\le\Delta and n/Δ′<2n/Δn/\Delta'<2n/\Delta. Its exploration time is at least

Δ′n(1+log⁡(n/Δ′))2048log⁡c≥Δn(1+log⁡(n/Δ))4096log⁡c,\frac{\Delta'n(1+\log(n/\Delta'))}{2048\log c}\ge\frac{\Delta n(1+\log(n/\Delta))}{4096\log c},

because Δ′>Δ/2\Delta'>\Delta/2 and n/Δ′≥n/Δn/\Delta'\ge n/\Delta. The other properties were proved for every admissible value, in particular for Δ′\Delta', and Theorem 1.1 follows with γ=1/(4096log⁡c)\gamma=1/(4096\log c). ∎

Proof of Theorem 1.2. Every snapshot is a subgraph of the underlying graph, so every vertex vv has dmax⁡(v)≤Δd_{\max}(v) \le\Delta, and therefore Δ‾≤Δ\overline{\Delta} \le\Delta. For the reverse inequality, we use that the construction is run with a power of two Δ′>Δ/2\Delta' > \Delta/2, so that b=Δ′/64b = \Delta'/64, and that k>n/2k > n/2 by Theorem 6.1. The hub advances by one position at every time step, so the cycle vertices are the hubs of the first kk time steps, which all belong to the first phase because L≥kL \ge k, and each of them then has degree b+1b+1. Hence dmax⁡(v)≥b+1d_{\max}(v) \ge b+1 for the kk cycle vertices, and Δ‾≥(k/n)(b+1)>b/2=Δ′/128>Δ/256\overline{\Delta} \ge(k/n)(b+1) > b/2 = \Delta'/128 > \Delta/256; together with Δ‾≤Δ\overline{\Delta} \le\Delta this gives Δ‾=Θ(Δ)\overline{\Delta} = \Theta(\Delta).

By Theorem 1.1 the exploration time is at least γΔn(1+log⁡(n/Δ))\gamma\Delta n(1+\log(n/\Delta)), so it is enough to bound this quantity from below. If Δ≤n\Delta\le\sqrt{n} then log⁡(n/Δ)≥12log⁡n\log(n/\Delta) \ge\frac{1}{2}\log n and log⁡Δ≥1\log\Delta\ge1, so

Δn(1+log⁡(n/Δ))≥12Δnlog⁡n≥Δ2log⁡Δnlog⁡n.\Delta n(1+\log(n/\Delta)) \ge\frac{1}{2}\Delta n\log n \ge\frac{\Delta}{2\log\Delta}n\log n.

which gives both bounds of the corollary. If Δ>n\Delta> \sqrt{n} then log⁡n<2log⁡Δ\log n < 2\log\Delta, so

Δn(1+log⁡(n/Δ))≥Δn>Δ2log⁡Δnlog⁡n.\Delta n(1+\log(n/\Delta)) \ge\Delta n > \frac{\Delta}{2\log\Delta}n\log n.

Limits and variants of the construction

We show that our analysis is tight and that the scheme behind it cannot give more, and then consider three variants, each changing one ingredient: which degree is bounded, the hub, and the number of moves per step. Throughout this section Δ\Delta is admissible.

Tightness for this construction. The bound of Theorem 1.1 is tight for our construction, and not only because GG is constant after τL\tau L steps, which lets the agent finish in O(n)O(n) further steps. Let G∗G^* agree with GG on its first τL\tau L steps and then repeat its τ\tau phases for ever, phase i′i' using the paths Pi,jP_{i,j} of phase ii whenever i′≡i(modτ)i' \equiv i \pmod{\tau}. Like GG, it cannot be explored within τL\tau L steps, and it has the same underlying graph, so the lower bound of Theorem 1.1 holds for it as well. On G∗G^* an agent matches the lower bound by visiting, in each phase, every vertex of a constant fraction of the branches, those carrying the most targets it has not visited yet.

Proposition 7.1. For every start vertex v∗v^* we have texp⁡(G∗,v∗)=O(Δn(1+log⁡(n/Δ)))t_{\exp}(G^*,v^*) = O(\Delta n(1+\log(n/\Delta))), so the bound of Theorem 1.1 is best possible for G∗G^* up to a constant factor.

Proof. A sweep of branch jj starts on the hub at some step tt. The walk takes the hub edge to gj,u(t)g_{j,u(t)}, follows the gate path to gj,pg_{j,p} and the target path to its end, and comes back along the target path and the whole gate path to gj,1g_{j,1}. There it waits until the hub lies in the class S1S_1, which takes fewer than pp steps, and returns to the cycle through the hub edge. In this way it visits every gate of branch jj and every target of the branch in the current phase, in at most 3p+2q3p+2q steps, and 3p+2q<n/8<k/43p+2q < n/8 < k/4 by Theorem 6.1 and Δ≥512\Delta\ge512. The walk now stands on the old hub, at the far end of the cycle path. It walks along the cycle path towards the hub, which advances towards it, and meets the hub within k/2+1k/2+1 steps; when only one edge separates them it waits instead of moving, since a move would put it behind the hub again. A sweep and the return to the hub thus take fewer than kk steps. Outside sweeps the walk stays on the hub by moving forward along the cycle, so if it is on the hub when a phase begins, it can sweep any ⌊b/8⌋>b/16\lfloor b/8 \rfloor> b/16 branches of its choice within that phase of L=bk/8L=bk/8 steps.

From an arbitrary start vertex the walk reaches the hub within O(k)O(k) steps and stays on it until the next phase begins, which costs at most one phase. In every phase it then sweeps the ⌊b/8⌋\lfloor b/8 \rfloor branches that carry the most targets it has not visited yet. These carry at least a $1/16$ fraction of the unvisited targets, so each phase multiplies the number of unvisited targets by at most 15/1615/16. After O(1+log⁡q)O(1+\log q) phases at most ⌊b/8⌋\lfloor b/8 \rfloor of the bqbq targets remain unvisited, in at most ⌊b/8⌋\lfloor b/8 \rfloor branches, and the next phase visits them all. The walk then sweeps each of the $b branches once, ⌊b/8⌋\lfloor b/8\rfloor per phase, which visits every gate within O(L)O(L) steps, and finally moves forward along the cycle for k−1k-1 steps, which keeps it on the hub and visits every cycle vertex. Altogether this takes O(L(1+log⁡q))=O(Δn(1+log⁡(n/Δ)))O(L(1+\log q))=O(\Delta n(1+\log(n/\Delta))) steps, because L=Θ(Δn)L=\Theta(\Delta n) and q=Θ(n/Δ)q=\Theta(n/\Delta) by Theorem 6.1.

Limits of the scheme. However the targets are assigned, their number caps the number of phases.

Proposition 7.2. Let bb be even. Every evasive branch assignment with bb branches and τ\tau phases has more than b 2τ−2b\,2^{\tau-2} targets, even if the sets Xi,jX_{i,j} have different sizes; in particular, one with at most nn targets has fewer than log⁡2(n/b)+2\log_{2}(n/b)+2 phases.

Proof. Suppose that there are at most b 2τ−2b\,2^{\tau-2} targets. Consider an idealised agent that can visit any b/2b/2 branches in each phase, and let it choose them greedily as in the proof of Theorem 7.1: those that contain the most targets it has not visited yet. In each of the first τ−1\tau-1 phases it then visits at least half of the unvisited targets, so at most b 2τ−2/2τ−1=b/2b\,2^{\tau-2}/2^{\tau-1}=b/2 remain for phase τ\tau, where they lie in at most b/2b/2 branches and are all visited. Let AiA_i be the set of the b/2b/2 branches not visited in phase ii. Every target is visited in some phase ii, and in that phase it lies in a branch outside AiA_i; hence no target lies in a branch of AiA_i in every phase, and the assignment is not evasive. The second claim follows, since an evasive assignment with at most nn targets has b 2τ−2<nb\,2^{\tau-2}<n.

Our assignment has bq≤n/3bq\le n/3 targets and τ=1+⌊log⁡c(n/(3b))⌋\tau=1+\lfloor\log_c(n/(3b))\rfloor phases by (1), so it is within a constant factor of this ceiling for every Δ\Delta; the only loss is that it counts in base cc rather than in base two. The length of a phase is capped too. From any vertex the agent reaches the hub within O(k)O(k) steps, and a walk through a whole branch and back to the hub then takes fewer than kk steps (Theorem 7.1), so within (b/2+1)k+O(k)(b/2+1)k+O(k) steps of a phase it can visit more than half of the branches, and evasion no longer applies. Phases therefore have O(bk)=O(bn)O(bk)=O(bn) steps, and there are fewer than log⁡2(n/b)+2\log_2(n/b)+2 of them. Since the hub has degree b+1≤Δb+1\le\Delta and b(1+log⁡(n/b))=O(Δ(1+log⁡(n/Δ)))b(1+\log(n/b))=O(\Delta(1+\log(n/\Delta))) for b<Δb<\Delta, this scheme cannot give more than O(Δn(1+log⁡(n/Δ)))O(\Delta n(1+\log(n/\Delta))) steps, whatever the assignment, and Theorem 1.1 attains this.

Bounded snapshot degree only. If only the snapshot degree has to be bounded, the two devices that serve the underlying degree can be dropped: the gates, which keep the number of cycle neighbours of every vertex outside the cycle bounded, and the Gray code order of the targets, which gives the skeleton bounded degree. Attach the targets of branch jj in phase ii directly to the hub, as a path through Xi,jX_{i,j} in an arbitrary order, and put the bpbp vertices that were gates on the cycle, so that there are still nn vertices. Every GtG_t is then a spider, a tree with a single vertex of degree larger than two, namely the hub, of degree b+1b+1; hence Δs=b+1=Θ(Δ)\Delta_s=b+1=\Theta(\Delta), while the underlying degree is no longer bounded. The branches are still joined to each other only through the hub, so Theorem 4.3 applies verbatim once “gate” is read as “first vertex of the branch” in the definitions of entering and leaving a branch, and Theorem 5.2 is untouched. The bound of Theorem 1.1 therefore holds with Δs\Delta_s in place of Δ\Delta, for temporal graphs whose snapshots are spiders.

Since the skeleton no longer needs bounded degree, the assignment need not come from an expander either: a random one is evasive with high probability. Choose qq independently of τ\tau, subject only to bq≤n/3bq\le n/3, and assign every target to a branch independently and uniformly at random in every phase. The branches then hold qq targets only on average and may even be empty, which spiders tolerate, and evasion is defined as in Theorem 3.2. It suffices to consider sets A1,…,Aτ⊆[b]A_1,\ldots,A_\tau\subseteq[b] with ∣Ai∣=⌈b/2⌉|A_i|=\lceil b/2\rceil, since enlarging an AiA_i can only help. For fixed such sets, a target lies in a branch of AiA_i in every phase ii with probability at least 2−τ2^{-\tau}, independently of the other targets, so the probability that no target does is at most (1−2−τ)bq≤e−bq2−τ(1-2^{-\tau})^{bq}\le e^{-bq2^{-\tau}}. There are fewer than 2bτ2^{b\tau} choices of the AiA_i, so the assignment is evasive with probability at least 1−2bτe−bq2−τ1-2^{b\tau}e^{-bq2^{-\tau}}, which is at least 1−e−bτ1-e^{-b\tau} as soon as q≥2τ2q\ge2\tau^2. With bq≤n/3bq\le n/3 this allows, for large n/Δn/\Delta, τ=log⁡2(n/Δ)−O(log⁡log⁡(n/Δ))\tau=\log_2(n/\Delta)-O(\log\log(n/\Delta)) phases, within O(log⁡log⁡(n/Δ))O(\log\log(n/\Delta)) of the ceiling of Theorem 7.2, against the log⁡c(n/Δ)\log^c(n/\Delta) phases of § 5. What the expander buys is therefore not evasion but an evasive assignment with the column structure that the Gray code order needs, and a deterministic construction.

The role of the hub. The factor Δ\Delta in Theorem 1.1 comes from the hub, the only vertex of large degree. It is joined to b=Θ(Δ)b=\Theta(\Delta) branches and advances by one position per step, so the agent can enter a branch at most once every Θ(n)\Theta(n) steps (Theorem 4.2), and in a phase of Θ(Δn)\Theta(\Delta n) steps it visits fewer than half of the branches (Theorem 4.3). Without a hub, the combination of phases and an evasive assignment still works with two branches, and gives the bound known for snapshots that are paths. Let nn be a power of two, fix a set of n/2n/2 vertices, the middle, and give the other n/2n/2 vertices the n/2n/2 binary codes of length log⁡2(n/2)\log_2(n/2), one each. There are log⁡2(n/2)\log_2(n/2) phases of n/2n/2 steps, and every snapshot of phase ii is the same path: it runs through the n/4n/4 vertices whose code has ii-th bit 0, then through the middle, and then through the other n/4n/4 vertices. The middle cannot be crossed within a phase, so in each phase the agent visits vertices of at most one end, and the vertex whose ii-th bit points, for every ii, to an end not visited in phase ii is never visited; exploration therefore takes more than (n/2)log⁡2(n/2)(n/2)\log_2(n/2) steps. With paths that are fixed during each phase, no evasive assignment gives more than O(nlog⁡n)O(n\log n): the agent can then visit all nn vertices within 2n2n steps, so phases must be shorter than 2n2n, and Theorem 7.2 allows only log⁡2n+O(1)\log_2 n+O(1) of them. The best known lower bound for snapshots that are paths is Ω(nlog⁡n)\Omega(n\log n) [13, 1], and we do not know whether it can be improved.

Several moves per time step. The rotating cycle relies on the agent making one move per step. With two moves per step, as allowed by Erlebach et al. [14], an agent on the gate gj,u(t)g_{j,u}(t) at the start of step tt can pass through the hub into any other branch within that step, so it need never end a step behind the hub, and the delay of Theorem 4.1 disappears. From gj,1g_{j,1} the agent can walk to the end of the target path of branch jj and back in p+q−1p+q-1 steps, wait fewer than pp steps until the hub lies in S1S_1, and pass to gj+1,1g_{j+1,1}; the bb branches thus take fewer than b(q+2p)<n/2b(q+2p)<n/2 steps by Theorem 6.1. From any start vertex the agent reaches some gj,1g_{j,1} within O(k)O(k) steps and, waiting there for the next phase if fewer than n/2n/2 steps of the current one remain, visits every gate and every target within a single phase, since L>n/2L>n/2. The cycle vertices take O(k)O(k) further steps, so the temporal graph of Theorem 1.1 is explored in O(n)O(n) steps. We do not know whether any lower bound with a linear dependence on the degree survives two moves per step. The Ω(nlog⁡n)\Omega(n\log n) lower bound of [13] for planar underlying graphs of maximum degree four, which has no such dependence, does survive: Erlebach et al. [14 Corollary 5.2] show that it holds for any constant number of moves per step.

Open questions

Theorem 1.1 answers Problem 3.1 of [9] positively, but the quantitative picture is still incomplete. For always-connected temporal graphs on nn vertices with underlying maximum degree at most Δ\Delta, the largest exploration time lies between our Ω(n(1+log⁡(n/Δ)))\Omega(n(1+\log(n/\Delta))) and the O(min⁡{n2,n3/2Δlog⁡n})O(\min\{n^2,n^{3/2}\sqrt{\Delta\log n}\}) that follows from [25, 9]. The two differ by a polynomial factor whenever Δ\Delta is polynomially smaller than nn, and closing this gap is the main question, open even for constant degree: there the known bounds are Ω(nlog⁡n)\Omega(n\log n) [13, 1] and O(n3/2log⁡n)O(n^{3/2}\sqrt{\log n}) [9], and our bound does not improve the lower one. Nor can our technique, as it stands, close the gap from below: the analysis is tight for the graphs we build (Theorem 7.1), and no choice of expander or of assignment makes the scheme give more than the bound of Theorem 1.1 (see the discussion after Theorem 7.2).

Finally, two further questions concern the variants of § 7: whether snapshots that are paths allow a lower bound beyond Ω(nlog⁡n)\Omega(n \log n), and whether a lower bound with a linear dependence on the degree survives two moves per step.

Use of AI tools

Large language models (ChatGPT and Claude) were used as research assistants throughout this work, interactively and under our direction: in developing and checking the arguments, in writing and revising the text, in producing the figures, and in writing code to test the construction. In particular, the models suggested using Alon’s explicit expanders, along with a Gray code order of the targets, to keep the underlying degree bounded. Every statement and every proof has been verified by us, and we take full responsibility for the paper’s content.

References

  1. [1]Duncan Adamson, Vladimir V. Gusev, Dmitriy Malyshev, and Viktor Zamaraev. Faster Exploration of Some Temporal Graphs. In James Aspnes and Othon Michail, editors, 1st Symposium on Algorithmic Foundations of Dynamic Networks (SAND 2022), volume 221 of Leibniz International Proceedings in Informatics (LIPIcs), pages 5:1–5:10, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.DOI
  2. [2]Duncan Adamson and Paul G Spirakis. Brief Announcement: Exploration of Always S-Connected Temporal Graphs. In George B. Mertzios and Andréa W. Richa, editors, 5th Symposium on Algorithmic Foundations of Dynamic Networks (SAND 2026), volume 373 of Leibniz International Proceedings in Informatics (LIPIcs), pages 20:1–20:6, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.DOI
  3. [3]Eleni C. Akrida, George B. Mertzios, Paul G. Spirakis, and Christoforos Raptopoulos. The temporal explorer who returns to the base. Journal of Computer and System Sciences, 120:179–193, 2021.
  4. [4]Noga Alon. Explicit expanders of every degree and size. Comb., 41(4):447–463, 2021.arxiv.org/abs/2003.11673
  5. [5]Emmanuel Arrighi, Fedor V. Fomin, Petr A. Golovach, and Petra Wolf. Kernelizing temporal exploration problems. In Neeldhara Misra and Magnus Wahlström, editors, 18th International Symposium on Parameterized and Exact Computation, IPEC 2023, Amsterdam, The Netherlands, September 6-8, 2023, volume 285 of LIPIcs, pages 1:1–1:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023.arxiv.org/abs/2302.10110
  6. [6]Kamran Ayoubi and Lata Narayanan. Restless exploration and token dissemination in vertex-permuted temporal graphs. In Kitty Meeks and Christian Scheideler, editors, 4th Symposium on Algorithmic Foundations of Dynamic Networks, SAND 2025, Liverpool, UK, June 9-11, 2025, volume 330 of LIPIcs, pages 12:1–12:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025.DOI
  7. [7]Samuel Baguley, Andreas Göbel, Nicolas Klodt, George Skretas, John Sylvester, and Viktor Zamaraev. Temporal exploration of random spanning tree models. In Kasper Green Larsen and Barna Saha, editors, Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026, Vancouver, BC, Canada, January 11-14, 2026, pages 2876–2887. SIAM, 2026.arxiv.org/abs/2508.03361
  8. [8]Stefan Baley, Eric Sanlaville, and Antoine Toullalan. The shortest temporal exploration problem. Theor. Comput. Sci., 1084:116190, 2026.
  9. [9]Paul Bastide, Carla Groenland, Lukas Michel, and Clément Rambaud. Improved exploration of temporal graphs. CoRR, abs/2511.22604, 2025.arxiv.org/abs/2511.22604
  10. [10]Thomas Bellitto, Cyril Conchon-Kerjan, and Bruno Escoffier. Restless exploration of periodic temporal graphs. In David Doty and Paul G. Spirakis, editors, 2nd Symposium on Algorithmic Foundations of Dynamic Networks, SAND 2023, Pisa, Italy, June 19-21, 2023, volume 257 of LIPIcs, pages 13:1–13:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023.DOI
  11. [11]Benjamin Merlin Bumpus and Kitty Meeks. Edge exploration of temporal graphs. Algorithmica, 85(3):688–716, 2023.
  12. [12]Arnaud Casteigts, Paola Flocchini, Walter Quattrociocchi, and Nicola Santoro. Time-varying graphs and dynamic networks. Int. J. Parallel Emergent Distributed Syst., 27(5):387–408, 2012.
  13. [13]Thomas Erlebach, Michael Hoffmann, and Frank Kammer. On temporal graph exploration. J. Comput. Syst. Sci., 119:1–18, 2021.
  14. [14]Thomas Erlebach, Frank Kammer, Kelin Luo, Andrej Sajenko, and Jakob T. Spooner. Two moves per time step make a difference. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, Patras, Greece, July 9-12, 2019, volume 132 of LIPIcs, pages 141:1–141:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019.DOI
  15. [15]Thomas Erlebach and Jakob T. Spooner. Faster exploration of degree-bounded temporal graphs. In Igor Potapov, Paul G. Spirakis, and James Worrell, editors, 43rd International Symposium on Mathematical Foundations of Computer Science, MFCS 2018, Liverpool, UK, August 27-31, 2018, volume 117 of LIPIcs, pages 36:1–36:13. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2018.
  16. [16]Thomas Erlebach and Jakob T. Spooner. Non-strict temporal exploration. In Andréa Werneck Richa and Christian Scheideler, editors, Structural Information and Communication Complexity - 27th International Colloquium, SIROCCO 2020, Paderborn, Germany, June 29 - July 1, 2020, Proceedings, volume 12156 of Lecture Notes in Computer Science, pages 129–145. Springer, 2020.DOI
  17. [17]Thomas Erlebach and Jakob T. Spooner. Exploration of k-edge-deficient temporal graphs. Acta Informatica, 59(4):387–407, 2022.
  18. [18]Thomas Erlebach and Jakob T. Spooner. Parameterised temporal exploration problems. J. Comput. Syst. Sci., 135:73–88, 2023.DOI
  19. [19]Petter Holme. Temporal networks. In Reda Alhajj and Jon G. Rokne, editors, Encyclopedia of Social Network Analysis and Mining, 2nd Edition. Springer, 2018.
  20. [20]Shlomo Hoory, Nathan Linial, and Avi Wigderson. Expander graphs and their applications. Bull. Amer. Math. Soc., 43(04):439–562, August 2006.DOI
  21. [21]Donald E. Knuth. The Art of Computer Programming: Combinatorial Algorithms, Part 1. Addison-Wesley Professional, 1st edition, 2011.
  22. [22]Ivan Lahtin and Viktor Zamaraev. Exploration of k-edge-deficient temporal graphs in linear time. CoRR, abs/2605.15833, 2026.arxiv.org/abs/2605.15833
  23. [23]László Lovász and Michael D. Plummer. Matching Theory, volume 29 of Annals of Discrete Mathematics / North-Holland Mathematics Studies. Akadémiai Kiadó / North-Holland, Budapest / Amsterdam, 1986. Ristampato nel 2009 dalla American Mathematical Society (AMS Chelsea Publishing, ISBN 978-0-8218-4741-7).
  24. [24]Othon Michail. An introduction to temporal graphs: An algorithmic perspective. Internet Math., 12(4):239–280, 2016.
  25. [25]Othon Michail and Paul G. Spirakis. Traveling salesman problems in temporal graphs. Theor. Comput. Sci., 634:1–23, 2016.
  26. [26]Carla Savage. A survey of combinatorial gray codes. SIAM Review, 39(4):605–629, 1997.DOI

Paper details

vlnc:W_agueegbt
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT, Claude

View statement
Looking for related papers…
Contents