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

Florent Foucaud, Atrayee Majumder, Tobias Mömke, Aida Roshany-TabriziarXiv 2025 · DOI

Introduction

The study of covering graph vertices with paths is a cornerstone of algorithmic graph theory. This paper addresses two distinct but related problems: Path Partition and Path Cover. In a Path Partition, the goal is to cover every vertex of a graph using the minimum number of vertex-disjoint paths. In a Path Cover, the constraint of disjointness is relaxed, allowing paths to overlap or share vertices.

While Path Partition has been a subject of intense study since the 1970s, the "true" Path Cover problem—where overlaps are permitted—has historically received significantly less attention. Both problems are NP-hard on general graphs, as they both generalize the Hamiltonian Path problem. This research bridges the gap by providing efficient algorithms for specific graph classes, namely trees and graphs with bounded treewidth.

Path Cover on Trees: A Linear-Time Solution

For trees, the authors establish a clean structural bound: the size of an optimal Path Cover is exactly $\lceil \ell/2 \rceil$, where $\ell$ is the number of leaves in the tree. This is a clean, intuitive bound that suggests the optimal solution is driven by the tree's extremities.

To achieve this bound, the paper introduces a linear-time $O(n)$ algorithm based on a modified Depth-First Search (DFS). The algorithm uses timestamps to track vertex visits and subtree processing. By greedily pairing "open" paths at each node to form "closed" paths (paths where both endpoints are leaves), the algorithm ensures an optimal cover without exceeding the leaf-based bound. This represents the first linear-time result for Path Cover on trees.

Algorithmic Strategies for Bounded Treewidth

The complexity of these problems increases when moving from trees to graphs of bounded treewidth. The authors employ three primary techniques to handle this:

1. Dynamic Programming on Tree Decompositions

For Path Cover, the authors utilize a bottom-up dynamic programming (DP) approach on tree decompositions. They define "partial paths" within the "bags" of the decomposition. Each vertex in a bag is assigned one of ten possible types based on its connectivity to ancestors and descendants. A significant challenge here is that, unlike Path Partition where the number of paths through a bag is limited by the bag size, Path Cover allows an arbitrary number of paths to overlap. This leads to an XP algorithm with a running time of $n^{t^{O(t)}}$, where $n$ is the number of vertices and $t$ is the treewidth.

2. The Cut&Count Technique

To optimize Path Partition, the authors apply the Cut&Count method. This randomized technique reduces the complexity from $2^{O(t \log t)}n$ to $2^{O(t)}n$. By leveraging the Isolation Lemma to count "consistent cuts" in the graph, the authors provide a randomized Fixed-Parameter Tractable (FPT) algorithm, significantly improving upon previous deterministic bounds.

Key Insights: Cover vs. Partition

A central contribution of the paper is highlighting the structural divergence between Path Cover and Path Partition. Despite their nomenclatural similarity, they behave differently under various constraints:

  • Star Graphs: On a star graph with $k$ leaves, a Path Partition requires $k-1$ paths, whereas a Path Cover requires only $\lceil k/2 \rceil$ paths.
  • Path Multiplicity: In Path Partition, the number of paths passing through a separator (like a bag in a tree decomposition) is strictly bounded by the size of that separator. In Path Cover, the potential for overlap means a single vertex could theoretically be part of many different paths, complicating the state space for DP and making FPT results harder to prove.

The authors also demonstrate the versatility of their approach by extending these algorithms to variants such as induced paths (where paths cannot have chords) and edge-disjoint paths.

Conclusion and Future Directions

This work provides a comprehensive algorithmic framework for path-based covering problems. While the results for trees and Path Partition on bounded treewidth are definitive, the Path Cover problem on bounded treewidth remains a subject of intrigue.

The most prominent open question is whether Path Cover is Fixed-Parameter Tractable (FPT) with respect to treewidth. While the authors achieved an XP algorithm (where the exponent depends on the parameter $t$), the transition to FPT—where the parameter $t$ is fully separated from the input size $n$—remains unproven. The authors suggest that the "unbounded paths" challenge makes this a particularly difficult hurdle, marking a striking contrast to the now-settled complexity of Path Partition.

Summary updated

BibTeX
@misc{foucaud2025polynomial,
  author = {Florent Foucaud and Atrayee Majumder and Tobias Mömke and Aida Roshany-Tabrizi},
  title = {{Polynomial-time algorithms for PATH COVER and PATH PARTITION on trees and graphs of bounded treewidth}},
  year = {2025},
  eprint = {2511.07160},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.07160},
}
Figure