The Hamiltonian Path Graph is Connected for Simple s,t Paths in Rectangular Grid Graphs

Abstract

A simple s,t path P in a rectangular grid graph G is a Hamiltonian path from the top-left corner s to the bottom-right corner t such that each internal subpath of P with both endpoints a and b on the boundary of G has the minimum number of bends needed to travel from a to b (i.e., 0, 1, or 2 bends, depending on whether a and b are on opposite, adjacent, or the same side of the bounding rectangle). Here, we show that P can be reconfigured to any other simple s,t path of G by switching 2× 2 squares, where at most 5|G|/4 such operations are required. Furthermore, each square-switch is done in O(1) time and keeps the resulting path in the same family of simple s,t paths. Our reconfiguration result proves that the Hamiltonian path graph G for simple s,t paths is connected and has diameter at most 5|G|/4 which is asymptotically tight.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…