Words with Repeated Letters in a Grid
Zachary Halberstam, Carl Schildkraut
TL;DR
The paper extends the study of word occurrences in large d-dimensional grids beyond distinct-letter words to those with repeated letters, introducing C_d(w) and the concept of w-extremal grids. It develops a multi-faceted methodology combining additive formulations, combinatorial reductions, local linear programming bounds, and Fourier analysis to establish sharp results in one and two dimensions and to obtain significant bounds in higher dimensions. Key contributions include a complete solution for C_1(w), a broad framework for d-stackability and d-slantability with structural results for short words, and concrete bounds for ABB-type words via a local LP method and a Fourier-based bound. The work also reveals deep connections to the modular n-queens problem, offering new perspectives on tiling-like questions and proposing several open problems for higher-dimensional regimes and longer words with potential algorithmic consequences.
Abstract
Given a word $w$, what is the maximum possible number of appearances of $w$ reading contiguously along any of the directions in $\{-1, 0, 1\}^d \setminus \{\mathbf{0}\}$ in a large $d$-dimensional grid (as in a word search)? Patchell and Spiro first posed a version of this question, which Alon and Kravitz completely answered for a large class of "well-behaved" words, including those with no repeated letters. We study the general case, which exhibits greater variety and is often more complicated (even for $d=1$). We also discuss some connections to other problems in combinatorics, including the storied $n$-queens problem.
