Online Firefighting on Cactus Graphs
Max Hugen, Bob Krekelberg, Alison Hsiang-Hsuan Liu
TL;DR
This paper extends online firefighting from trees to cactus-like graphs, establishing fundamental limits and algorithmic strategies. It proves an $\Omega(\sqrt{n})$ lower bound on tadpole graphs, highlighting the adversary’s advantage due to cycles, and then gives $O(\sqrt{n})$-competitive algorithms for $1$-almost-trees and for cactus graphs (ALG_A and ALG_C). It introduces a robust charging framework and graph-reduction techniques to align online decisions with the offline optimum, even when residual graphs diverge due to cycle-breaking. In a special case where firefighters arrive in even numbers, a simpler greedy strategy (ALG_E) attains a constant $3$-competitive ratio. Collectively, the results significantly deepen our understanding of online containment in cyclic graphs and provide near-optimal guarantees across graph classes of bounded cycle structure.
Abstract
It is known that the online firefighting is 2-competitive on trees (Coupechoux et al. 2019), which suggests that the problem is relatively easy on trees. We extend the study to graphs containing cycles. We first show that the presence of cycles gives a strong advantage to the adversary: cycles create situations where the algorithm and the optimal solution operate on different game states, and the adversary can exploit the uncertainty in the firefighter sequence to trap the algorithm. Specifically, we prove that even on a tadpole graph (a cycle with a tail path), no deterministic online algorithm achieves a competitive ratio better than $Ω(\sqrt{n})$, where n is the number of vertices. We then propose an $O(\sqrt{n})$-competitive algorithm for 1-almost trees, which contain at most one cycle and generalize tadpole graphs. We further generalize this algorithm to cactus graphs, in which multiple cycles may appear, but no two share more than one vertex, and show that the online firefighting problem on cactus graphs remains $O(\sqrt{n})$-competitive. Finally, since cactus graphs have treewidth at most 2, we study a variant where firefighters are released in pairs, that is, each round an even number of firefighters is available. Surprisingly, in this setting the competitive complexity is significantly reduced, and we prove that the problem is at most 3-competitive. The main technical challenges lie in both algorithm design and analysis, since the algorithm and the optimal solution may break different cycles and thus operate on different residual graphs. To overcome this difficulty, we design a charging framework that carefully partitions the vertices saved by the optimal solution and charges them to the vertices saved by the algorithm. Namely, the charging scheme is carefully constructed to ensure that each vertex saved by the algorithm is charged at most a constant number of times.
