Another Hamiltonian Cycle in Bipartite Pfaffian Graphs
Andreas Björklund, Petteri Kaski, Jesper Nederlof
TL;DR
The paper advances the understanding of the Another Hamiltonian Cycle problem by proving that bipartite Pfaffian graphs with minimum degree at least three admit both linear-time and logarithmic-space algorithms to find a second Hamiltonian cycle that includes a given anchor edge when a Hamiltonian cycle is provided. It introduces a novel witness framework based on anchored Hamiltonian cycles and good colorings, enabling linear-time construction of a Pfaffian orientation and efficient cycle-switching via auxiliary graphs and alternating cycles. In the cubic case, Thomason's lollipop method is shown to terminate in linear time, signaling a concrete efficiency gain for this classical approach in a nontrivial graph class. The framework extends to faster TSP and Hamiltonian-cycle counting in bipartite Pfaffian/planar graphs using width-based dynamic programming, yielding competitive planar-case bounds, and yields structural corollaries such as lower bounds on the number of Hamiltonian cycles per edge. Altogether, the work identifies a meaningful graph class where the Another Hamiltonian Cycle problem becomes tractable and connects deep graph-structural insights with practical algorithms for TSP and cycle counting.
Abstract
Finding a Hamiltonian cycle in a given graph is computationally challenging, and in general remains so even when one is further given one Hamiltonian cycle in the graph and asked to find another. In fact, no significantly faster algorithms are known for finding another Hamiltonian cycle than for finding a first one even in the setting where another Hamiltonian cycle is structurally guaranteed to exist, such as for odd-degree graphs. We identify a graph class -- the bipartite Pfaffian graphs of minimum degree three -- where it is NP-complete to decide whether a given graph in the class is Hamiltonian, but when presented with a Hamiltonian cycle as part of the input, another Hamiltonian cycle can be found efficiently. We prove that Thomason's lollipop method~[Ann.~Discrete Math.,~1978], a well-known algorithm for finding another Hamiltonian cycle, runs in a linear number of steps in cubic bipartite Pfaffian graphs. This was conjectured for cubic bipartite planar graphs by Haddadan [MSc~thesis,~Waterloo,~2015]; in contrast, examples are known of both cubic bipartite graphs and cubic planar graphs where the lollipop method takes exponential time. Beyond the lollipop method, we address a slightly more general graph class and present two algorithms, one running in linear-time and one operating in logarithmic space, that take as input (i) a bipartite Pfaffian graph $G$ of minimum degree three, (ii) a Hamiltonian cycle $H$ in $G$, and (iii) an edge $e$ in $H$, and output at least three other Hamiltonian cycles through the edge $e$ in $G$. We also present further improved algorithms for finding optimal traveling salesperson tours and counting Hamiltonian cycles in bipartite planar graphs with running times that are not known to hold in general planar graphs.
