English

A faster polynomial-space algorithm for Hamiltonian cycle parameterized by treedepth

Data Structures and Algorithms 2026-03-26 v1

Abstract

A large number of NP-hard graph problems can be solved in f(w)nO(1)f(w)n^{O(1)} time and space when the input graph is provided together with a tree decomposition of width ww, in many cases with a modest exponential dependence f(w)f(w) on ww. Moreover, assuming the Strong Exponential-Time Hypothesis (SETH) we have essentially matching lower bounds for many such problems. They main drawback of these results is that the corresponding dynamic programming algorithms use exponential space, which makes them infeasible for larger ww, and there is some evidence that this cannot be avoided. This motivates using somewhat more restrictive structure/decompositions of the graph to also get good (exponential) dependence on the corresponding parameter but use only polynomial space. A number of papers have contributed to this quest by studying problems relative to treedepth, and have obtained fast polynomial space algorithms, often matching the dependence on treewidth in the time bound. E.g., a number of connectivity problems could be solved by adapting the cut-and-count technique of Cygan et al. (FOCS 2011, TALG 2022) to treedepth, but this excluded well-known path and cycle problems such as Hamiltonian Cycle (Hegerfeld and Kratsch, STACS 2020). Recently, Nederlof et al. (SIDMA 2023) showed how to solve Hamiltonian Cycle, and several related problems, in 5τnO(1)5^\tau n^{O(1)} randomized time and polynomial space when provided with an elimination forest of depth τ\tau. We present a faster (also randomized) algorithm, running in 4τnO(1)4^\tau n^{O(1)} time and polynomial space, for the same set of problems. We use ordered pairs of what we call consistent matchings, rather than perfect matchings in an auxiliary graph, to get the improved time bound.

Keywords

Cite

@article{arxiv.2603.24492,
  title  = {A faster polynomial-space algorithm for Hamiltonian cycle parameterized by treedepth},
  author = {Stefan Kratsch},
  journal= {arXiv preprint arXiv:2603.24492},
  year   = {2026}
}

Comments

21 pages

R2 v1 2026-07-01T11:37:36.184Z