We consider problems related to the combinatorial game (Free-) Flood-It, in which players aim to make a coloured graph monochromatic with the minimum possible number of flooding operations. We show that the minimum number of moves required to flood any given graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T. This result is then applied to give two polynomial-time algorithms for flood-filling problems. Firstly, we can compute in polynomial time the minimum number of moves required to flood a graph with only a polynomial number of connected subgraphs. Secondly, given any coloured connected graph and a subset of the vertices of bounded size, the number of moves required to connect this subset can be computed in polynomial time.
[1]
Aurélie Lagoutte,et al.
Jeux d'inondation dans les graphes
,
2010
.
[2]
Ronald L. Rivest,et al.
Introduction to Algorithms
,
1990
.
[3]
Raphaël Clifford,et al.
The Complexity of Flood Filling Games
,
2011,
Theory of Computing Systems.
[4]
Eric Thierry,et al.
Flooding games on graphs
,
2014,
Discret. Appl. Math..
[5]
Kitty Meeks,et al.
The complexity of flood-filling games on graphs
,
2011,
Discret. Appl. Math..
[6]
Gerhard J. Woeginger,et al.
An algorithmic analysis of the Honey-Bee game
,
2012,
Theor. Comput. Sci..
[7]
Kitty Meeks,et al.
The complexity of Free-Flood-It on 2×n boards
,
2011,
Theor. Comput. Sci..