On the Approximation of Shortest Common Supersequencesand Longest Common Subsequences
SIAM Journal on Computing
The Complexity of Some Problems on Subsequences and Supersequences
Journal of the ACM (JACM)
Theory of Computing Systems
Tetris is hard, even to approximate
COCOON'03 Proceedings of the 9th annual international conference on Computing and combinatorics
The complexity of flood-filling games on graphs
Discrete Applied Mathematics
An algorithmic analysis of the Honey-Bee game
Theoretical Computer Science
Spanning trees and the complexity of flood-filling games
FUN'12 Proceedings of the 6th international conference on Fun with Algorithms
The complexity of Free-Flood-It on 2íxn boards
Theoretical Computer Science
Discrete Applied Mathematics
Hi-index | 0.01 |
We study the complexity of the popular one player combinatorial game known as Flood-It. In this game the player is given an n×n board of tiles, each of which is allocated one of c colours. The goal is to fill the whole board with the same colour via the shortest possible sequence of flood filling operations from the top left. We show that Flood-It is NP-hard for c ≥ 3, as is a variant where the player can flood fill from any position on the board. We present deterministic (c-1) and randomised 2c/3 approximation algorithms and show that no polynomial time constant factor approximation algorithm exists unless P=NP. We then demonstrate that the number of moves required for the 'most difficult' boards grows like θ(√cn). Finally, we prove that for random boards with c ≥ 3, the number of moves required to flood the whole board is Ω(n) with high probability.