English

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

Discrete Mathematics 2022-05-18 v1

Abstract

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

Keywords

Cite

@article{arxiv.2205.08025,
  title  = {The Hamiltonian Path Graph is Connected for Simple $s,t$ Paths in Rectangular Grid Graphs},
  author = {Rahnuma Islam Nishat and Venkatesh Srinivasan and Sue Whitesides},
  journal= {arXiv preprint arXiv:2205.08025},
  year   = {2022}
}
R2 v1 2026-06-24T11:19:17.590Z