The Hamiltonian Cycle problem is the problem of deciding whether an n‐vertex graph G has a cycle passing through all vertices of G. This problem is a classic NP‐complete problem. Finding an exact algorithm that solves it in time for some constant α
<2 was a notorious open problem until very recently, when Björklund presented a randomized algorithm that uses
time and polynomial space. The Longest Cycle problem, in which the task is to find a cycle of maximum length, is a natural generalization of the Hamiltonian Cycle problem. For a claw‐free graph G, finding a longest cycle is equivalent to finding a closed trail (i.e., a connected even subgraph, possibly consisting of a single vertex) that dominates the largest number of edges of some associated graph H. Using this translation we obtain two deterministic algorithms that solve the Longest Cycle problem, and consequently the Hamiltonian Cycle problem, for claw‐free graphs: one algorithm that uses time and exponential space, and one algorithm that uses
time and polynomial space.