A Tight Lower Bound for Cycle Detection in Grid Graphs

Abstract

We prove that any algorithm for detecting cycles in an m × n grid graph, where cells are colored and adjacency is defined by matching colors, must read all mn cells in the worst case for all grids with m ≥ 2 and n ≥ 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 × 2, 2 × 3, 3 × 2, and 3 × 3 blocks, each equipped with an independent block adversary, composed via a checkerboard isolation scheme.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…