betaFeedback

WorksComputer Science

PSPACE-completeness of the Hunters and Rabbit game

Abstract

In the Hunters and Rabbit game, hunters shoot at a set of vertices at each round, while an invisible rabbit must move along an edge. We prove that deciding whether a given number of hunters can guarantee capture is PSPACE-complete, even on simple bipartite graphs. The reduction uses intersection nonemptiness for inverse finite automata: one common word must put all automata in accepting states simultaneously. A clique acting as a safe haven and two families of guards force every winning strategy to simulate common transitions. Existing transformations remove the restriction on the rabbit's initial positions and yield PSPACE-completeness for the directed game with one hunter, even on oriented graphs with positive minimum outdegree. Adjusting the guard sizes also proves PSPACE-completeness of the firefighting game, in which the rabbit may remain at its current vertex.

Introduction

The Hunters and Rabbit game is played on a finite graph by a team of hunters and an invisible rabbit. At each round, the hunters shoot at a set of vertices, with at most one shot per hunter. A surviving rabbit must then move along an edge. The hunters may choose arbitrary vertices at successive rounds, and receive no information about the rabbit’s position before capture.

A winning strategy guarantees capture for every initial position and every subsequent rabbit walk. The minimum number of hunters admitting such a strategy is the hunting number h(G)h(G). We study the decision problem that asks, given a graph GG and an integer kk, whether h(G)≤kh(G) \le k.

Early studies of the one-hunter case appeared under other names. Britnell and Wildon [1] considered a prince searching for an invisible princess who changes rooms at every step, characterized the graphs on which capture is possible, and determined the optimal capture time. Haslegrave [2] independently studied the corresponding evasion game and obtained a characterization and optimal strategies. These results provide a polynomial-time solution of the one-hunter problem on undirected graphs.

Abramovskaya, Fomin, Golovach and Pilipczuk [3] developed the game with an arbitrary number of hunters. They proved the general bound h(G)≤pw⁡(G)+1h(G) \le\operatorname{pw}(G) + 1, where pw⁡\operatorname{pw} denotes pathwidth, determined the hunting number of an r×sr \times s grid as ⌊min⁡{r,s}/2⌋+1\lfloor\min\{r,s\}/2\rfloor+ 1, and established an O(log⁡n)O(\log n) upper bound for nn-vertex trees together with a nearly matching lower bound. Gruslys and Méroueh [4] obtained a logarithmic lower bound on trees, showing that this order of growth is best possible. Bolkema and Groothuis [5] determined the hunting number of hypercubes and related the game to isoperimetric nesting properties.

Monotonicity provides a further connection with graph decompositions. Dissaux, Fioravantes, Gahlawat and Nisse [6] introduced the monotone hunting number mh(G)mh(G) and proved pw⁡(G)≤mh(G)≤pw⁡(G)+1\operatorname{pw}(G) \le mh(G) \le\operatorname{pw}(G) + 1. They also established polynomial-time algorithms for this parameter on several graph classes and fixed-parameter tractability of the ordinary hunting number with respect to vertex cover number. Their examples show that allowing recontamination can be essential: for every r≥3r \ge3, there is a tree TT with h(T)=2h(T) = 2 and mh(T)=rmh(T) = r. Thus an argument based solely on monotone strategies does not capture the complexity of the ordinary game.

Ben-Ameur, Gahlawat and Maddaloni [7] proved NP-hardness of computing the hunting number, even for simple bipartite graphs. Their extended journal version [8] proves that approximating h(G)h(G) within additive error O(n1−ε)O(n^{1-\varepsilon}) is NP-hard for every fixed ε>0\varepsilon> 0, where n=∣V(G)∣n = |V(G)|, and also establishes NP-completeness for prescribed polynomially bounded time limits of at least two rounds. The unrestricted problem belongs to PSPACE, but their concluding remarks leave open whether it is PSPACE-complete.

For directed graphs, Ben-Ameur and Maddaloni [9] proved NP-hardness already for one hunter. They also gave a polynomial-time algorithm for the one-hunter problem on tournaments and established fixed-parameter tractability results under structural parameterizations. Their earlier work [10] gives h(D)≤dpw⁡(D)+1h(D) \leq\operatorname{dpw}(D) + 1, where dpw denotes directed pathwidth. For monotone strategies, whose territories are nonincreasing under inclusion, the minimum number of hunters lies between dpw⁡(D)\operatorname{dpw}(D) and dpw⁡(D)+1\operatorname{dpw}(D) + 1.

Allowing the invisible fugitive to remain at its current vertex gives the inspection game studied by Bernshteyn and Lee [11]. They call the minimum number of vertices inspected per round the inspection number, establish bounds in terms of graph structure, and study its behaviour under subdivisions. The same game has a firefighting interpretation: all vertices are initially burning, firefighters extinguish a bounded number of vertices per round, and fire then spreads from the remaining burning vertices, possibly reigniting vertices just extinguished. Althoetmar, Schade and Schürenberg [12] proved NP-hardness for this model and constructed instances requiring superpolynomially long shortest winning strategies, with a transformation transferring these results to Hunters and Rabbit. The absence of a polynomial bound on strategy length explains why NP membership cannot be inferred simply by taking a complete shooting sequence as a certificate.

The precise movement and information rules matter when comparing these results with the broader literature; see Fomin and Thilikos [13] for a survey. In the classical Cops and Robbers game, studied by Nowakowski and Winkler [14] and Quilliot [15], the robber is visible and both players move along graph edges, with the option of staying at their current vertices. Kinnersley [16] proved that deciding whether kk cops suffice is EXPTIME-complete when kk is part of the input. The hunters in our game can instead relocate their shots arbitrarily, while the rabbit is invisible and must move after every unsuccessful round.

Other graph-searching models allow searchers to be placed or removed at arbitrary vertices, while the fugitive has unbounded speed: it can traverse an arbitrarily long path that avoids the vertices blocked by searchers. This path-constrained motion differs from unrestricted relocation. Such models connect pursuit games with treewidth and pathwidth [13]. In particular, Seymour and Thomas [17] characterized treewidth through a game with a visible fugitive of unbounded speed. Monotonicity theorems, including LaPaugh’s result that recontamination does not help in classical graph searching [18], are central to this connection.

