arXiv:2610.05459cs.DSOct 2026

Manuscript Offprint

arXiv:2610.05459

The Infectious Vaccination Problem: a variant of Firefighting with Spreading Defence

Jessica Enright, Melissa A. Huggan, Ethan Hunter-Frankland, Margaret-Ellen Messinger, Dylan Pearson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Firefighter Problem models a spreading process (originally a fire, alternatively an infection or rumour, for example) on a graph. A defender saves a single vertex per turn; after each defence, the fire spreads to the unburned and undefended neighbours of all burning vertices. Deciding whether a strategy exists for the defender to protect some targeted number of vertices is computationally hard in graphs in general, but tractable in some restricted cases.

Inspired by research into spreadable rabies vaccines for bats, we study a variant of the Firefighter problem in which defence also spreads. Some approximation results are already known for this problem; we provide algorithmic and hardness results, as well as containment results for the infinite n-dimensional Cartesian and strong grid graphs.

1 Introduction

The Firefighter problem (FIREFIGHTER) is a deterministic, discrete-time game that models the spread of fire on a graph. Originally introduced by Harnell [14], FIREFIGHTER and its variants have been well-studied; see the survey by Finbow and MacGillivray [9].

In a game of FIREFIGHTER, vertices can be in one of three states: open, burning or defended. All vertices are initially open. However, once burning or defended, a vertex remains so for the rest of the game. An instance of FIREFIGHTER on a rooted graph G proceeds as follows. At time-step t = 0, the fire breaks out at root r. For each time-step t > 0, the firefighter selects a vertex to defend, and then the fire spreads to the open neighbours of all burning vertices. If there is some time-step at which no open vertex is adjacent to a burning vertex, we declare the fire to be contained and count the number of saved vertices, those either defended or open and therefore unreachable by the fire. The number of time-steps from outbreak to containment of a particular instance is the lifetime of the instance. A certificate for an instance of FIREFIGHTER is a strategy, a sequence of vertices selected for defence (in order of when they are defended).

In the generalised model, b-FIREFIGHTER, up to b vertices are defended at each time-step for some fixed budget b. We consider a variant of FIREFIGHTER and b-FIREFIGHTER called the Infectious Vaccination problem (INFECTVAX). As INFECTVAX is inspired by studies of spreadable –or self-disseminating– animal vaccines in combatting viruses, we refer to the fire as the contagion that spreads during each time-step. All defended vertices are called vaccinated and those that are defended directly are called inoculated. INFECTVAX proceeds as b-FIREFIGHTER with an inoculation budget b per time-step, but the vaccination spreads in the same way as the contagion. That is, for INFECTVAX: all vertices are initially open and at time-step 0, the contagion breaks out at a root r of graph G. During each time-step t > 0,

  1. the vaccine spreads from all vaccinated vertices to their open neighbours;

  2. up to b vertices are inoculated, for some integer budget b; and

*School of Computing Science, University of Glasgow; Jessica.Enright@glasgow.ac.uk

†^{\dagger}Department of Mathematics and Computer Science, University of Lethbridge; melissa.huggan@uleth.ca

‡^{\ddagger}School of Mathematics, University of Birmingham; e.hunter-frankland@bham.ac.uk

§^{§}Department of Mathematics and Computer Science, Mount Allison University; mmessinger@mta.ca

^{¶}Department of Mathematics and Computer Science, Mount Allison University.

  1. the contagion spreads to the open neighbours of all contagious vertices.

An instance of INFECTVAX is composed of a graph GG, a root r∈V(G)r \in V(G), a budget b∈Nb \in \mathbb{N} and a target number of vertices to save k∈Nk \in \mathbb{N}. We represent an instance of INFECTVAX as the tuple (G,r,b,k)(G, r, b, k). Interestingly, INFECTVAX has been studied as the spreading vaccination model by Anshelevich et al. [1] and Floderus et al. [10]. Both studied it as an optimisation problem with two objectives: maximising the number of saved vertices and minimising the budget used. Anshelevich et al. [1] prove the existence of constant-factor approximation algorithms for maximising saved vertices, and use work by Floderus et al. [10] to show that there is no ((1−o(1))ln⁡n)((1 - o(1)) \ln n) approximation (unless NP⊆DTIME(npolyln⁡(n))NP \subseteq DTIME(n^{\text{poly}\ln(n)})) for minimising the budget, but that there is a polynomial-time ln⁡n\ln n-factor approximation algorithm for this objective [1]. They observe that INFECTVAX is easier to approximate than FIREFIGHTER.

We begin with terminology and formal definitions in Section 2. In Section 3, we show that for an interval graph G on n vertices and m edges, INFECTVAX on input (G,r,b,k)(G, r, b, k) can be solved in O(n+m)\mathcal{O}(n + m) time. In Section 4, we consider a parameterised approach and show that INFECTVAX is FPT (fixed-parameter tractable) when parameterised by budget and vertex cover size, or by budget and neighbourhood diversity. We further show in Section 4.3, that INFECTVAX is in XP when parameterised by maximum path length. With budget b = 1, we study two vertex-transitive families of infinite graphs in Section 5: the infinite n-dimensional Cartesian grid and the infinite n-dimensional strong grid. We provide strategies which guarantee containment on both graph families. Since the number of vertices saved is infinite, we bound the number of time-steps until containment occurs, which in turn bounds the number of contagious vertices. Finally, in Section 5.3, we show that for a fixed budget b the number of inoculations required to contain the virus is not closed under induced subgraphs.