Manuscript Offprint
arXiv:2610.38998How Hard Is It to Compute Cover Time?
Abstract
It is #P-hard. Even for connected simple undirected unweighted graphs, deciding whether an expected random-walk cover time is at most a given rational threshold is #P-hard under polynomial-time Turing reductions, both from a specified starting vertex and when maximized over starting vertices. Both families have a universal vertex, called the hub, and diameter two. Deleting the hub leaves a planar bipartite graph, and every non-hub vertex has degree at most five. A shared construction encodes an Euler-tour count in rare covering walks. For specified starts, a number of fractional bits linear in the queried graph's vertex count suffices for recovery. For the maximum-start problem, a fixed cube attachment makes the maximizing starts known, and one interpolation of expected cover times recovers the count. Both reductions use polynomial-size graphs and polynomial-bit threshold queries. For general graphs, both comparison problems can be solved in polynomial time with access to an NP oracle.
1 Introduction
For a finite connected graph, the cover time is the first time a random walk has visited every vertex. Exact expectations can be obtained by expanding the state space to record the current vertex and the visited set; this gives exact algorithms with exponential running time, including the approach of Bui and Sohier [6]. Rational transition probabilities give rational expected cover times in the finite irreducible setting [15].
Approximation admits more efficient algorithms. Feige and Rabinovich give a deterministic polynomial-time polylogarithmic approximation from any specified starting vertex [8]. Ding, Lee and Peres give a deterministic polynomial-time constant-factor approximation to the maximum expected cover time over starting vertices [7]. We ask about exact comparison with a rational threshold, where the threshold may distinguish exponentially small additive differences.
We define the decision problem COVER-TIME by
Here is a connected simple undirected unweighted graph, is its specified starting vertex, and is a binary-encoded rational threshold. The walk chooses a neighbor uniformly. Its random cover time is
Thus is the expected cover time from , a fixed number for each graph and starting vertex, whereas varies between runs. The input lists each vertex together with its neighbors. A threshold is a pair of binary integers with positive denominator. The starting vertex is visited at time zero and every vertex is a cover target; on a one-vertex input the cover time is zero. Throughout,
COVER-TIME denotes this decision problem, while “cover time” in ordinary prose denotes the random time or its expectation. We also define
The maximum-start language has the same graph and threshold encoding.
Theorem 1. COVER-TIME is #P-hard under polynomial-time Turing reductions.
The hardness holds even for graphs with a universal vertex , called the hub, and diameter two. Every non-hub vertex has degree at most five. Deleting (and its incident edges) leaves a planar bipartite graph.
Theorem 2. MAX-COVER-TIME is #P-hard under polynomial-time Turing reductions.
The hardness holds even for graphs with a universal vertex , called the hub, and diameter two. Every non-hub vertex has degree at most five. Deleting (and its incident edges) leaves a planar bipartite graph.
We will show that a polynomial-time algorithm with access to either oracle can compute the exact number of Euler tours of a connected 4-regular graph. Brightwell and Winkler proved #P-completeness for general graphs in 2005 [5]. Ge and Štefanković subsequently established #P-completeness even for planar 4-regular graphs in 2012 [9].
The specified-start reduction uses one constructed graph per planar 4-regular source instance. The maximum-start reduction adds a fixed helper and marker leaves; its query graphs retain all these graph restrictions.
In 2022, Georgakopoulos et al. described the computation of ordinary cover time as an open question, while noting the known constant-factor approximation [10, p. 75]. Their definition maximizes over starting vertices. Theorem 2 establishes #P-hardness of exact threshold comparison for that convention.
There is also a complementary upper bound for general graphs.
Theorem 3. COVER-TIME and MAX-COVER-TIME belong to , and hence to the counting hierarchy.
Hitting-set inclusion-exclusion expresses each expected cover time as an exponentially indexed sum of polynomial-bit rationals. Exact comparison of such a sum gives Theorem 3; its complete proof is in Appendix C. Here denotes deterministic polynomial time with an oracle.
The same count-recovery argument also establishes hardness of binary truncation.
Corollary 4 (Hardness of binary truncation). For , retaining the integer part and the first bits after the binary point of the expected cover time—that is, computing
is #P-hard under polynomial-time Turing reductions on the same graph class of Theorem 1. On this class its output has only bits. More generally, the reduction works with rational approximations of absolute error at most .
Here the approximation oracle returns rationals of polynomial encoding length. The accuracy requires only a linear number of fractional bits.
Proof structure. We reduce from counting Euler tours of a connected planar 4-regular source graph . Figure 1 shows the construction sequence. Here is the anchored graph, is the subdivided graph, and is the specified-start cover-time instance.

(a) Source : mark one of the four edges