PSPACE-completeness is known for some related models. Akhoondian Amiri, Kaiser, Kreutzer, Rabinovich and Siebertz [19] proved that deciding DAG-width is PSPACE-complete. In its game formulation, cops may relocate arbitrarily, the visible robber follows directed paths avoiding the cops that remain in place, and the cops must use a robber-monotone strategy: a vertex made unreachable must not become reachable again. Kreutzer and Ordyniak [20] proved PSPACE-completeness for the invisible domination game even with two cops. There the robber has unbounded speed and a cop controls its closed neighborhood, rather than only its own vertex. These results concern different movement, capture or monotonicity rules and do not imply the corresponding classification for Hunters and Rabbit.

We settle the PSPACE-completeness question for the ordinary Hunters and Rabbit game, with the number of hunters given as part of the input.

Theorem 1. Deciding whether h(G)≤kh(G) \le k is PSPACE-complete, even when GG is a simple bipartite graph.

The proof reduces intersection nonemptiness for inverse finite automata, a PSPACE-complete problem [21], to the existence of a winning hunting strategy. The construction simulates a common word in all automata; inverse transitions allow this simulation to use an undirected graph.

We also obtain PSPACE-completeness for the directed game with one hunter, even on oriented graphs of positive minimum outdegree (Corollary 6), and for the firefighting game, equivalently for deciding whether the inspection number is at most a given integer (Theorem 7).

Section 2 gives the preliminaries and the polynomial-space upper bound. Section 3 proves the hardness results.

Preliminaries and membership in PSPACE

Graphs may contain loops in intermediate constructions, but have no parallel edges; a simple graph has no loops. For a graph G=(V,E)G = (V, E) and v∈Vv \in V, define its neighborhood by NG(v)={u∈V:uv∈E}N_G(v) = \{u \in V : uv \in E\}. Thus v∈NG(v)v \in N_G(v) exactly when vv has a loop, which allows the rabbit to remain at vv.

For R⊆VR \subseteq V, write NG(R)=⋃v∈RNG(v)N_G(R) = \bigcup_{v \in R} N_G(v) and NG[R]=R∪NG(R)N_G[R] = R \cup N_G(R), omitting the subscript when unambiguous. A strategy using kk hunters is a sequence (Wt)t≥1(W_t)_{t \ge1} with Wt⊆VW_t \subseteq V and ∣Wt∣≤k|W_t| \le k. The hunters know that the rabbit starts in a specified set S⊆VS \subseteq V, but not its exact initial vertex. Its possible positions immediately after the shots at round tt form the rabbit territory RtR_t, where

R1=S∖W1,Rt+1=NG(Rt)∖Wt+1(t≥1).(1)R_1 = S \setminus W_1,\qquad R_{t+1} = N_G(R_t) \setminus W_{t+1}\quad(t \ge1). \tag*{(1)}

By induction, RtR_t is exactly the set of positions attainable after surviving the first tt shots.

The strategy is winning if RT=∅R_T = \emptyset for some finite TT. We denote the minimum required number of hunters by hS(G)h_S(G); thus h(G)=hV(G)h(G) = h_V(G). The input to the restricted-start decision problem is (G,S,k)(G, S, k), and the question is whether hS(G)≤kh_S(G) \le k. For a digraph D=(V,A)D = (V, A), put ND+(v)={u∈V:(v,u)∈A}N_D^+(v) = \{u \in V : (v, u) \in A\} and ND+(R)=⋃v∈RND+(v)N_D^+(R) = \bigcup_{v \in R} N_D^+(v), and use ND+(R)N_D^+(R) in place of NG(R)N_G(R).

A rabbit unable to move loses. All graphs used below for hardness have no isolated vertices, and all resulting digraphs have positive minimum outdegree.

The territory accounts for all surviving rabbit walks simultaneously, so an empty territory certifies capture against every walk. Since the hunters receive no observations before capture, their strategy is a sequence of shot sets.

We recall the standard territory argument, including the exponential bound on capture time from [3 Proposition 1].

Lemma 2. Deciding whether hS(G)≤kh_S(G) \le k belongs to PSPACE, for undirected graphs and digraphs.

Proof. Put n=∣V∣n = |V|. If S=∅S = \emptyset, accept immediately. Otherwise, let W1,…,WTW_1, \ldots, W_T be a shortest winning sequence, if one exists. Its nonempty territories R1,…,RT−1R_1, \ldots, R_{T-1} are pairwise distinct: if Ra=RbR_a = R_b with a<b<Ta < b < T, deleting Wa+1,…,WbW_{a+1}, \ldots, W_b preserves the winning suffix, since future evolution depends only on the current territory. Hence T−1≤2n−1T - 1 \le2^n - 1, and T≤2nT \le2^n.

A nondeterministic machine chooses one set WtW_t of size at most kk at each round and updates the territory using (1). It accepts as soon as the territory is empty, and rejects the current branch if this has not occurred after 2n2^n rounds. The current territory, shot set and temporary neighborhood each require nn bits; the binary round counter requires n+1n+1 bits. A neighborhood is computed by scanning the input edges, and previous shot sets are discarded. Thus every branch halts and uses polynomial space on every input. An accepting branch exists exactly when a winning sequence exists, by the length bound. Therefore the problem is in NPSPACE = PSPACE by Savitch’s theorem [22]. The same argument uses the out-neighborhood for digraphs.

Let Σ={a,b,aˉ,bˉ}\Sigma= \{a, b, \bar{a}, \bar{b}\}, with aˉ=a\bar{a}=a and bˉ=b\bar{b}=b. The bar denotes a formal inverse symbol which is part of the input alphabet. An inverse finite automaton is a tuple Ai=(Qi,Σ,δi,si,Fi)A_i=(Q_i,\Sigma,\delta_i,s_i,F_i), where QiQ_i is a finite state set, si∈Qis_i\in Q_i is the initial state, Fi⊆QiF_i\subseteq Q_i is the set of accepting states, and δi:Qi×Σ⇀Qi\delta_i:Q_i\times\Sigma\rightharpoonup Q_i is a partial transition function satisfying

