arXiv:2610.38998cs.CCOct 2026

Manuscript Offprint

arXiv:2610.38998

How Hard Is It to Compute Cover Time?

Ryan Aghazadeh

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 NPPP^{PP} 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

COVER−TIME={(G,s,r):CG(s)≤r},where CG(s)=Es[τG].(1)\mathrm{COVER-TIME}=\{(G,s,r):C_G(s)\leq r\},\qquad \text{where } C_G(s)=\mathbb{E}_s[\tau_G]. \tag{1}

Here GG is a connected simple undirected unweighted graph, ss is its specified starting vertex, and rr is a binary-encoded rational threshold. The walk chooses a neighbor uniformly. Its random cover time is

τG=min⁡{t≥0:{X0,…,Xt}=V(G)}.\tau_G=\min\{t\geq 0:\{X_0,\ldots,X_t\}=V(G)\}.

Thus CG(s)C_G(s) is the expected cover time from ss, a fixed number for each graph and starting vertex, whereas τG\tau_G 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

MAX−COVER−TIME={(G,r):M(G)≤r},where M(G)=max⁡sCG(s).(2)\mathrm{MAX-COVER-TIME}=\{(G,r):M(G)\leq r\},\qquad\mathrm{where}\ M(G)=\max_{s}C_{G}(s). \tag{2}

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 zz, called the hub, and diameter two. Every non-hub vertex has degree at most five. Deleting zz (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 zz, called the hub, and diameter two. Every non-hub vertex has degree at most five. Deleting zz (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 PNPPP\mathrm{P}^{\mathrm{NP}^{\mathrm{PP}}}, 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 PNPPP\mathrm{P}^{\mathrm{NP}^{\mathrm{PP}}} denotes deterministic polynomial time with an NPPP\mathrm{NP}^{\mathrm{PP}} oracle.

The same count-recovery argument also establishes hardness of binary truncation.

Corollary 4 (Hardness of binary truncation). For m=∣V(G)∣m = |V(G)|, retaining the integer part and the first 2m2m bits after the binary point of the expected cover time—that is, computing

Trunc2m(G,s)=⌊22mCG(s)⌋\mathrm{Trunc}_{2m}(G,s)=\left\lfloor2^{2m}C_{G}(s)\right\rfloor

is #P-hard under polynomial-time Turing reductions on the same graph class of Theorem 1. On this class its output has only O(m)O(m) bits. More generally, the reduction works with rational approximations of absolute error at most 2−2m2^{-2m}.

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 GG. Figure 1 shows the construction sequence. Here AA is the anchored graph, SS is the subdivided graph, and G′G' is the specified-start cover-time instance.

Figure

(a) Source GG: mark one of the four edges

Figure

(b) Anchored AA: replace e∗e^{*} by auau and vbvb

G→cut the marked edgeinto leaf anchors→A→subdivide each edgeS→add the hub zG′.G\xrightarrow{\mathrm{cut~the~marked~edge}}\mathrm{into~leaf~anchors}\rightarrow A\xrightarrow{\mathrm{subdivide~each~edge}}S\xrightarrow{\mathrm{add~the~hub~}z}G^{\prime}.

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 e∗e^{*} and attach new leaves a, b to its endpoints; the other three edges remain. Cutting a tour at e∗e^{*} opens it into a trail between the anchors, and restoring e∗e^{*} 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 ℓ=256E\ell = 256E, 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.