English

The Longest $(s, t)$-paths of $O$-shaped Supergrid Graphs

Discrete Mathematics 2019-11-21 v1 Computational Complexity Combinatorics

Abstract

In this paper, we continue the study of the Hamiltonian and longest (s,t)(s, t)-paths of supergrid graphs. The Hamiltonian (s,t)(s, t)-path of a graph is a Hamiltonian path between any two given vertices ss and tt in the graph, and the longest (s,t)(s, t)-path is a simple path with the maximum number of vertices from ss to tt in the graph. A graph holds Hamiltonian connected property if it contains a Hamiltonian (s,t)(s, t)-path. These two problems are well-known NP-complete for general supergrid graphs. An OO-shaped supergrid graph is a special kind of a rectangular grid graph with a rectangular hole. In this paper, we first prove the Hamiltonian connectivity of OO-shaped supergrid graphs except few conditions. We then show that the longest (s,t)(s, t)-path of an OO-shaped supergrid graph can be computed in linear time. The Hamiltonian and longest (s,t)(s, t)-paths of OO-shaped supergrid graphs can be applied to compute the minimum trace of computerized embroidery machine and 3D printer when a hollow object is printed.

Keywords

Cite

@article{arxiv.1911.08558,
  title  = {The Longest $(s, t)$-paths of $O$-shaped Supergrid Graphs},
  author = {Ruo-Wei Hung and Fatemeh Keshavarz-Kohjerdi},
  journal= {arXiv preprint arXiv:1911.08558},
  year   = {2019}
}

Comments

21 pages, 27 figures. arXiv admin note: substantial text overlap with arXiv:1908.07447, arXiv:1904.02581