The hamiltonian path graph is connected for simple s, t paths in rectangular grid graphs

被引:0
|
作者
Nishat, Rahnuma Islam [1 ]
Srinivasan, Venkatesh [2 ]
Whitesides, Sue [3 ]
机构
[1] Brock Univ, Dept Comp Sci, St Catharines, ON, Canada
[2] Santa Clara Univ, Dept Math & Comp Sci, Santa Clara, CA USA
[3] Univ Victoria, Dept Comp Sci, Victoria, BC, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
Reconfiguration algorithm; Hamiltonian paths; Simple paths; Rectangular grid graphs; Optimal-time algorithm; Lower bound; Solution-space graph; SELF-AVOIDING WALKS; PARAMETERIZED COMPLEXITY; CYCLES; COSTS;
D O I
10.1007/s10878-024-01207-w
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
An s, t Hamiltonian path P for an m xn rectangular grid graph G is a Hamiltonian path from the top-left corner s to the bottom-right corner t. We define an operation "square-switch" on s, t Hamiltonian paths P affecting only those edges of P that lie in some small (2 units by 2 units) square subgrid of G. We prove that when applied to suitable locations, the result of the square-switch is another s, t Hamiltonian path. Then we use square-switch to achieve a reconfiguration result for a subfamily of s, t Hamiltonian paths we call simple paths, that has the minimum number of bends for each maximal internal subpath connecting any two vertices on the boundary of the grid graph. We give an algorithmic proof that the Hamiltonian path graph G whose vertices represent simple paths is connected when edges arise from the square-switch operation: our algorithm reconfigures any given initial simple path P to any given target simple path P ' in O(|P|) time and O(|P|) space using at most 5|P|/4 square-switches, where |P| = m x n is the number of vertices in the grid graph G and hence in any Hamiltonian path P for G. Thus the diameter of the simple path graph G is at most 5mn/ 4 for the square-switch operation, which we show is asymptotically tight for this operation.
引用
收藏
页数:48
相关论文
共 50 条
  • [1] The Hamiltonian Path Graph is Connected for Simple s, t Paths in Rectangular Grid Graphs
    Nishat, Rahnuma Islam
    Srinivasan, Venkatesh
    Whitesides, Sue
    COMPUTING AND COMBINATORICS, COCOON 2022, 2022, 13595 : 463 - 475
  • [2] Reconfiguring Simple s, t Hamiltonian Paths in Rectangular Grid Graphs
    Nishat, Rahnuma Islam
    Srinivasan, Venkatesh
    Whitesides, Sue
    COMBINATORIAL ALGORITHMS, IWOCA 2021, 2021, 12757 : 501 - 515
  • [3] A linear-time algorithm for finding Hamiltonian (s, t)-paths in odd-sized rectangular grid graphs with a rectangular hole
    Fatemeh Keshavarz-Kohjerdi
    Alireza Bagheri
    The Journal of Supercomputing, 2017, 73 : 3821 - 3860
  • [4] A linear-time algorithm for finding Hamiltonian (s, t)-paths in odd-sized rectangular grid graphs with a rectangular hole
    Keshavarz-Kohjerdi, Fatemeh
    Bagheri, Alireza
    JOURNAL OF SUPERCOMPUTING, 2017, 73 (09): : 3821 - 3860
  • [5] A linear-time algorithm for finding Hamiltonian (s, t)-paths in even-sized rectangular grid graphs with a rectangular hole
    Keshavarz-Kohjerdi, Fatemeh
    Bagheri, Alireza
    THEORETICAL COMPUTER SCIENCE, 2017, 690 : 26 - 58
  • [6] The number of Hamiltonian paths in a rectangular grid
    Collins, KL
    Krompart, LB
    DISCRETE MATHEMATICS, 1997, 169 (1-3) : 29 - 38
  • [7] Hamiltonian (s, t)-paths in solid supergrid graphs
    Fatemeh Keshavarz-Kohjerdi
    Alireza Bagheri
    Computational and Applied Mathematics, 2024, 43
  • [8] Hamiltonian (s, t)-paths in solid supergrid graphs
    Keshavarz-Kohjerdi, Fatemeh
    Bagheri, Alireza
    COMPUTATIONAL & APPLIED MATHEMATICS, 2024, 43 (03):
  • [9] Hamiltonian Paths in Some Classes of Grid Graphs
    Keshavarz-Kohjerdi, Fatemeh
    Bagheri, Alireza
    JOURNAL OF APPLIED MATHEMATICS, 2012,
  • [10] Reconfiguration of Hamiltonian Cycles in Rectangular Grid Graphs
    Nishat, Rahnuma Islam
    Whitesides, Sue
    INTERNATIONAL JOURNAL OF FOUNDATIONS OF COMPUTER SCIENCE, 2023, 34 (07) : 773 - 793