English

A Tight Lower Bound for Cycle Detection in Grid Graphs

Data Structures and Algorithms 2026-04-28 v1

Abstract

We prove that any algorithm for detecting cycles in an m×nm \times n grid graph, where cells are colored and adjacency is defined by matching colors, must read all mnmn cells in the worst case for all grids with m2m \geq 2 and n2n \geq 2. The proof is by adversary argument: we construct an adaptive adversary that maintains ambiguity -- one completion containing a cycle and one without -- until the final cell is read. The construction proceeds by tiling the grid with 2×22 \times 2, 2×32 \times 3, 3×23 \times 2, and 3×33 \times 3 blocks, each equipped with an independent block adversary, composed via a checkerboard isolation scheme.

Keywords

Cite

@article{arxiv.2604.23894,
  title  = {A Tight Lower Bound for Cycle Detection in Grid Graphs},
  author = {Andrew Au},
  journal= {arXiv preprint arXiv:2604.23894},
  year   = {2026}
}
R2 v1 2026-07-01T12:36:06.201Z