δi(q,c)=r⟺δi(r,cˉ)=q(q,r∈Qi, c∈Σ).(2)\delta_i(q,c)=r \quad\Longleftrightarrow\quad\delta_i(r,\bar{c})=q \qquad(q,r\in Q_i,\ c\in\Sigma). \tag*{(2)}

In particular, for each symbol cc, the map δi(⋅,c)\delta_i(\mathord{\cdot},c) is injective on its domain, and its inverse is δi(⋅,cˉ)\delta_i(\mathord{\cdot},\bar{c}). A transition is partial: a symbol may be unavailable at a state. If an unavailable transition is requested, the word is not accepted.

For a finite word w=c1⋯cℓw=c_1\cdots c_\ell, begin at qi0=siq_i^0=s_i and recursively set qit=δi(qit−1,ct)q_i^t=\delta_i(q_i^{t-1},c_t). The word belongs to L(Ai)L(A_i) exactly when all these transitions are defined and qiℓ∈Fiq_i^\ell\in F_i. The empty word ε\varepsilon is accepted exactly when si∈Fis_i\in F_i.

Inverse-automata intersection nonemptiness.

Input: a list A1,…,AmA_1,\ldots,A_m of inverse finite automata over the common alphabet Σ\Sigma, where m≥1m\geq1 is part of the input.

Question: does there exist one finite word w∈Σ∗w\in\Sigma^* such that δi(si,w)\delta_i(s_i,w) is defined and belongs to FiF_i for every i=1,…,mi=1,\ldots,m? Equivalently, is ⋂i=1mL(Ai)≠∅\bigcap_{i=1}^{m}L(A_i)\ne\varnothing?

The same word is read by every automaton, one symbol at a time. Thus we seek one time ℓ\ell when all current states are accepting. It is insufficient that each automaton can accept some word of its own, or that each visits an accepting state at a different prefix of a common word.

It is useful to view the problem in the product state space Q1×⋯×QmQ_1\times\cdots\times Q_m. Write s=(s1,…,sm)s=(s_1,\ldots,s_m) and, for q=(q1,…,qm)q=(q_1,\ldots,q_m), define δc(q)=(δ1(q1,c),…,δm(qm,c))\delta_c(q)=(\delta_1(q_1,c),\ldots,\delta_m(q_m,c)) only when every component transition is defined. A tuple is reachable if some common word takes ss to it, and accepting if it belongs to F1×⋯×FmF_1\times\cdots\times F_m. We seek a reachable accepting tuple. The product may have exponentially many tuples, although one tuple has a polynomial-size encoding.

Birget and Margolis [21 Theorem 3.1] prove PSPACE-completeness of intersection emptiness for inverse finite automata over the fixed alphabet Σ={a,b,aˉ,bˉ}\Sigma=\{a,b,\bar{a},\bar{b}\}, even with a single accepting state per automaton. Since PSPACE is closed under complement, intersection nonemptiness is also PSPACE-complete. We allow arbitrary FiF_i in the notation; hardness already holds when each FiF_i is a singleton.

PSPACE-completeness

Construction

We first restrict the rabbit’s possible initial positions. A simulated configuration consists of one state from each automaton. Two copies of the state sets and undirected transition paths encode a common letter: traversing a path backwards reads the inverse letter. Guard sets, together with a clique in which the rabbit can survive indefinitely, force complete state tuples and a common command to be preserved until an accepting tuple is tested. Test vertices allow capture precisely when all component states are accepting.

Fix inverse automata A1,…,AmA_1,\ldots,A_m as above. We construct a simple undirected graph GG and an initial subset of vertices SS. All vertices and sets introduced below are distinct.

For every ii and q∈Qiq \in Q_i, introduce two state vertices xi,q0x^0_{i,q} and xi,q1x^1_{i,q}. The superscript is called the side. For j∈{0,1}j \in\{0,1\}, put

Xj(q)={xi,qij:1≤i≤m}.(3)X^j(\mathbf{q}) = \{x^j_{i,q_i} : 1 \le i \le m\}. \tag*{(3)}

For each ii and c∈Σc \in\Sigma, introduce transition vertices as follows.

  • If δi(q,c)=r\delta_i(q,c)=r is defined, introduce a vertex yi,c,qy_{i,c,q} adjacent to xi,q0x^0_{i,q} and xi,r1x^1_{i,r}; its command is cc.

  • If δi(q,c)\delta_i(q,c) is undefined, introduce a bad transition vertex yi,c,q0,bady^{0,\mathrm{bad}}_{i,c,q} of command cc, with sole state neighbor xi,q0x^0_{i,q}.

  • For every rr outside the image of δi(⋅,c)\delta_i(\mathord{\cdot},c), introduce a bad transition vertex yi,c,r1,bady^{1,\mathrm{bad}}_{i,c,r} of command cc, with sole state neighbor xi,r1x^1_{i,r}.

