Click any node to start the fire there
Normal
On fire
Protected
Burned
Origin
Total nodes
—
Saved
—
Burned
—
Surviving rate
—
Round
—
Select a graph type, adjust size, then click a node to ignite.
Halin Graph — Optimal Strategy
A Halin graph is a rooted plane tree with all leaves connected by an outer cycle. This hierarchical + cyclic structure enables efficient fire containment.
Case 1 — Fire at a leaf
Protect the leaf's 2 cycle-neighbours and its tree-parent (3 firefighters, round 1). Fire is confined to 1 node — all n−1 remaining nodes are saved.
Case 2 — Fire at internal node
Protect the node's parent and 2 children. This partitions the graph into disjoint subtrees of size ≤ 2n/3. Fire cannot cross protected boundaries.
Budget: 3 firefighters in round 1, 2 per round thereafter.