(b) Anchored : replace by and
Figure 1: From an Euler circuit to an anchored Euler trail. The source has two vertices and four distinct parallel edges. Delete only the marked edge and attach new leaves a, b to its endpoints; the other three edges remain. Cutting a tour at opens it into a trail between the anchors, and restoring closes the trail.
We combine ordinary cover-time expectations to isolate walks that cover the subdivided graph before reaching the hub. Each walk is weighted by its probability and the expected time from its final vertex to the hub. The Euler trails contribute the Euler-tour count multiplied by an exactly computable coefficient; we call this an Euler contribution. A subdivided edge can have all its internal vertices visited from its two ends without ever being traversed end to end. Our principal estimate accounts for these possibilities and bounds their total weighted mass. Choosing the subdivision length to be a large enough multiple of the number of edges makes the error, after normalization, less than 1/16. We compute the exact normalizing coefficient by rational linear algebra. Approximating the expected cover times accurately enough then lets us recover the integer Euler-tour count by rounding.
For maximum-start comparison, we attach a cube whose vertices have expected times to hit the hub exceeding those of every other vertex. Marker leaves make these eight vertices the known maximizing starts. A binomial transform of their expected cover times, followed by exactly one interpolation, recovers the contribution of successful walks in the original construction, with each walk's probability multiplied by one less than the expected time from its final vertex to the hub. Exact normalization and rounding recover the same count.
Methodology and verification. Generative AI assisted the research and preparation of this paper, as described in the AI methodology statement at the end.
A companion Lean development verifies both reductions end to end, including the graph constructions, the per-sequence maximum-depth estimate at , the cube-helper specialization, the weighted-walk and discrete-excursion identities, exact count recovery, and polynomial-time binary oracle programs. It also verifies the counting-hierarchy upper bounds. The checked binary programs use adjacency-matrix graph encodings, which are polynomial-time interconvertible with the neighbor-list encoding used here. The hardness implications retain published Euler-tour counting hardness as an explicit hypothesis; the maximum-start program also uses the standard connected-graph cover bound. The reductions for the graph problems compute their exact normalizers internally.
The verification document records the precise scope and dependencies.
Edges of have identities, and a self-loop has two distinct edge ends. We reserve for the edge set and write for the number of Euler Tours. Tours are counted modulo cyclic rotation and reversal, with self-loop incidence directions retained. Equivalently, counts the choices of pairings of the incident half-edges at every vertex for which the edge links and pairing links form one global circuit. There is no quotient by graph automorphisms.
Published hardness and counting conventions. Computing on planar 4-regular sources is #P-hard under polynomial-time Turing reductions [5, 9]. The counting conventions agree as follows.
Brightwell-Winkler count unrooted directed cyclic circuits [5, Section 2], exactly on their simple sources without self-loops: each unoriented circuit has two directions and no starting edge or vertex is chosen.
Ge-Štefanković's reductions use local pairings and unordered valid sets of routes between labeled half-edges [9, Sections 2–3]. Gluing these routes gives precisely our connected pairings, with reversal identified; their bound counts the three pairings at each vertex.
Their Theorems 1 and 2 transfer the hardness to 4-regular and then planar 4-regular instances. Our incidence representation allows self-loops and parallel edges and includes the published source instances; no separate hardness result for sources with self-loops is needed. We apply our reduction separately to each planar 4-regular instance queried by their reduction.
Cutting an edge to obtain anchors. Disconnected sources have no Euler tours and are handled directly. One-vertex sources have constant size and are also handled directly.
Hence assume , and choose any edge with endpoints . The graph has edges. Delete , attach a new leaf to and another new leaf to , and call the anchored graph . If is a self-loop, then and the two distinct leaves attach to the same vertex. Deleting an edge of a connected Eulerian graph preserves connectivity: every edge lies on a cycle. The original vertices of still have degree four, the leaves have degree one, and
Cutting the marked edge link in a connected pairing opens its single circuit into a unique Euler trail from to . Conversely, pairing the arrival and departure incidences of such a trail and restoring that link recovers the connected pairing. These operations are inverse, including for self-loops with their distinct edge ends. Thus
We choose the subdivision (tube) length large enough that the non-Euler contribution cannot affect count recovery. The estimates in Section 7 show that it suffices to take
Subdivide each edge of into a path of edges, with distinct new internal vertices for different edges. Call this graph . A source self-loop becomes a cycle of length ; parallel edges become internally disjoint paths. Thus is simple, even when has self-loops or parallel edges. Since is planar and is even, is also planar and bipartite. It contains the vertices of and new vertices for each of its edges, so
Add a vertex adjacent to every vertex of , forming . This hub makes have diameter two. It also gives the walk a chance to reach from every vertex of . We will compute the weighted contribution of walks that visit every vertex of before first reaching .
| Vertex type | Degree in |
|---|---|
| Original vertex of | 5 |
| Internal tube vertex | 3 |
| Leaf anchor or | 2 |
| Hub |
All vertices are cover targets.


(a) One subdivided edge: five edges, four new vertices
(b) The same hub is adjacent to every vertex of
Figure 2: Subdivision and the universal hub. Replace every edge of by its own tube, then join to every vertex of . The close-up uses illustrative length ; the reduction uses . The overview suppresses the edges within , not its hub connections. A walk traveling along a tube can reach at every step.
Write for the vertex set of . We call each subdivided edge a tube. A tube has two distinct ends, even when both correspond to the same vertex in . A crossing exits through the other end; a return exits through the end where it entered. Deleting an edge, attaching leaves and subdividing preserve planarity, so is planar, including for source self-loops and parallel edges. The nonadjacent anchors ensure that the diameter is exactly two. At the chosen even length , color every vertex in zero and each internal tube vertex by its coordinate parity: this gives a bipartition of , consistently at both endpoints even for self-loop tubes.
3 A residual of expected full cover times
Write for the expected full cover time from . Let be the first time at which the walk on has visited every vertex of , and let be its first hitting time of the hub. Write for the expected time to reach the hub from vertex :
For , the next-step probability of hitting is between and . Thus
All hitting and cover expectations used below are finite, since the graph is finite and connected.
Subtracting the expected cover times below will isolate walks that cover before reaching the hub, weighted by their expected remaining time to reach it. The queried cover times still concern every vertex of , including .
Lemma 5 (Full-cover residual). Define by the identity
Thus can be computed from ordinary cover-time expectations on .
Proof. Write . From , the first step is uniform on , so
Starting at , full coverage occurs at . The strong Markov property at gives
Substitute and cancel the terms.
We now start the walk at a uniformly random vertex of , including all of its subdivision vertices, and stop it at its first visit to . This stopping rule is called “killing the walk at .” Only walks that cover before reaching contribute to . Related reset and killed-walk methods appear in Rivera et al. [12] and Si [14].
4 Exact killed-path probabilities
We first calculate how the walk moves through a single tube before hitting the hub. These probabilities will let us sum over many possible paths without tracking them individually.
Use oriented tube coordinates , treating the two tube ends as distinct even when the tube comes from a self-loop (i.e., both endpoints are the same vertex in ). An internal vertex chooses either path neighbor or the hub with probability . Starting at coordinate , let be the probability of reaching coordinate 0 before either reaching or exiting via the hub. Its first-step equations are
Conditional on stepping from a tube end into the tube, the probabilities of returning through that end and crossing to the other end are and , respectively. The quantities used below are
return probability,
crossing probability, by reflection,
sum of exit probabilities for starting coordinates .
The term includes starting at the specified tube end itself.
Lemma 6 (Tube bounds). Reaching a target coordinate at distance a, before the other stopping boundaries or the hub, has probability at most . In particular,
Fix a tube end and a required depth . For each internal starting point, consider the probability of reaching that depth and then exiting through the specified end before the other end or the hub. The sum of these probabilities over all internal starting points is less than .
Proof. The distance barrier satisfies . The maximum principle for (8) therefore gives the hitting bound on each oriented tube interval, even when its endpoints represent the same vertex of . For the lower crossing bound, the direct path from coordinate to zero takes steps, each of probability , giving . For the second claim, take the specified end as coordinate 0. From starting coordinate , reaching has probability at most , and subsequently reaching 0 has probability at most . Summing over the internal starting points gives
At a vertex of degree in , fix a tube end from which to depart. Let be the probability that the next completed crossing departs through this end before the walk hits the hub. Any number of failed returns may precede it. Summing over that number gives
Here is the probability of stepping into the specified tube end, and is the probability of completing the crossing after that step. The probability of returning to the departure vertex without completing a crossing, summed over all tube ends, is . The coefficient of on the right-hand side, , is at most one.
A self-loop crossing exits through the other end and does not count as a failure.
Finally, choose the starting vertex uniformly from . For either anchor, the probability that the walk starts on that anchor's leaf tube and reaches that anchor before any other vertex of or the hub is .
5 The exact Euler contribution
Definition 7. A successful walk is the walk stopped at its first cover of , on the event . It is Euler-type if and only if every tube is crossed exactly once; all other successful walks are called non-Euler.
The crossing sequence of an Euler-type walk is an Euler trail of . Its endpoints are the two odd-degree vertices , so the first vertex in reached is one anchor and the last is the other. Failed returns are unrestricted. The final leaf is first reached on the last crossing, when coverage of is completed.
The two reductions weight the same successful walks differently. The residual weights each walk by the expected time to reach the hub from its final vertex. For the maximum-start reduction, we subtract one from that weight and define
If coverage finishes at a marker leaf, then , because the next step is necessarily the hub. Its weight is therefore zero. This lets the maximum-start construction isolate the original graph's contribution even after marker leaves have been added.
Lemma 8 (Euler signals). The Euler-tour count satisfies
where is the probability of non-Euler success from a uniform start in S, and
Proof. Each anchored Euler trail departs its initial leaf exactly once and each degree-four vertex in exactly twice. After summing over the possible starting positions and failed returns, the total probability of walks with this crossing sequence is . There are trails in each direction. A walk determines both the first anchor reached and its ordered sequence of tube crossings, so walks corresponding to different directions or trails are disjoint. Their total probability is . Weighting by or at the final vertex therefore gives or , respectively. The remaining successful walks have total probability , with these weights lying in and , respectively, proving both bounds.
6 Not every successful walk yields an Euler trail
A walk can cover a tube from both ends without crossing it, or cross a tube more than once. We must bound the probability of these successful non-Euler walks relative to the crossing coefficient .

