English

Colourful components in $k$-caterpillars and planar graphs

Discrete Mathematics 2025-01-15 v8

Abstract

A connected component of a vertex-coloured graph is said to be colourful if all its vertices have different colours. By extension, a graph is colourful if all its connected components are colourful. Given a vertex-coloured graph GG and an integer pp, the Colourful Components problem asks whether there exist at most pp edges whose removal makes GG colourful and the Colourful Partition problem asks whether there exists a partition of GG into at most pp colourful components. In order to refine our understanding of the complexity of the problems on trees, we study both problems on kk-caterpillars, which are trees with a central path PP such that every vertex not in PP is within distance kk from a vertex in PP. We prove that Colourful Components and Colourful Partition are NP-complete on 44-caterpillars with maximum degree 33, 33-caterpillars with maximum degree 44 and 22-caterpillars with maximum degree 55. On the other hand, we show that the problems are linear-time solvable on 11-caterpillars. Hence, our results imply two complexity dichotomies on trees: Colourful Components and Colourful Partition are linear-time solvable on trees with maximum degree dd if d2d \leq 2 (that is, on paths), and NP-complete otherwise; Colourful Components and Colourful Partition are linear-time solvable on kk-caterpillars if k1k \leq 1, and NP-complete otherwise. We leave three open cases which, if solved, would provide a complexity dichotomy for both problems on kk-caterpillars, for every non-negative integer kk, with respect to the maximum degree. We also show that Colourful Components is NP-complete on 55-coloured planar graphs with maximum degree 44 and on 1212-coloured planar graphs with maximum degree 33. Our results answer two open questions of Bulteau et al. mentioned in [30th Annual Symposium on Combinatorial Pattern Matching, 2019].

Keywords

Cite

@article{arxiv.1902.11191,
  title  = {Colourful components in $k$-caterpillars and planar graphs},
  author = {Janka Chlebíková and Clément Dallard},
  journal= {arXiv preprint arXiv:1902.11191},
  year   = {2025}
}
R2 v1 2026-06-23T07:54:26.878Z