The complexity of flood-filling games on graphs

We consider the complexity of 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. Although computing the minimum number of moves required to flood an arbitrary graph is known to be NP-hard, we demonstrate a polynomial time algorithm to compute the minimum number of moves required to link each pair of vertices. We apply this result to compute in polynomial time the minimum number of moves required to flood a path, and an additive approximation to this quantity for an arbitrary kxn board, coloured with a bounded number of colours, for any fixed k. On the other hand, we show that, for k>=3, determining the minimum number of moves required to flood a kxn board coloured with at least four colours remains NP-hard.

[1]  Raphaël Clifford,et al.  The Complexity of Flood Filling Games , 2011, Theory of Computing Systems.

[2]  Aurélie Lagoutte,et al.  Jeux d'inondation dans les graphes , 2010 .

[3]  Xin-She Yang,et al.  Introduction to Algorithms , 2021, Nature-Inspired Optimization Algorithms.

[4]  Gerhard J. Woeginger,et al.  An Algorithmic Analysis of the Honey-Bee Game , 2010, FUN.

[5]  Esko Ukkonen,et al.  The Shortest Common Supersequence Problem over Binary Alphabet is NP-Complete , 1981, Theor. Comput. Sci..

[6]  Ronald L. Rivest,et al.  Introduction to Algorithms , 1990 .

[7]  Kitty Meeks,et al.  The complexity of Free-Flood-It on 2×n boards , 2011, Theor. Comput. Sci..