The Maximum Number of Appearances of a Word in a Grid

Gregory Patchell,Sam Spiro
DOI: https://doi.org/10.48550/arXiv.2207.11273
2022-07-23
Abstract:How can you fill a $3\times 3$ grid with the letters A and M so that the word ``AMM'' appears as many times as possible in the grid? More generally, given a word $w$ of length $n$, how can you fill an $n\times n$ grid so that $w$ appears as many times as possible? We solve this problem exactly for several families of words, and we asymptotically solve this problem in higher-dimensional grids.
Combinatorics
What problem does this paper attempt to address?