Linear-time algorithms for finding Hamiltonian and longest (s, t)-paths in C-shaped grid graphs

被引:9
|
作者
Keshavarz-Kohjerdi, Fatemeh [1 ]
Bagheri, Alireza [2 ]
机构
[1] Shahed Univ, Dept Math & Comp Sci, Tehran, Iran
[2] Amirkabir Univ Technol, Dept Comp Engn, Tehran, Iran
关键词
Grid graph; C-shaped grid graph; Hamiltonian; (s; t)-path; Hamiltonian cycle; Longest; PATHS; CYCLES;
D O I
10.1016/j.disopt.2019.100554
中图分类号
C93 [管理学]; O22 [运筹学];
学科分类号
070105 ; 12 ; 1201 ; 1202 ; 120202 ;
摘要
The longest and Hamiltonian path problems are well-known NP-hard problems in graph theory. Despite many applications of these problems, they are still open for many classes of graphs, including solid grid graphs and grid graphs with some holes. We consider the longest and Hamiltonian (s, t)-path problems in C-shaped grid graphs. A (s, t)-path is a path between two given vertices s and t of the graph. A C-shaped grid graph is a rectangular grid graph such that a rectangular grid subgraph is removed from it to make a C-liked shape. In this paper, we first give the necessary conditions for the existence of Hamiltonian cycles and Hamiltonian (s, t)-paths in such graphs. Then by given a linear-time algorithm for finding Hamiltonian cycles and Hamiltonian (s, t)-paths, we show that these necessary conditions are also sufficient. Finally, we give a linear-time algorithm for finding the longest (s, t)-path in these graphs. (C) 2019 Elsevier B.V. All rights reserved.
引用
收藏
页数:34
相关论文
共 20 条