(a) Cross the tube

(b) Visit the tube from both ends
Figure 3: Vertex coverage does not force a tube crossing. In the right-hand local pattern, a depth-two return from each end visits all four internal vertices, although the middle edge is never traversed. These visits occur at different times in a longer walk, which reaches the other endpoint through the rest of . Both panels use illustrative length . The uncrossed tube is covered by extra out-and-back travel, which the spatial estimate must account for.
Consider a successful walk stopped at first cover. The initial segment runs from the walk's starting vertex to its first visit to . The terminal segment runs from its last visit to until it finishes covering . Between them, record the complete tube crossings. Before each crossing, the walk may make a sequence of failed returns to its departure vertex. A nonempty terminal segment is preceded by a sequence of failed returns to its starting vertex. An empty terminal segment has no such sequence. Note that exiting a self-loop tube through its other end counts as a crossing, even though both ends correspond to the same vertex in .
Let be the number of crossings, the number of uncrossed tubes, and . For each return sequence and each tube end, take the largest depth reached by a return through that end, or zero if the sequence has none. Let be the sum of these maxima over all sequences and tube ends. These maxima are local to individual sequences, not to the whole walk. For an uncrossed tube, the depth reached at either end is at most the sum of the corresponding local maxima and boundary depths. Covering all internal vertices of an uncrossed tube requires the depths reached from its two ends to sum to at least . Thus
where , are the initial and terminal depths, set to zero when their segment is empty or its tube is crossed. Summing overlapping intervals only enlarges the bound, including when both boundaries use the same tube or a tube is a self-loop.
The anchors control the boundary cost. Let count how many of these two segments are nonempty and lie on tubes that the walk never crosses. Clearly, . If the crossing sequence starts at an anchor, its first crossing must leave through that anchor's leaf tube. If it ends at an anchor, its last crossing must arrive through that leaf tube. Therefore, an initial or terminal segment on an uncrossed tube forces the corresponding endpoint of the crossing sequence to be a vertex other than an anchor. Thus
An internal visit to an anchor enters and leaves its leaf tube, requiring one crossing beyond the first. Adding these to the crossings needed for the crossed tubes gives
This is an endpoint count; it also applies when the walk's endpoints coincide or both anchors attach to the same original vertex.
7 Bounding the non-Euler contribution
We assign depth the weight , where . Appendix A bounds the probability that a failed return reaches depth by a constant times . The choice of lies between three and four: return tails decrease like , while the direct crossing lower bound is . This makes the local weighted sums converge and the cost of an uncrossed tube decay.
One return-sequence bound. At a vertex of degree in , the mass of one failed return is . Sequences of failed returns have total probability . Summing over all finite sequences gives . Multiplying each sequence's probability by therefore defines a probability distribution on these sequences. For a tube end , let be the largest depth reached by a return through that end, or zero if there is none. If the returns through have depths , then
This replaces a maximum over an arbitrarily long sequence by a sum over individual returns. Multiplying over the at most four tube ends selects at most one return per end, hence at most four distinct returns.
There are at most 4! orders for these selected returns. Between them, sum over all ordinary return sequences. Appendix A carries out these sums and gives
No independence of the maxima is used. The bound applies to every tube end, including those at anchors, without examining which tubes are crossed later. A sequence of failed returns followed by a specified crossing has total weighted mass at most . At each crossing there are at most four choices of tube end through which the crossing begins. Therefore, summing over all sequences of crossings from a fixed vertex of gives total weighted mass at most
Coverage and the boundaries. For each walk, the depth inequality from the preceding section gives
If all uncrossed tubes are covered, their total depth is at least , so the right-hand side is at least one. Otherwise, the indicator on the left is zero and the inequality still holds. Thus we can bound the probability of coverage by summing the exponentially weighted return sequences and boundary segments, with the common factor . The same estimate works for either boundary: its exact-depth- mass is at most . Therefore each boundary on an uncrossed tube has total weighted mass at most
For a boundary on a crossed tube the constant suffices without the growing factor; empty boundaries have mass one. The bound supplies one additional crossing for each boundary segment on an uncrossed tube. Its factor offsets that segment's depth factor , since
Only the length index in the crossing sum is shifted; no shorter walk needs to be constructed.
Each uncrossed tube reduces the minimum crossing count from by one, contributing a factor , while the coverage bound contributes . Their product is
Both the crossing sum and the sum over are geometric. If , every tube is crossed, so all vertices of have been visited by the end of the last crossing. A walk stopped at first coverage therefore has an empty terminal segment. Since it is non-Euler, it has at least crossings, and we sum the geometric crossing bound over .
Lemma 9 (Shared normalized error). For , both recovery signals have normalized error below :
(11)
Proof. Since , both errors are at most . Appendix A completes the bound on the total probability of successful non-Euler walks and gives
The first three binomial terms give . At and , the right side is less than .
8 Computing the exact Euler coefficient
Count recovery divides by , or by . These two denominators arise from weighting the Euler walks by and , respectively. Since , both weights are at least one, so both denominators are at least . A single lower bound on therefore controls how much either division can amplify numerical error. Note that we also need to compute the denominators exactly.
Lemma 10 (Exact normalizer arithmetic). The rational numbers have -bit numerators and denominators, are computable in polynomial bit time, and satisfy
(12)
Proof. Solve (8) for the tube probabilities . To compute and , solve the first-step equations for at every vertex . Each step takes one unit of time, and , so
where means that y is a neighbor of x in S. Equivalently,
Both linear systems are strictly diagonally dominant and hence nonsingular. Their coefficients and right-hand sides are integers. Each row has only a constant number of nonzero entries, all bounded by a constant, including the right-hand side. Hadamard's inequality therefore bounds the determinants appearing in Cramer's rule by for the tube system and for the hitting-time system. Thus the rational solutions have -bit and -bit numerators and denominators, respectively. Fraction-free elimination computes these solutions in polynomial bit time [4, Sections I and II.A.2]. The tube probabilities share a common determinant denominator, so their sum U also has an -bit representation. Each crossing factor has bits, so the E factors contribute bits, giving the same bound for .
For the lower bound, , , and give
where the second inequality uses and . To obtain , it is enough to show
Since and , we have
Using , , and , we obtain
The last inequality follows from the proof of Lemma 9. Consequently,
9 Recovering the count from approximate cover times
The normalized non-Euler error is below 1/16, leaving room to approximate the expected cover times before rounding. We first bound their range, then choose an accuracy that keeps the total error below 1/2.
Lemma 11 (Bounding cover and return times). On a connected simple unweighted graph with vertices and edges, every expected cover-and-return time, returning to its starting vertex, is at most . The same bound holds for expected cover times and conditional expected remaining cover times. In particular, for the constructed graph and , .
Proof. Choose a spanning tree and list the vertices encountered in a depth-first tour, starting and ending at the walk's starting vertex. Run the random walk until it reaches each successive target in this list. By the strong Markov property, the expected total time is the sum of the expected hitting times between successive targets. Each tree edge appears once in each direction, and the sum of its two hitting times is its commute time, which is at most [1]. There are such tree edges, giving the bound . This procedure visits every vertex and returns to the starting vertex. From any current vertex, the same bound applies to the remaining cover time. For , , giving . The construction has . At , ; the inequality persists since for .
Proposition 12 (Numerical count recovery). Use (4) and put , . Suppose rational numbers , one for every vertex of , satisfy
Define
Then
Nearest-integer recovery only requires an error strictly below 1/2.
Proof. The residual is a difference of an average and one expected cover time, so ; the errors may have either sign. Since , the normalized approximation error is at most by Lemma 10. Together with (11),
Nearest-integer rounding therefore recovers .
Proof of Theorem 1. For each planar source instance construct using (4), and compute by Lemma 10. Put and . For each starting vertex, begin with the bracket supplied by Lemma 11. Query COVER-TIME at its midpoint: a yes answer replaces the upper endpoint, and a no answer replaces the lower endpoint. The true expected cover time stays in the bracket, including at equality. After exactly queries, return the upper endpoint. After these halvings, the bracket will have width
All queried midpoints and returned endpoints are multiples of 1/D. Thus each has error at most 1/D, and Proposition 12 returns the exact count.
There are starting vertices and queries per vertex, hence exactly comparison queries on this one graph. Using denominator , all endpoint and midpoint numerators are at most , hence have at most bits; has bits. The returned approximations share this denominator. The exact coefficient, residual, division and floor then use polynomially many bits and standard polynomial-time integer arithmetic. Since and , the graph has
Its labeled adjacency lists can be constructed in polynomial time.
This is a polynomial-time Turing reduction from computing the Euler-tour count to COVER-TIME, using only graphs satisfying the restrictions in Theorem 1. Since computing the Euler-tour count is #P-hard, this proves Theorem 1.
Proof of Corollary 4. For each vertex of , obtain , the integer encoding its expected cover time truncated after binary fractional places, and set . These approximations have error less than , so Proposition 12 recovers from them. Thus one truncation value per vertex suffices to compute the Euler-tour count. Lemma 11 gives , so each truncation value has at most bits.
The same recovery works with any rational approximations of error at most and polynomial encoding length. Their denominators need not agree: forming the average, subtracting the hub value, dividing by , and rounding can all be performed exactly in polynomial time with polynomially many bits.
10 Making the maximizing start known
For maximum-start comparison, we attach a cube and join every cube vertex to the hub. The expected time to reach the hub from a cube vertex is greater than from any vertex of . However, a walk starting in the cube may visit some cube vertices before reaching the hub, reducing the time subsequently needed for complete coverage. Adding sufficiently many leaf markers makes this benefit small enough that the cube vertices become the maximizing starts.

