English

Polynomial-time algorithms for PATH COVER and PATH PARTITION on trees and graphs of bounded treewidth

Data Structures and Algorithms 2025-11-11 v1 Discrete Mathematics

Abstract

In the PATH COVER problem, one asks to cover the vertices of a graph using the smallest possible number of (not necessarily disjoint) paths. While the variant where the paths need to be pairwise vertex-disjoint, which we call PATH PARTITION, is extensively studied, surprisingly little is known about PATH COVER. We start filling this gap by designing a linear-time algorithm for PATH COVER on trees. We show that PATH COVER can be solved in polynomial time on graphs of bounded treewidth using a dynamic programming scheme. It runs in XP time ntO(t)n^{t^{O(t)}} (where nn is the number of vertices and tt the treewidth of the input graph) or κtO(t)n\kappa^{t^{O(t)}}n if there is an upper-bound κ\kappa on the solution size. A similar algorithm gives an FPT 2O(tlogt)n2^{O(t\log t)}n algorithm for PATH PARTITION, which can be improved to (randomized) 2O(t)n2^{O(t)}n using the Cut\&Count technique. These results also apply to the variants where the paths are required to be induced (i.e. chordless) and/or edge-disjoint.

Keywords

Cite

@article{arxiv.2511.07160,
  title  = {Polynomial-time algorithms for PATH COVER and PATH PARTITION on trees and graphs of bounded treewidth},
  author = {Florent Foucaud and Atrayee Majumder and Tobias Mömke and Aida Roshany-Tabrizi},
  journal= {arXiv preprint arXiv:2511.07160},
  year   = {2025}
}
R2 v1 2026-07-01T07:29:43.061Z