A polynomial-time algorithm to determine (almost) Hamiltonicity of dense regular graphs
We give a polynomial-time algorithm for detecting very long cycles in dense regular graphs. Specifically, we show that, given , there exists a such that the following holds: there is a polynomial-time algorithm that, given a -regular graph on vertices with , determines whether contains a cycle on at least vertices. The problem becomes NP-complete if we drop either the density or the regularity condition. The algorithm combines tools from extremal graph theory and spectral partitioning as well as some further algorithmic ingredients.