Figure 4: The cube helper in . The hub is joined to every vertex of , every cube vertex (gray edges), and every marker . For sufficiently many markers, the maximizing starts are exactly the eight cube vertices, with denoting an arbitrary cube vertex. Edges within and most hub-to- edges are suppressed. Crossing lines are not vertices. Note that the cube graph is planar; we draw it in perspective here for visual clarity. If the hub is removed, the remaining graph is both planar and bipartite.
Write . Add eight vertices indexed by three-bit strings, joining two when they differ in one bit, and join all eight to . Call this cube the helper. Add leaf markers at , and call the resulting graph . The cube has twelve edges and eight connections to the hub; each marker adds one vertex and one edge. Hence
Fix any helper vertex, call it c. Figure 4 shows the attachment. The hub remains universal. If it is removed, the remaining graph consists of S, the planar bipartite cube, and isolated markers.
Complete excursions. For a finite connected unweighted graph with edges, let be a vertex of degree . A complete excursion from starts at and ends at its first return to after at least one step. Successive complete excursions are independent and have expected duration by the return-time identity [1]. We apply this identity at the hub.
Let be the index of the excursion during which the last target is first visited. Counting that excursion through its return to gives the cover-and-return time. Whether excursion is needed depends only on the earlier complete paths, so Wald's identity gives
Each excursion takes at least one step, so is at most the cover-and-return time. Lemma 11 therefore gives . Subtracting the expected time from the first-cover vertex to the hub gives the expected cover time. The same argument applies to the remaining cover time after the walk first reaches , conditional on the vertices already visited.
Lemma 13 (Known maximizing starts). Put . For every , the maximizing vertices of are exactly its eight helper vertices. From any such start, the expected time to first reach is four. The walk before that first hit covers the helper with probability , a fixed computable rational with . It visits no original nonhub vertex or marker.
Proof. First we show that the expected time to reach the hub from any vertex of in is at most . Put . If , the desired bound already holds. Otherwise, the maximum cannot occur at an internal tube vertex or an anchor: their first-step equations would give or , respectively, contradicting . The maximum therefore occurs at a vertex of degree four in . Its internal neighbors have expected hitting times at most . Hence
Every helper vertex hits the hub with probability 1/4 per step, so its expected time to hit the hub is four. The expected hitting times from vertices of S are unchanged; from each marker, the expected time is one.
Write and fix a cube vertex as the target. We obtain a lower bound on the probability that an excursion hits the target by counting three disjoint possibilities:
-
The excursion first steps directly to the target, with probability .
-
It first steps to one of the target's three cube neighbors and then moves to the target, with total probability .
-
It first steps to one of the three cube vertices at distance two from the target, then follows one of the two shortest paths from that vertex to the target. These six paths have total probability .
Summing these probabilities gives
Each marker is visited with probability , in an excursion that cannot also hit the cube.
Fix an unvisited cube target. With markers still unseen, an excursion visits a new marker with probability and hits the target with probability greater than , by the three disjoint cases above. These events are disjoint. Conditional on an excursion doing one of the two, the probability that it visits a new marker is therefore at most
Hence
For each cube vertex, the probability that it is still unvisited when the final marker excursion returns is at most . Conditional on its remaining unvisited, each subsequent excursion hits it with probability greater than , so its expected waiting time is at most excursions. The number of excursions needed to visit all remaining cube vertices is at most the sum of their individual waiting times. Summing over the eight vertices gives
Coverage ignoring the helper finishes no earlier than marker coverage, so this also bounds the excursion count saved by precovering the helper. Since and , Wald's identity bounds the reduction in expected cover-and-return time by
Compare the same future walk from the hub with and without requiring the helper vertices to be visited. We have bounded the expected cover-and-return time saved by removing that requirement. The expected cover time saved is no greater: if coverage of the helper finishes last, the expected return time from the final helper vertex is four, at least as large as the expected return time from any non-helper vertex. Otherwise, both coverage requirements finish at the same vertex. This argument assumes neither independent helper hits nor independence of excursion lengths and coverage events.
Starting at a helper vertex adds four expected steps before the first visit to . Only helper vertices can be visited before that visit, so the resulting reduction in expected remaining cover time is less than 1/7. Therefore its expected cover time exceeds that of a hub start by more than . For every other starting vertex, the excess over a hub start is at most its expected time to reach the hub. Thus
Cube automorphisms fix the rest of the graph and exchange all helper vertices, so their expected cover times agree and .
Following a fixed seven-step Hamiltonian path in the cube starting at has probability , so . To compute , let be the probability of covering the cube before hitting , from helper vertex with helper set already visited. It is one when is the whole cube; otherwise
where neighbors are taken in the cube. The missing probability 1/4 hits z and fails. Multiplying by four gives a strictly diagonally dominant integer system on this fixed visited-set state space. Exact rational elimination [4] therefore gives a fixed rational constant; the state space has constant size. The time taken to first reach the hub and the set of helper vertices visited before then need not be independent.
11 Extracting the Euler signal from maximum expected cover times
Keep J markers permanently and use further markers for the oracle queries. Put
We seek , the original graph's signal weighted by h-1 at the final vertex.
Start at , stop at its first hit of , and let be the helper vertices already visited. Call complete excursions from in base excursions. From that point, let count these excursions through coverage of the remaining targets, and let be the vertex at which coverage is first completed. Conditional on the vertices visited before reaching , the walk continues from by the strong Markov property. Expectations below average over both this visited set and the subsequent walk.
Write for the expected time to hit in . If coverage finishes at a marker, then , so its weight is zero. We record the number of excursions using two generating functions:
In , the coefficient of is the probability that . In , the same probability is weighted by at the vertex where coverage finishes. Each of the mandatory markers needs its own excursion, and visiting needs at least one more. Hence
Equality requires all helper vertices to have been visited before the first visit to . Otherwise a further excursion is needed: an excursion cannot move between the helper, a marker, and before returning to .
We recover from the coefficient of in , written . This notation denotes coefficient extraction, not multiplication. It records the weighted contribution from walks using exactly excursions. An excursion that completes coverage at a marker contributes zero because . Thus only orders in which the excursion into comes last contribute. There are orders in which to visit the markers, and each marker excursion starts with probability . The final excursion first steps into with probability . Conditional on that step, its starting vertex is uniform on , so its weighted contribution is : the expected times to hit the hub from vertices of are unchanged. The helper must already have been covered before the first visit to the hub, an event of probability . Consequently
(15)
We next relate these generating functions to maximum expected cover times, which the oracle lets us approximate.
Lemma 14 (Marker transform of expected cover times). For , put . Then
(16)
Proof. Consider a walk on starting at . After its first visit to , omitting excursions to the additional markers leaves the base excursions in . Fix a set of additional markers, and consider only base excursions and excursions to those markers. The next relevant launch chooses among neighbors in and these markers, so
Conditional on the base excursions and the walk before its first visit to , avoiding those markers through all base excursions therefore has probability . Thus the avoidance probability and its joint terminal weight are and ; no independence of and is used.
Each excursion is a base excursion with probability . Thus obtaining the base excursions requires excursions in expectation. Each complete excursion has mean duration , so Wald's identity gives expected total time
A fixed set of additional markers is still unseen at base completion with probability . Conditional on that event, the first excursion visiting the set occurs after excursions in expectation. Counting through that excursion's return to the hub gives expected additional time
Inclusion-exclusion over these sets therefore gives the terms for collecting the remaining markers.
To pass from cover-and-return time to cover time, subtract the expected return time after coverage finishes. This is one if the last vertex is a new marker, and if coverage finishes during the base walk. The extra correction is exactly the weight recorded by . Inclusion-exclusion over the new markers already seen at base completion gives the corresponding terms.
Combining these contributions, the expected cover time is the sum of
and the following term, which is affine in j:
Its constant and linear parts both vanish under the binomial transform, since for ,
Using , the terms independent of the factor cancel except when . The terms containing that factor survive only for and , with coefficients and , respectively. Substituting these surviving terms gives (16).
The oracle lets us approximate the binomial sums in (16) at the positive points . To recover , we construct a function whose value at zero is and whose values at are known multiples of those sums. We can then recover its value at zero by interpolation. Since , both and vanish to order at least . To rewrite the binomial transform as a function of , use
Let be the normalization factor from (15). For , define
Since and vanish to order at least , the expression has an analytic extension to ; we define by that extension. Then . The two terms have equal and opposite coefficients of . After division by , their contributions at zero therefore cancel. Equation (15) gives
Appendix B proves that this analytic function can be interpolated at positive to error , where , using maximum expected cover times of -vertex graphs, each to bits of accuracy. The exact rational coefficients used to combine these approximations have bits.
12 Completing the maximum-start reduction
Proof of Theorem 2. Construct and compute as before. Lemma 9 already bounds the normalized non-Euler contribution:
Use the MAX-COVER-TIME oracle and the extraction from Section 11 to compute a rational with , where . Lemma 10 and bound the normalized approximation error by . Thus
Nearest-integer recovery only requires error strictly below . Appendix B supplies polynomial-bit arithmetic and threshold queries.
Every query graph is with . If the hub is removed, the remaining graph consists of , a disjoint cube, and isolated markers, so it is both planar and bipartite. Cube vertices have degree four and markers degree one; original nonhub degrees are unchanged. The hub is universal, so the diameter is at most two. The original anchors remain nonadjacent, so the diameter is exactly two. There are vertices and edges per query.
This is a polynomial-time Turing reduction from computing the Euler-tour count to MAX-COVER-TIME, using only graphs satisfying the restrictions in Theorem 2. Since computing the Euler-tour count is #P-hard, this proves Theorem 2.
13 Scope and further questions
Theorems 1–3 give the oracle bounds
The left inclusions use exact #P-count recovery to answer PP queries; the right inclusions use deterministic oracle composition. This leaves a gap between the bounds and does not establish matching completeness or hardness under many-one reductions. The reduction recovers a count from yes/no answers without printing an exact cover-time fraction. The binary-truncation result concerns exponentially fine additive accuracy.
On connected unweighted graphs, simulation estimates a specified-start expected cover time to additive error in randomized time polynomial in the graph size and . For a graph with at least two vertices, Lemma 11 bounds every conditional expected remaining cover time by . Markov's inequality in blocks of length gives . Truncating each walk at therefore loses at most in expectation. Averaging independent truncated walks and applying Chebyshev's inequality gives additive error at most with failure probability at most . The one-vertex case is immediate. Thus inverse-polynomial accuracy is efficiently attainable by simulation; the exponentially fine precision used here lies outside that running-time guarantee.
The hub has unbounded degree. Although is both planar and bipartite, has triangles, and the theorem does not impose planarity on . Hardness with every degree bounded and hardness on trees remain natural questions. Both reductions use -vertex query graphs. The subdivision constant makes the aggregate error smaller than the fixed recovery margin.
Related work. Aldous and Fill discuss numerical cover-time calculation with fixed relative accuracy [1, Section 6.8.3]. The distinction between approximation and exact comparison remains essential. Exact generating-function and moment methods appear in Ball, Dunham and Hirschowitz [3] and Sericola [13].
Rivera et al. define a weighted geometric-reset graph whose added vertex resets the walk according to the original stationary distribution [12, Definition 3.7]. Here the universal vertex is unweighted and adjacent to every vertex of ; stopping at its first visit gives the auxiliary killed walk used in the proof. Si's exact fixed-start edge-addition formulas use killed Green matrices and target-set inclusion-exclusion [14]. These provide related exact-computation tools; our reduction uses the cover-before-hub residual to extract an Euler-tour count.
A Maximum-depth estimate and numerical certificate
Here and .
One tube end and one sequence. At a vertex of degree in , a return through a specified tube end reaching depth has mass at most : include the departure probability and apply the half-distance bound on the outward and returning paths. For tube end , let be its weighted excess, the sum of return weights multiplied by . The tail-sum identity gives
Write for the total probability of a failed return. Multiplying each return sequence's probability by defines a probability distribution on these sequences. In the expansion selecting distinct tube ends, each chronological order has unrestricted sequences of failed returns. Summing the gaps and applying the normalization leaves the product of over the selected ends. There are orders; returns in the gaps may use any tube end, including those selected.
At degree four, and , so
At an anchor, and , giving a moment at most . Multiplying these moment bounds by the ordinary specified-crossing factor gives the bound for a sequence of failed returns followed by a specified crossing. The selected returns are distinct because they enter through distinct tube ends; no independence of their maxima is assumed.
Initial and terminal segments. The initial exact-depth- mass is at most its tail bound . For a nonempty terminal segment at degree four, the ordinary resummed kernel is at most . Its preceding sequence's moment is at most . At an anchor, the corresponding bounds are and 8. Thus bounds either boundary, including the weighted sequence before a terminal segment. Empty boundaries have mass one; an empty terminal segment has no return sequence. For an initial or terminal segment on an uncrossed tube, summing its weighted depth gives
An initial boundary on a crossed tube has mass at most three. Even if an enlarged family admits a nonempty terminal segment on a crossed tube, its depth sum is at most . Hence is a common constant without a growing factor when the boundary is not on an uncrossed tube.
Actual walks and enlarged families. Fix an initial tube end or vertex in , a crossing sequence, and an empty terminal segment or a specified terminal tube end. Sum all failed-return sequences before crossings and before a nonempty final segment. Initial paths first exit at their specified tube end in ; terminal paths stop on first attaining their specified depth. These countable families cover the actual successful non-Euler walks stopped at first coverage, although a walk in an enlarged family may complete coverage earlier and families may overlap. Summing the weights of these enlarged families gives an upper bound on the probability of the actual successful walks. Each starting vertex contributes a factor . Factorization follows from unconditioned Markov path weights and nonnegative summation, not conditioning on coverage. The two ends of a self-loop tube remain distinct. The local moment bound applies uniformly to all tube ends; only the geometric coverage and endpoint arguments use which tubes the crossing sequence leaves uncrossed.
Summing the two cases. There are at most 3E choices of initial vertex or tube end and five terminal choices: one for each of at most four tube ends, or an empty terminal segment. For , each initial or terminal segment on an uncrossed tube has an available crossing factor to absorb its growth. Reindexing the length sum by leaves at most . There are four possibilities: neither boundary lies on an uncrossed tube, only the initial one does, only the terminal one does, or both do. Their respective costs sum to
This sums four cases; it does not assume independence of the boundaries. Using the two boundary constants, the total mass for a fixed is at most
At , , so the crossing sum is at most twice its first term. Since , multiplication by and summation over gives at most
Here the direct-path bound bounds the ratio by , whose geometric sum is at most .
If , first cover ends at the final vertex in , so the terminal segment is empty. A non-Euler crossing sequence has . The crossing bound and initial mass at most give normalized error at most
Adding the two cases yields
For the last inequality, , , and for . Finally, supplies the numerical certificate used in the main proof.
B Interpolation and maximum-query precision
For a real power series , put .
Lemma 15 (Interpolation near zero). Suppose . Choose any distinct nodes , where . The polynomial of degree at most satisfying for every obeys
Proof. By the binomial theorem, for . Uniform convergence of the derivative series on gives
Subtract and a multiple of from , choosing the multiple to make the result vanish at zero as well as the nodes. Repeated Rolle's theorem gives for some . Consequently,
A bounded analytic signal. The quotients and have nonnegative coefficients summing to one and at most five, respectively. We bound the three terms of in (17) at radius 1/4, then multiply their sum by . Since , the first term has norm less than four.
For the second term, the factor has nonnegative coefficients and norm at most 3/2. The composed argument has nonnegative coefficients and value at most 1/3 there. Since , evaluation of the nonnegative series gives
where the last inequality follows from Bernoulli's inequality and . Including the leading factor two, the second term has norm at most .
The last term has norm at most five. Combining the three,
To bound the normalization, first note that for and . Hence
One term of the exponential series gives . Therefore
One numerical error budget. Put , , and choose
number of interpolation nodes,
interpolation degree,
query indices,
error allowed in each queried expected cover time.
Since , we have , hence . All nodes lie between and . The interpolation lemma bounds truncation by
Here ensures the last inequality. Also , as used in the error budget below. Let be the degree-at-most- polynomial interpolating at the nodes . Its value at zero is the weighted sum
Here . Comparing the numerator factors with and using the binomial theorem gives
The four factors that amplify error in the queried maximum expected cover times are
| Factor | Upper bound |
|---|---|
| Sum of interpolation weights | |
| Coefficient sum in BinomialSum( ) | |
| Removing the forced excursions, | |
| Normalization |
The binomial coefficient sum is ; the other bounds follow from the node and normalization estimates above. Their product is at most . Thus errors at most in the queried maximum expected cover times give the bounds
Their sum is below . The displayed constants are sufficient; the theorem uses only accuracy bits per queried expected cover time and polynomially many threshold queries.
Exact coefficients and oracle cost. To implement the interpolation, we need its combined coefficients as rationals with polynomially many bits. Multiplying each weight by its normalization cancels :
BinomialSum(k) has integer coefficients, so combinations of these sums have a common integer denominator that is a fixed integer multiple of , because is a fixed positive rational. The extra binomial factors have bits, since their upper indices are . Each numerator is a sum of products of factorial, power, and binomial terms with bits. Summing adds only bits, so the numerators still have bits. All coefficients are constructible in polynomial bit time by integer arithmetic.
Only distinct graphs are queried; overlapping binomial sums reuse their maximum expected cover times. Each graph has vertices and edges. Lemma 11 bounds every expected cover time by . Bisection of this rational bracket to error uses inclusive threshold queries, with polynomial-bit midpoints, per graph. Rounding and the exact coefficient arithmetic are also polynomial-time.
| Resource | Sufficient bound in terms of |
|---|---|
| Vertices and edges per maximum-start query | |
| Accuracy bits per queried expected cover time | |
| Number of queried maximum expected cover times | |
| Threshold comparisons | |
| Exact coefficient encoding bits |
C A counting-hierarchy upper bound
This appendix proves Theorem 3 on general explicitly represented graphs. The argument has two steps: hitting-set inclusion–exclusion gives short indexed rational terms, and an exact sign algorithm compares their sum without constructing its denominator. The rational-sum comparison bound used here appears in Meiburg’s 2026 preprint [11, Appendix K, Theorem 12]. We give a self-contained proof below using his first-displacement method [11, Appendix F.1], including equality and taking signed residues before rounding. Counting-hierarchy bounds for exact numerical predicates have classical precedents, including the PosSLP result of Allender et al. [2].
C.1 Hitting-set inclusion-exclusion
For nonempty , let be its first hitting time. Inclusion-exclusion of the unvisited-vertex events, followed by the tail-sum formula, gives
The finite subset sum and finite expectations justify the interchange.
Let . Each term is computable in polynomial bit time from its -bit subset indicator. For nonempty , write the walk's neighbor probabilities as a transition matrix when , and zero otherwise. Write for the expected time to hit . The values satisfy the same first-step equations as (13), now with zero boundary on :
Writing , these equations have matrix form
A positive maximum or negative minimum of a homogeneous solution propagates along transitions to the zero boundary, so irreducibility makes the system nonsingular. The same argument works for any finite irreducible rational transition matrix. Clearing the at most denominators in each row gives polynomial-bit integer coefficients. Hadamard's inequality and exact elimination give the required polynomial-bit rational in polynomial time [4]. The term for is ; no empty-set hitting time is used. Thus (18) has uniformly computable polynomial-bit terms, including .
C.2 Exact sign from the first displacement
Lemma 16 (Indexed rational-sum comparison). For each input , let be integers indexed by . Define
where are polynomially bounded in the input length and computable from in polynomial time, and each pair is computable from in polynomial time. Then the sign of , including exact zero, is computable in .
Proof. Fix , and abbreviate by .
We determine the sign without constructing a common denominator. First rescale the sum into a small interval. A lower bound on any nonzero value then limits how many doublings are needed to detect a displacement from zero.
Normalization and a separation bound. Choose and . Define the sign-preserving rescaling
Define the scaled denominators , so . Now and , with polynomial bitlength. The denominator of divides , so
Only the polynomial-length binary endpoint is needed, not the product or the expansion of .
Coarse phases at an indexed scale. For any binary scale , compute
(20)
Here and . The least nonnegative residue is used even when is negative. Repeated squaring computes the modular power in polynomial time in the binary lengths of and ; itself is never written down.
Each summand is a nonnegative integer below . A #P machine guesses and a b-bit integer , accepting when is below that summand. Its count FloorSum has polynomial bitlength.
and differ by an integer. Flooring in (20) loses less than . Thus differs from by an integer plus an error of magnitude less than 1/16. We call this a circular error; the bound also holds under exact cancellation.
The first event determines the sign. Call an event when . We need the circular error bound to be an ordinary error bound through the first event. Normalization gives this at zero. If it holds at a nonevent , then
The next true value's 1/16-neighborhood lies inside , so the phase cannot wrap. This proves the induction up to the first event. There,
so has the sign of ScaledSum(x).
If ScaledSum(x) = 0, every phase stays below the event threshold. If it is nonzero, the separation bound gives
which is incompatible with having no event through . Consequently,
Interval binary search finds the first event. An NP oracle tests whether an interval in contains an event: guess its index and FloorSum(j), verify the count with two PP threshold queries, and test its phase. If contains none, return zero. Otherwise bisect, keeping the left half if it contains an event and the right half otherwise. The retained interval contains an event and no discarded smaller index does. Its final singleton is therefore the first event. A final query tests whether its phase is positive, determining the sign. All queries have polynomial-length encodings.
Proof of Theorem 3. Apply Lemma 16 to as represented by (18), and accept its nonpositive sign. Here the Boolean index length is . For MAX-COVER-TIME, perform this comparison for every starting vertex and accept exactly when all answers are yes. There are only polynomially many starts, so the same deterministic oracle class contains both languages. Invalid graph or rational encodings can first be rejected in polynomial time.
To see the counting-hierarchy containment, define , , and . The standard inclusions and relativize, placing inside .
Remark 17 (Explicit rational chains). The same proof applies to explicit irreducible rational Markov chains, without any bound on the numerical magnitude of their expected cover times.
AI methodology
OpenAI's ChatGPT and Codex assisted with mathematical exploration and proof development, counterexample searches, Lean formalization, computational checks, and manuscript preparation. Their use influenced the constructions and arguments throughout the paper. The scope of Lean verification and its external dependencies are described in the companion verification document. For general rational Markov chains, the formalization assumes a polynomial-time solver for the exact rational linear systems, with a specified input encoding. The author takes responsibility for all content.
References
[1] D. Aldous and J. A. Fill. Reversible Markov Chains and Random Walks on Graphs. Unfinished monograph, 2002; recompiled 2014. https://www.stat.berkeley.edu/~aldous/RWG/book.html.
[2] E. Allender, P. Bürgisser, J. Kjeldgaard-Pedersen, and P. B. Miltersen. On the complexity of numerical analysis. SIAM Journal on Computing, 38(5):1987–2006, 2009. doi:10.1137/070697926.
[3] F. Ball, B. Dunham, and A. Hirschowitz. On the mean and variance of cover times for random walks on graphs. Journal of Mathematical Analysis and Applications, 207(2):506–514, 1997. doi:10.1006/jmaa.1997.5298.
[4] E. H. Bareiss. Sylvester's identity and multistep integer-preserving Gaussian elimination. Mathematics of Computation, 22(103):565–578, 1968. doi:10.1090/S0025-5718-1968-0226829-0.
[5] G. R. Brightwell and P. Winkler. Counting Eulerian circuits is #P-complete. In Proceedings of ALENEX/ANALCO 2005, pages 259–262. SIAM, 2005. Preprint: https://arxiv.org/abs/cs/0405067.
[6] A. Bui and D. Sohier. How to Compute Times of Random Walks based Distributed Algorithms. arXiv:0807.3632v1, 2008. https://arxiv.org/abs/0807.3632.
[7] J. Ding, J. R. Lee, and Y. Peres. Cover times, blanket times, and majorizing measures. Annals of Mathematics, 175(3):1409–1471, 2012. doi:10.4007/annals.2012.175.3.8.
[8] U. Feige and Y. Rabinovich. Deterministic approximation of the cover time. Random Structures & Algorithms, 23(1):1–22, 2003. doi:10.1002/rsa.10083.
[9] Q. Ge and D. Štefanković. The complexity of counting Eulerian tours in 4-regular graphs. Algorithmica, 63(3):588–601, 2012. doi:10.1007/s00453-010-9463-4.
[10] A. Georgakopoulos, J. Haslegrave, T. Sauerwald, and J. Sylvester. The power of two choices for random walks. Combinatorics, Probability and Computing, 31:73–100, 2022. doi:10.1017/S0963548321000183.
[11] A. Meiburg. . arXiv:2610.10514v1, 2026. Preprint. https://arxiv.org/abs/2610.10514v1.
[12] N. Rivera, T. Sauerwald, and J. Sylvester. Multiple random walks on graphs: mixing few to cover many. Combinatorics, Probability and Computing, 32(4):594–637, 2023. doi:10.1017/S0963548322000372.
[13] B. Sericola. On cover times of Markov chains. Stochastic Models, 40(4):685–727, 2024. doi:10.1080/15326349.2024.2319201.
[14] I. M. Si. Nonlocality of Cover-Time Changes Under Edge Addition. arXiv:2608.27474v1, 2026. https://arxiv.org/abs/2608.27474v1.
[15] J. Sylvester. The cover time of a (multiple) Markov chain with rational transition probabilities is rational. Statistics & Probability Letters, 187:109534, 2022. doi:10.1016/j.spl.2022.109534.