English

Exact and Approximate Algorithms for Computing a Second Hamiltonian Cycle

Data Structures and Algorithms 2020-08-11 v2 Computational Complexity

Abstract

In this paper we consider the following total functional problem: Given a cubic Hamiltonian graph GG and a Hamiltonian cycle C0C_0 of GG, how can we compute a second Hamiltonian cycle C1C0C_1 \neq C_0 of GG? Cedric Smith proved in 1946, using a non-constructive parity argument, that such a second Hamiltonian cycle always exists. Our main result is an algorithm which computes the second Hamiltonian cycle in time O(n2(0.3ε)n)O(n \cdot 2^{(0.3-\varepsilon)n}) time, for some positive constant ε>0\varepsilon>0, and in polynomial space, thus improving the state of the art running time for solving this problem. Our algorithm is based on a fundamental structural property of Thomason's lollipop algorithm, which we prove here for the first time. In the direction of approximating the length of a second cycle in a Hamiltonian graph GG with a given Hamiltonian cycle C0C_0 (where we may not have guarantees on the existence of a second Hamiltonian cycle), we provide a linear-time algorithm computing a second cycle with length at least n4α(n+2α)+8n - 4\alpha (\sqrt{n}+2\alpha)+8, where α=Δ2δ2\alpha = \frac{\Delta-2}{\delta-2} and δ,Δ\delta,\Delta are the minimum and the maximum degree of the graph, respectively. This approximation result also improves the state of the art.

Cite

@article{arxiv.2004.06036,
  title  = {Exact and Approximate Algorithms for Computing a Second Hamiltonian Cycle},
  author = {Argyrios Deligkas and George B. Mertzios and Paul G. Spirakis and Viktor Zamaraev},
  journal= {arXiv preprint arXiv:2004.06036},
  year   = {2020}
}

Comments

28 pages, 4 algorithms, 5 figures

R2 v1 2026-06-23T14:49:35.870Z