Abstract
Finding a second Hamiltonian cycle in a graph when one is already known is a challenging problem in graph theory. This paper introduces two novel algorithmic strategies for this task: a linear-time approximation algorithm that finds a "nearly" Hamiltonian cycle and a randomized subexponential-time algorithm for graphs with high minimum degrees. These results bridge the gap between existential proofs and practical computation for a problem that has long lacked subexponential-time solutions.
Introduction
A Hamiltonian cycle is a closed loop visiting every vertex in a graph exactly once. While finding the first cycle is NP-complete, the problem of finding a second cycle $C' \neq C$ given an initial cycle $C$ is equally daunting. For certain graph classes, such as cubic graphs or those with high minimum degrees, the existence of a second cycle is mathematically guaranteed. However, efficient algorithms to locate these cycles have remained elusive. This research addresses this gap by relaxing the search criteria through approximation and randomization.
Algorithmic Strategies
The authors propose two distinct approaches to finding a second cycle.
The Approximation Approach
Instead of searching for a full Hamiltonian cycle of length $n$, this method seeks a "long" cycle. The algorithm partitions the known cycle $C$ into consecutive intervals and employs bipartite matching to identify "chords"—edges not present in $C$—that connect these intervals. By strategically selecting and combining these chords, a new cycle is constructed that approximates the length of the original.
The Randomized Approach
This strategy focuses on finding a "red-independent and green-dominating set." The process involves:
- Randomized Selection: Using a randomized procedure to select a small vertex set $X$.
- Graph Reduction: "Shrinking" the original graph based on $X$ into a significantly smaller auxiliary graph $H$.
- Exact Computation: Applying a standard exact algorithm, such as Bellman–Held–Karp, to the reduced graph. The reduced problem size allows for much faster overall computation.
Key Insights and Performance
The effectiveness of these algorithms depends heavily on the graph's degree properties.
- Degree Ratios and Approximation: The "closeness" of the approximated cycle to the original length is determined by the ratio between the maximum degree ($\Delta$) and minimum degree ($\delta$). If $\Delta/\delta = o(\sqrt{n})$, a cycle of length $n - o(n)$ can be found in $O(m)$ time.
- Breaking the Exponential Barrier: For graphs with a sufficiently high minimum degree ($\delta = \omega(\log n)$), the randomized algorithm can find a second Hamiltonian cycle with high probability in subexponential time ($2^{o(n)}$). This is achieved because a small dominating set $X$ can serve as a "skeleton" for the second cycle, reducing a problem on $n$ vertices to one on approximately $4|X|$ vertices.
- Trade-offs: The research demonstrates how different minimum degree requirements allow for different running times. For example, with a minimum degree of $32c \cdot \log \sqrt{8n} + 4$, the algorithm runs in $poly(n) \cdot 2^{n/c}$ time.
Conclusion and Future Directions
While these algorithms offer significant speedups, they are most effective for graphs with high minimum degrees. Sparse Hamiltonian graphs, where degrees are low but a second cycle is guaranteed, remain a challenge. Future work may explore the complexity of this problem within the PPA (Polynomial Parity Argument) class or seek deterministic subexponential-time algorithms for graphs with polylogarithmic minimum degrees.
Summary updated