For each command c∈Σc \in\Sigma, every state vertex has exactly one transition neighbor, good or bad. On side 0, the neighbor of xi,q0x^0_{i,q} is yi,c,qy_{i,c,q} if δi(q,c)\delta_i(q,c) is defined, and yi,c,q0,bady^{0,\mathrm{bad}}_{i,c,q} otherwise. On side 1, if r=δi(q,c)r=\delta_i(q,c) is defined, then (2) gives δi(r,c‾)=q\delta_i(r,\overline{c})=q, and rr is the unique predecessor of qq under cc. The neighbor of xi,q1x^1_{i,q} is then yi,c,ry_{i,c,r}; otherwise, it is yi,c,q1,bady^{1,\mathrm{bad}}_{i,c,q}. Every good transition vertex has exactly one state neighbor on each side, and every bad transition vertex has exactly one state neighbor in total. For a defined transition δi(q,c)=q′\delta_i(q,c)=q', the good transition vertex yi,c,qy_{i,c,q} lies on the path xi,q0−yi,c,q−xi,q′1x^0_{i,q}-y_{i,c,q}-x^1_{i,q'}. Traversing this path from side 0 to side 1 simulates the automaton transition q→cq′q \xrightarrow{c} q'. Traversing it from side 1 to side 0 simulates the inverse transition q′→c‾qq' \xrightarrow{\overline{c}} q, since δi(q′,c‾)=q\delta_i(q',\overline{c})=q.

Introduce a new command symbol #∉Σ\# \notin\Sigma and put Γ=Σ∪{#}\Gamma= \Sigma\cup\{\#\}. This is a command of the graph construction, not an input letter of the automata; no transition δi(⋅,#)\delta_i(\cdot,\#) is defined. For c∈Σc \in\Sigma, the vertices of command cc are the good and bad transition vertices indexed by cc. The vertices of command #\# are all test vertices. Each state vertex xi,qjx^j_{i,q} receives a private test vertex yi,#,qjy^j_{i,\#,q} of command #\#, with sole state neighbor xi,qjx^j_{i,q}. Mark it bad exactly when q∉Fiq \notin F_i. Each state vertex now has four transition neighbors and one test neighbor, one for each command in Γ\Gamma. The test command #\# will be used to check whether all automata are simultaneously in accepting states.

Introduce a clique U=K9m+2U = K_{9m+2}, two independent guard sets P0,P1P_0, P_1 of size 5m5m, and an independent guard set CcC_c of size 8m8m for each c∈Γc \in\Gamma. Join every state vertex on side jj to all of PjP_j, and every transition or test vertex of command cc to all of CcC_c. Join every guard, every bad transition vertex and every bad test vertex to all of UU. Finally introduce an independent set ZZ of size 9m9m, join it completely to UU, and set

S=Z∪X0(s).(4)S = Z \cup X^0(s). \tag*{(4)}

There are no other edges. The transition and test vertices are specific to their automaton, state and command indices; different automata never share them. The sets UU, P0P_0, P1P_1 and each CcC_c are shared across the construction. Figure 1 displays every edge type. All these objects are ordinary vertices or sets of vertices of the same simple undirected graph.

All edge types of the construction. Panel (a) Common guard structure and forced initialization: $U=K_{9m+2}$, $Z$, $9m$, $P_0$, $C_a$, $C_b$, $C_{\bar a}$, $C_{\bar b}$, $C_{\#}$, and $P_1$; each of the five command guard sets has $8m$ vertices. $S=Z\cup X^0(s)$; the first shot is forced: $W_1=Z$, $R_1=X^0(s)$. Panel (b) Defined transition: $\delta_i(q,c)=r$, with $c\in\Sigma$; side $0\to1$ reads $c$, side $1\to0$ reads $\bar c$. The transition vertex has no edge to $U$. Panel (c) Undefined successor: $\delta_i(q,c)$ undefined. Panel (d) Missing predecessor: $r\notin\operatorname{im}\delta_i(\cdot,c)$. Each bad transition vertex has one state neighbor, its command guards, and all of $U$. Panel (e) Private test vertex: one for every state vertex; $q\notin F_i$ only. The test vertex is good if $q\in F_i$, and bad (joined to $U$) if $q\notin F_i$. $\#\notin\Sigma$: the test is a graph command, not an automaton input symbol.

Figure 1. All edge types of the construction. Panel (a) shows the shared sets UU, PjP_j, CcC_c; panels (b)–(e) show local connections. Circles denote vertices and boxes denote vertex sets; lines to boxes represent complete adjacency. The set UU induces a clique; the other boxed sets are independent. Transition and test vertices are specific to their displayed indices. Red lines join bad vertices to UU; the dashed line is present exactly when q∉Fiq\notin F_i. All edges are undirected.

We now consider the Hunters and Rabbit game on GG, with the rabbit initially restricted to S=Z∪X0(s)S = Z \cup X^0(s) and at most k=9mk = 9m hunters. The following lemmas show how the shot budget and guard sets force the simulation.

Lemma 3. In a winning strategy using at most kk hunters, no territory contains a vertex of UU, a guard, a bad transition vertex, a bad test vertex, or a vertex of ZZ. Moreover, no territory contains state vertices on both sides, transition/test vertices of two different commands, or both a state vertex and a transition or test vertex.

Proof. If RtR_t contains a vertex of UU, then ∣N(Rt)∩U∣≥k+1|N(R_t) \cap U| \ge k + 1, so a vertex of UU survives the next shot. Inductively, capture is impossible. Every guard, bad transition vertex, bad test vertex, and vertex of ZZ is adjacent to all k+2k + 2 vertices of UU; if one survives a shot, a vertex of UU survives the next one. These vertices are therefore forbidden in every territory of a winning strategy. State vertices on both sides would make all of P0∪P1P_0 \cup P_1 reachable in the next round. Since ∣P0∪P1∣=10m>k|P_0 \cup P_1| = 10m > k, a guard would survive. Similarly,

vertices of distinct commands c,dc,d would make the 16m>k16m>k guards of Cc∪CdC_c\cup C_d reachable. Finally, a state vertex on side jj together with a transition or test vertex of command cc would make all guards of Pj∪CcP_j\cup C_c reachable. These sets are disjoint and have total size 5m+8m=13m>k5m+8m=13m>k, so a guard would again survive. Each case contradicts the first part of the lemma. Thus every nonempty territory consists entirely of state vertices on one side or entirely of transition or test vertices of one command.

For a tuple q\mathbf{q} and j∈{0,1}j\in\{0,1\}, let Ycj(q)Y_c^j(\mathbf{q}) be the set of vertices of command cc adjacent to Xj(q)X^j(\mathbf{q}), and put Yj(q)=⋃c∈ΓYcj(q)Y^j(\mathbf{q})=\bigcup_{c\in\Gamma}Y_c^j(\mathbf{q}). These are transition vertices when c∈Σc\in\Sigma and test vertices when c=#c=\#. For c∈Σc\in\Sigma, the construction gives

Yc0(q)=Yc1(δc(q))if δc(q) is defined,Y_c^0(\mathbf{q})=Y_c^1(\delta_c(\mathbf{q})) \quad\text{if }\delta_c(\mathbf{q})\text{ is defined},
Yc1(q)=Yc0(δc(q)‾)if δc(q)‾ is defined.Y_c^1(\mathbf{q})=Y_c^0(\overline{\delta_c(\mathbf{q})}) \quad\text{if }\overline{\delta_c(\mathbf{q})}\text{ is defined}.

The same transition vertices are viewed from their two sides: their command remains cc, while traversal from side 1 to side 0 reads c‾\overline{c}. The vertices in Ycj(q)Y_c^j(\mathbf{q}) are distinct for different automata, and none has two state neighbors on the same side. Hence

∣Ycj(q)∣=mfor every c∈Γ,∣Yj(q)∣=5m.(5)\lvert Y_c^j(\mathbf{q})\rvert=m \quad\text{for every }c\in\Gamma,\qquad\lvert Y^j(\mathbf{q})\rvert=5m. \tag*{(5)}

Lemma 4. Suppose a winning strategy using at most kk hunters has Rt=Xj(q)R_t=X^j(\mathbf{q}). Then Rt+1=Ycj(q)R_{t+1}=Y_c^j(\mathbf{q}) for one command c∈Γc\in\Gamma, and this set contains no bad transition vertex or bad test vertex. If c∈Σc\in\Sigma, the territory Rt+2R_{t+2} is either Xj(q)X^j(\mathbf{q}) or X1−j(q′)X^{1-j}(\mathbf{q}'), where

q′={δc(q),j=0,δc(q)‾,j=1.\mathbf{q}'= \begin{cases} \delta_c(\mathbf{q}), & j=0,\\ \overline{\delta_c(\mathbf{q})}, & j=1. \end{cases}

If c=#c=\#, the tuple q\mathbf{q} is accepting and the hunters can capture at round t+2t+2.

Proof. The neighborhood of the tuple is

N(Xj(q))=Pj∪Yj(q).(6)N(X^j(\mathbf{q}))=P_j\cup Y^j(\mathbf{q}). \tag*{(6)}

By Lemma 3, the hunters must shoot all 5m5m guards of PjP_j. At most 4m4m shots remain for the 5m5m transition and test vertices, leaving at least mm of them. They all have one command cc, by the same lemma. Since each command class has size mm, the entire class survives and all other classes are shot. Thus

Wt+1=Pj∪(Yj(q)∖Ycj(q)),Rt+1=Ycj(q).(7)W_{t+1} = P_j \cup\left(Y^j(\mathbf{q}) \setminus Y_c^j(\mathbf{q})\right), \qquad R_{t+1} = Y_c^j(\mathbf{q}). \tag*{(7)}

This uses exactly 9m9m shots. By Lemma 3, all vertices in the surviving territory Ycj(q)Y_c^j(\mathbf{q}) are good.

If c∈Σc \in\Sigma, the represented transition is consequently defined in every component. Its resulting tuple q′\mathbf{q}' satisfies

N(Ycj(q))=Cc∪Xj(q)∪X1−j(q′).(8)N\left(Y_c^j(\mathbf{q})\right) = C_c \cup X^j(\mathbf{q}) \cup X^{1-j}(\mathbf{q}'). \tag*{(8)}

The two tuple sets each contain mm vertices and are disjoint, since they lie on different sides. All 8m8m guards of CcC_c must be shot, leaving at most mm shots for the 2m2m states. At least mm states survive, and they must all lie on one side by Lemma 3. Thus one whole tuple is shot and the other whole tuple survives.

If c=#c = \#, all vertices in Y#j(q)Y_{\#}^j(\mathbf{q}) must be good, so qi∈Fiq_i \in F_i for every ii. Their neighborhood is C#∪Xj(q)C_{\#} \cup X^j(\mathbf{q}), of size 8m+m=k8m + m = k, and shooting this set captures the rabbit at round t+2t + 2.

For c∈Σc \in\Sigma, the territory may move from Xj(q)X^j(\mathbf{q}) to Ycj(q)Y_c^j(\mathbf{q}) and then return to Xj(q)X^j(\mathbf{q}). In this case, each possible rabbit walk traverses the same edge in both directions. These two rounds leave the tuple unchanged and simply delay the simulation. To simulate a word w=d1⋯dℓw = d_1 \cdots d_\ell, we start on side 0 and change sides after each letter. At odd positions rr, we move from side 0 to side 1 using command drd_r. At even positions rr, we move from side 1 to side 0 using command dr‾\overline{d_r}: traversing the corresponding transition paths backwards reads drd_r.

For example, consider two inverse automata with transitions

A1:q0→aq1→bq2→aq3,A_1:\quad q_0 \xrightarrow{a} q_1 \xrightarrow{b} q_2 \xrightarrow{a} q_3,

A2:r0→ar1→br2→ar0,A_2:\quad r_0 \xrightarrow{a} r_1 \xrightarrow{b} r_2 \xrightarrow{a} r_0,

together with their inverse transitions; all other transitions are undefined. Their initial states are q0q_0 and r0r_0, and their accepting sets are F1={q3}F_1=\{q_3\} and F2={r0}F_2=\{r_0\}. Both accept abaaba, with successive tuples q0=(q0,r0)\mathbf{q}^{0}=(q_0,r_0), q1=(q1,r1)\mathbf{q}^{1}=(q_1,r_1), q2=(q2,r2)\mathbf{q}^{2}=(q_2,r_2) and q3=(q3,r0)\mathbf{q}^{3}=(q_3,r_0). Here m=2m=2 and k=18k=18. The three letters are simulated by commands aa, bˉ\bar{b}, aa, followed by the test command #\#. Table 1 gives the resulting winning strategy, using 18 hunters in every round.

Round ttShot set WtW_tTerritory RtR_t after the shot
1ZZX0(q0)X^0(q^0)
2P0∪(Y0(q0)∖Ya0(q0))P_0 \cup(Y^0(q^0)\setminus Y_a^0(q^0))Ya0(q0)Y_a^0(q^0)
3Ca∪X0(q0)C_a \cup X^0(q^0)X1(q1)X^1(q^1)
4P1∪(Y1(q1)∖Ybˉ1(q1))P_1 \cup(Y^1(q^1)\setminus Y_{\bar{b}}^1(q^1))Ybˉ1(q1)Y_{\bar{b}}^1(q^1)
5Cbˉ∪X1(q1)C_{\bar{b}}\cup X^1(q^1)X0(q2)X^0(q^2)
6P0∪(Y0(q2)∖Ya0(q2))P_0 \cup(Y^0(q^2)\setminus Y_a^0(q^2))Ya0(q2)Y_a^0(q^2)
7Ca∪X0(q2)C_a \cup X^0(q^2)X1(q3)X^1(q^3)
8P1∪(Y1(q3)∖Y#1(q3))P_1 \cup(Y^1(q^3)\setminus Y_{\#}^1(q^3))Y#1(q3)Y_{\#}^1(q^3)
9C#∪X1(q3)C_{\#}\cup X^1(q^3)∅\varnothing

Table 1. A winning strategy for the common word abaaba.

Proposition 5. The construction has polynomial size and satisfies

hS(G)≤9m⟺⋂i=1mL(Ai)≠∅.(9)h_S(G)\leq9m \Longleftrightarrow\bigcap_{i=1}^{m}L(A_i)\ne\varnothing. \tag*{(9)}

Proof. Every winning strategy with at most k=9mk=9m hunters must shoot all of ZZ in the first round, by Lemma 3. Since ∣Z∣=k|Z|=k, this forces W1=ZW_1=Z and R1=X0(s)R_1=X^0(s).

Suppose a word w=d1⋯dℓw=d_1\cdots d_\ell is accepted by all automata, and let qr=δdr(qr−1)\mathbf{q}^r=\delta_{d_r}(\mathbf{q}^{r-1}) for r=1,…,ℓr=1,\ldots,\ell, with q0=s\mathbf{q}^0=s. Start with W1=ZW_1=Z. At step rr, let j=(r−1) mod 2j=(r-1)\bmod2 and choose cr=drc_r=d_r if j=0j=0, and cr=dˉrc_r=\bar{d}_r if j=1j=1. Set

W2r=Pj∪(Yj(qr−1)∖Ycrj(qr−1)),W_{2r}=P_j\cup\left(Y^j(\mathbf{q}^{r-1})\setminus Y_{c_r}^j(\mathbf{q}^{r-1})\right),
W2r+1=Ccr∪Xj(qr−1).W_{2r+1}=C_{c_r}\cup X^j(\mathbf{q}^{r-1}).

By [8], these shots leave Ycrj(qr−1)Y_{c_r}^{j}(q^{r-1}) and then X1−j(qr)X^{1-j}(q^r). In particular, when j=1j=1, the effective letter is cr=drc_r=d_r. Each shot uses exactly kk hunters. After all letters, select the test command and shoot C#C_{\#} together with the accepting tuple. This wins in 2ℓ+32\ell+3 rounds. For the empty word, apply the test immediately after the first round.

Conversely, suppose the intersection is empty and a winning strategy with at most kk hunters exists. After the forced first shot, we have R1=X0(s)R_1=X^0(s). If Rt=Xj(q)R_t=X^j(q) and qq is reachable from ss by a common word, then qq is not accepting. Lemma 4 therefore excludes the test command: the next pair of rounds either returns to the same tuple or applies a common letter and changes sides. The resulting tuple is again reachable. Inductively, every odd-round territory contains mm states and every even-round territory contains mm transition vertices. The territory never becomes empty, a contradiction.

For the size bound, let n=∑i∣Qi∣n=\sum_i |Q_i|. There are 2n2n state vertices. For fixed i,ci,c, a partial injection with tt defined transitions contributes tt good transition vertices and 2(∣Qi∣−t)2(|Q_i|-t) bad transition vertices. The four transition commands therefore contribute at most 8n8n transition vertices, and the test command contributes 2n2n test vertices. Including the guards, ZZ, and UU gives

∣V(G)∣≤12n+68m+2.|V(G)| \le12n+68m+2.

Since m≤nm\le n, the construction has O(n)O(n) vertices and O(n2)O(n^2) edges and is computable in polynomial time.

Unrestricted and directed games

Proof of Theorem 1. Membership in PSPACE follows from Lemma 2. For hardness, apply Proposition 5, and write N=∣V(G)∣N=|V(G)| and k=9mk=9m. We have 1≤k≤∣S∣1\le k\le|S|. The construction in the proof of [8 Proposition 4.2] adds to GG three looped cliques A,B,CA,B,C of sizes N−kN-k, kk, 2k2k, respectively, completely joins AA to BB, CC, SS, and completely joins BB to V(G)V(G). Figure 2 illustrates this construction. Since A∪CA\cup C induces a complete graph with a loop at every vertex and has (N−k)+2k=N+k(N-k)+2k=N+k vertices, h(H)≥N+kh(H)\ge N+k. The equivalence proved in [8 Proposition 4.2] therefore gives

Removing the restriction to the initial set $S$

Figure 2. Removing the restriction to the initial set SS, using the construction of Ben-Ameur, Gahlawat and Maddaloni [8 Proposition 4.2]. Thick lines represent complete joins, and all added joins are shown. Edges within GG are retained but not drawn. The notation Kt∘K_t^\circ denotes a clique of order tt with a loop at each vertex. The shaded sets induce a looped clique of order N+kN+k.

hS(G)≤k⟺h(H)=N+k⟺h(H)≤N+k.(10)h_S(G)\le k \Longleftrightarrow h(H)=N+k \Longleftrightarrow h(H)\le N+k. \tag*{(10)}

Construct a graph BHB_H by replacing each vertex vv of HH with two vertices v0,v1v^0,v^1, and each edge uvuv with the edges u0v1u^0v^1 and u1v0u^1v^0. A loop at vv gives the single edge v0v1v^0v^1. By [8 Lemma 3.2], h(BH)=h(H)h(B_H)=h(H). The graph BHB_H is simple and bipartite, and both transformations have polynomial size. Together with (9) and (10), this proves the result. We also record that BHB_H has no isolated vertices and, writing K=N+kK=N+k, has 4K4K vertices, with K≥3K\ge3.

Corollary 6. Deciding whether h(D)≤kh(D)\le k is PSPACE-complete for digraphs, even for symmetric digraphs with bipartite underlying graphs. Deciding whether one hunter wins is PSPACE-complete even for oriented graphs with positive minimum outdegree.

Proof. Replacing every edge of an undirected graph by two opposite arcs preserves its hunting number. Thus Theorem 1 gives the first assertion.

For the second, use the vertex-subdivision reduction of Ben-Ameur and Maddaloni [9, Theorem 4.3]. For a digraph FF with positive minimum outdegree and 1≤b≤∣V(F)∣1\le b\le|V(F)|, replace every vertex vv by a directed path v1,…,vbv^1,\ldots,v^b, and replace each arc uvuv by ubv1u^bv^1. Denote the resulting digraph by F[b]F^{[b]}. The cited reduction gives

h(F)≤b⟺h(F[b])≤1.(11)h(F)\le b \quad\Longleftrightarrow\quad h(F^{[b]})\le1. \tag*{(11)}

Apply it to the symmetric digraph FF obtained from BHB_H in the preceding proof, with b=Kb=K. Here b≥3b\ge3 and ∣V(F)∣=4b|V(F)|=4b, so the construction is polynomial. Every arc of F[b]F^{[b]} goes from one level to the next, cyclically through the bb levels. Since b≥3b\ge3, there are no loops or oppositely directed pairs of arcs; thus F[b]F^{[b]} is oriented. Its minimum outdegree is positive, so h(F[b])≥1h(F^{[b]})\ge1. Equation (11) proves hardness for one hunter. Membership in PSPACE follows from Lemma 2.

Firefighting

In the firefighting game of Althoe[t]mar, Schade and Schürenberg [12], all vertices are initially burning. At each round, at most kk vertices are extinguished, after which fire spreads from every remaining burning vertex to its neighbors; the remaining burning vertices also stay burning. The goal is to extinguish the whole graph. Write ffn⁡(G)\operatorname{ffn}(G) for the minimum required number of firefighters. Equivalently, the fugitive in the Hunters and Rabbit game may remain at its current vertex, so ffn⁡(G)\operatorname{ffn}(G) is also the inspection number of Bernshteyn and Lee [11].

To match the timing convention in (1), let RtR_t denote the burning vertices immediately after extinguishing in round tt, before fire spreads. Then

R1=V(G)∖W1,Rt+1=NG[Rt]∖Wt+1.R_1=V(G)\setminus W_1,\qquad R_{t+1}=N_G[R_t]\setminus W_{t+1}.

The burning set after the subsequent spread is NG[Rt]N_G[R_t], which is empty exactly when RtR_t is empty. Thus, if G∘G^\circ is obtained from GG by adding a loop at every vertex, then ffn⁡(G)=h(G∘)\operatorname{ffn}(G)=h(G^\circ).

Theorem 7. Deciding whether ffn⁡(G)≤k\operatorname{ffn}(G)\le k is PSPACE-complete for simple undirected graphs.

Proof. Membership in PSPACE follows from Lemma 2 applied to G∘G^\circ.

For hardness, we adapt the inverse-automata simulation. Loops introduce a new possibility: a territory can retain vertices of its current class while acquiring vertices of a neighboring class. The guard sizes must therefore also rule out territories mixing state vertices with transition or test vertices. We choose them so that every state tuple and every good transition class has a neighborhood of size k+mk+m, whereas a good test class has a neighborhood of size exactly kk.

Use the same state, transition and test vertices and the same adjacencies as in the construction of GG, with budget k=11mk=11m and guard sizes ∣P0∣=∣P1∣=6m|P_0|=|P_1|=6m and ∣Cc∣=9m|C_c|=9m for every c∈Γc\in\Gamma. Set ∣Z∣=k|Z|=k and ∣U∣=k+2|U|=k+2, and add a loop at every vertex. Denote this graph by G~\widetilde{G} and put S=Z∪X0∘(s)S=Z\cup X_0^\circ(s). The argument of Lemma 3 excludes vertices of UU, guards, bad transition vertices, bad test vertices and vertices of ZZ from every territory of a winning strategy using at most kk hunters. States on both sides would expose 12m>k12m > k guards, and vertices of two distinct commands would expose 18m>k18m > k guards. A state and a transition or test vertex would expose ∣Pj∣+∣Cc∣=15m>k|P_j| + |C_c| = 15m > k guards. Thus each nonempty territory consists entirely of states on one side or entirely of transition or test vertices of one command.

Suppose the current territory is X=Xj(q)X = X^j(q). The loops give NG~(X)=Pj∪X∪Yj(q)N_{\widetilde{G}}(X) = P_j \cup X \cup Y^j(q). All 6m6m guards must be shot, leaving at most 5m5m shots for the 6m6m vertices in X∪Yj(q)X \cup Y^j(q). At least mm of these vertices survive. The preceding restrictions force the next territory to be either the whole set XX or one whole command class Ycj(q)Y^j_c(q), whose vertices must all be good.

Now let Y=Ycj(q)Y = Y^j_c(q) be a good transition class, with c∈Σc \in\Sigma, and put X′=X1−j(q′)X' = X^{1-j}(q'), where q′=δc(q)q' = \delta_c(q) if j=0j = 0 and q′=δ‾c(q)q' = \overline{\delta}_c(q) if j=1j = 1. We have NG~(Y)=Cc∪Y∪X∪X′N_{\widetilde{G}}(Y) = C_c \cup Y \cup X \cup X'. Shooting the 9m9m guards leaves at most 2m2m shots for three disjoint sets of size mm. At least mm vertices survive, and they must form exactly one of YY, XX and X′X'.

If Y=Y#j(q)Y = Y^j_{\#}(q) is a good test class, then every qiq_i belongs to FiF_i. Its neighborhood is C#∪Y∪XC_{\#} \cup Y \cup X, of size $9m + m + m = k$, so the hunters can capture in the next round.

The first shot is forced to be ZZ, leaving X0(s)X^0(s). Before a test class is reached, the territory can remain unchanged, return from a transition class to the same tuple, or move to the opposite tuple by applying a common letter. Inductively, every tuple reached is reachable from ss by a common word. A state tuple and a good transition class each have a neighborhood of size 12m>k12m > k, so capture requires reaching a good test class and hence an accepting tuple. Conversely, a common accepted word gives a winning strategy by following its transitions and then applying the test: at each round, shoot all vertices of the neighborhood except those of the desired next territory. Each such shot uses kk hunters. Consequently,

hS(G~)≤k⟺⋂i=1mL(Ai)≠∅.(12)h_S(\widetilde{G}) \le k \quad\Longleftrightarrow\quad\bigcap_{i=1}^{m} L(A_i) \ne\varnothing. \tag*{(12)}

Finally, put N=∣V(G~)∣N = |V(\widetilde{G})| and apply the construction of [8 Proposition 4.2] used in the proof of Theorem 1. Its equivalence (10) gives h(H)≤N+kh(H) \le N + k if and only if hS(G~)≤kh_S(\widetilde{G}) \le k. Every vertex of G~\widetilde{G} has a loop, and all vertices added by this construction also have loops. Thus, if JJ is the simple graph obtained by deleting the loops of HH, then ffn⁡(J)=h(H)\operatorname{ffn}(J)=h(H). Both constructions have polynomial size, which completes the reduction.

Declaration of generative AI and AI-assisted technologies

During the preparation of this work, the authors used ChatGPT (OpenAI) to assist with proof checking, literature searches, English language editing, and the preparation of LaTeX and TikZ code. The authors reviewed and edited the resulting material and take full responsibility for the content of the final manuscript.

References

  1. [1]J. R. Britnell and M. Wildon. Finding a princess in a palace: a pursuit-evasion problem. The Electronic Journal of Combinatorics 20(1) (2013), P25. doi:10.37236/2296.DOI
  2. [2]J. Haslegrave. An evasion game on a graph. Discrete Mathematics 314 (2014), 1–5. doi:10.1016/j.disc.2013.09.004.DOI
  3. [3]T. V. Abramovskaya, F. V. Fomin, P. A. Golovach and M. Pilipczuk. How to hunt an invisible rabbit on a graph. European Journal of Combinatorics 52 (2016), 12–26. doi:10.1016/j.ejc.2015.08.002.DOI
  4. [4]V. Gruslys and A. Měroueh. Catching a mouse on a tree. Preprint, arXiv:1502.06591 (2015). https://arxiv.org/abs/1502.06591.
  5. [5]J. Bolkema and C. Groothuis. Hunting rabbits on the hypercube. Discrete Mathematics 342(2) (2019), 360–372. doi:10.1016/j.disc.2018.10.011.DOI
  6. [6]T. Dissaux, F. Fioravantes, H. Gahlawat and N. Nisse. Further results on the Hunters and Rabbit game through monotonicity. Information and Computation 305 (2025), 105302. doi:10.1016/j.ic.2025.105302.DOI
  7. [7]W. Ben-Ameur, H. Gahlawat and A. Maddaloni. Hunting a rabbit is hard. In F. V. Fomin and M. Xiao (eds.), Computing and Combinatorics (COCOON 2025), Lecture Notes in Computer Science 15983, Springer, Singapore (2026), 165–178. doi:10.1007/978-981-95-0215-8_13.
  8. [8]W. Ben-Ameur, H. Gahlawat, and A. Maddaloni. Hunting a rabbit: complexity, approximability and some characterizations. Theoretical Computer Science 1075 (2026), 115946. doi:10.1016/j.tcs.2026.115946.
  9. [9]W. Ben-Ameur and A. Maddaloni. Complexity results for a cops and robber game on directed graphs. Networks 86(2) (2025), 144–156. doi:10.1002/net.22284.
  10. [10]W. Ben-Ameur and A. Maddaloni. A cops and robber game and the meeting time of synchronous directed walks. Networks 84(2) (2024), 238–251. doi:10.1002/net.22234.
  11. [11]A. Bernshteyn and E. Lee. Searching for an intruder on graphs and their subdivisions. The Electronic Journal of Combinatorics 29(3) (2022), P3.9. doi:10.37236/10577.
  12. [12]J. Althotmar, J. Schade and T. Schürenberg. Complexity of firefighting on graphs. In WG 2026, LIPIcs 376 (2026), 4:1–4:15. doi:10.4230/LIPIcs.WG.2026.4.DOI
  13. [13]F. V. Fomin and D. M. Thilikos. An annotated bibliography on guaranteed graph searching. Theoretical Computer Science 399(3) (2008), 236–245. doi:10.1016/j.tcs.2008.02.040.DOI
  14. [14]R. Nowakowski and P. Winkler. Vertex-to-vertex pursuit in a graph. Discrete Mathematics 43(2–3) (1983), 235–239. doi:10.1016/0012-365X(83)90160-7.DOI
  15. [15]A. Quilliot. A short note about pursuit games played on a graph with a given genus. Journal of Combinatorial Theory, Series B 38(1) (1985), 89–92. doi:10.1016/0095-8956(85)90093-0.DOI
  16. [16]W. B. Kinnersley. Cops and Robbers is EXPTIME-complete. Journal of Combinatorial Theory, Series B 111 (2015), 201–220. doi:10.1016/j.jctb.2014.11.002.DOI
  17. [17]P. D. Seymour and R. Thomas. Graph searching and a min-max theorem for tree-width. Journal of Combinatorial Theory, Series B 58(1) (1993), 22–33. doi:10.1006/jctb.1993.1027.DOI
  18. [18]A. S. LaPaugh. Recontamination does not help to search a graph. Journal of the ACM 40(2) (1993), 224–245. doi:10.1145/151261.151263.DOI
  19. [19]S. Akhoondian Amiri, Ł. Kaiser, S. Kreutzer, R. Rabinovich and S. Siebertz. Graph searching games and width measures for directed graphs. In STACS 2015, LIPIcs 30 (2015), 34–47. doi:10.4230/LIPIcs.S-TACS.2015.34.DOI
  20. [20]S. Kreutzer and S. Ordyniak. Complexity and monotonicity results for domination games. Theoretical Computer Science 628 (2016), 1–29. doi:10.1016/j.tcs.2016.03.003.DOI
  21. [21]J.-C. Birget and S. W. Margolis. Two-letter group codes that preserve aperiodicity of inverse finite automata. Semigroup Forum 76 (2008), 159–168. doi:10.1007/s00233-007-9024-6.DOI
  22. [22]W. J. Savitch. Relationships between nondeterministic and deterministic tape complexities. Journal of Computer and System Sciences 4(2) (1970), 177–192. doi:10.1016/S0022-0000(70)80006-X.DOI

Paper details

vlnc:W_htxgyprq
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 (OpenAI)

View statement
Looking for related papers…
Contents