Skip to main content
QUICK REVIEW

[Paper Review] The Hamiltonicity, Hamiltonian Connectivity, and Longest (s, t)-path of L-shaped Supergrid Graphs

Fatemeh Keshavarz-Kohjerdi, Ruo-Wei Hung|arXiv (Cornell University)|Apr 4, 2019
Interconnection Networks and SystemsComputer Science26 references5 citations
TL;DR

This paper establishes necessary and sufficient conditions for Hamiltonicity and Hamiltonian connectivity in L-shaped supergrid graphs, proving that such graphs are Hamiltonian except under one trivial condition and Hamiltonian connected except under a few specific cases. It presents a linear-time algorithm to compute the longest (s,t)-path in these graphs, with applications in optimizing embroidery and 3D printing paths.

ABSTRACT

Supergrid graphs contain grid graphs and triangular grid graphs as their subgraphs. The Hamiltonian cycle and path problems for general supergrid graphs were known to be NP-complete. A graph is called Hamiltonian if it contains a Hamiltonian cycle, and is said to be Hamiltonian connected if there exists a Hamiltonian path between any two distinct vertices in it. In this paper, we first prove that every L-shaped supergrid graph always contains a Hamiltonian cycle except one trivial condition. We then verify the Hamiltonian connectivity of L-shaped supergrid graphs except few conditions. The Hamiltonicity and Hamiltonian connectivity of L-shaped supergrid graphs can be applied to compute the minimum trace of computerized embroidery machine and 3D printer when a L-like object is printed. Finally, we present a linear-time algorithm to compute the longest (s, t)-path of L-shaped supergrid graph given two distinct vertices s and t.

Motivation & Objective

  • To determine the necessary and sufficient conditions for Hamiltonicity in L-shaped supergrid graphs.
  • To verify the Hamiltonian connectivity of L-shaped supergrid graphs under specific structural constraints.
  • To develop an efficient algorithm for computing the longest (s,t)-path in L-shaped supergrid graphs.
  • To apply theoretical results to real-world problems in computerized embroidery and 3D printing path planning.

Proposed method

  • The authors analyze the structural properties of L-shaped supergrid graphs, defined as rectangular supergrid graphs with a rectangular subgraph removed from the upper-right corner.
  • They establish conditions under which such graphs contain a Hamiltonian cycle or a Hamiltonian path between any two vertices, based on vertex position and graph dimensions.
  • A case-based analysis is performed using vertex cut conditions and subgraph decomposition to verify Hamiltonian path existence.
  • The algorithm constructs the longest (s,t)-path by recursively solving subproblems on decomposed components, using known results on rectangular supergrid graphs.
  • The algorithm runs in O(mn) time by traversing the graph in a structured manner based on the position of s and t relative to the L-shape.
  • Theoretical proofs rely on lemmas and theorems that verify path existence under various configurations, including vertex cut and boundary conditions.

Experimental results

Research questions

  • RQ1Under what conditions is an L-shaped supergrid graph Hamiltonian?
  • RQ2When is an L-shaped supergrid graph Hamiltonian connected?
  • RQ3What is the structure of the longest (s,t)-path in an L-shaped supergrid graph?
  • RQ4How can the longest (s,t)-path be computed efficiently in such graphs?

Key findings

  • L-shaped supergrid graphs are Hamiltonian unless a single trivial condition is violated, which occurs only when the graph is too small or degenerate.
  • Hamiltonian connectivity holds for L-shaped supergrid graphs except under three specific structural conditions involving vertex positions and dimensions.
  • A linear-time algorithm (O(mn)) exists to compute the longest (s,t)-path in any L-shaped supergrid graph with distinct vertices s and t.
  • The algorithm correctly handles all cases, including those where {s,t} forms a vertex cut, by decomposing the graph into subgraphs and combining longest paths.
  • The longest (s,t)-path computation is based on recursive decomposition and known results on rectangular supergrid graphs, ensuring correctness and efficiency.
  • The theoretical results are directly applicable to real-world path-planning problems in computerized embroidery machines and 3D printers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.