English

Precoloring extension with demands on paths

Data Structures and Algorithms 2025-09-24 v1 Computational Complexity

Abstract

Let GG be a graph with a set of precolored vertices, and let us be given an integer distance parameter dd and a set of integer demands d1,,dcd_1,\dots,d_c. The Distance Precoloring Extension with Demands (DPED) problem is to compute a vertex cc-coloring of GG such that the following three conditions hold: (i) the resulting coloring respects the colors of the precolored vertices, (ii) the distance of two vertices of the same color is at least dd, and (iii) the number of vertices colored by color ii is exactly did_i. This problem is motivated by a program scheduling in commercial broadcast channels with constraints on content repetition and placement, which leads precisely to the DPED problem for paths. In this paper, we study DPED on paths and present a polynomial time exact algorithm when precolored vertices are restricted to the two ends of the path and devise an approximation algorithm for DPED with an additive approximation factor polynomially bounded by dd and the number of precolored vertices. Then, we prove that the Distance Precoloring Extension problem on paths, a less restrictive version of DPED without the demand constraints, and then DPED itself, is NP-complete. Motivated by this result, we further study the parameterized complexity of DPED on paths. We establish that the DPED problem on paths is W[1]W[1]-hard when parameterized by the number of colors and the distance. On the positive side, we devise a fixed parameter tractable (FPT) algorithm for DPED on paths when the number of colors, the distance, and the number of precolored vertices are considered as the parameters. Moreover, we prove that Distance Precoloring Extension is FPT parameterized by the distance. As a byproduct, we also obtain several results for the Distance List Coloring problem on paths.

Keywords

Cite

@article{arxiv.2509.18936,
  title  = {Precoloring extension with demands on paths},
  author = {Arun Kumar Das and Michal Opler and Tomáš Valla},
  journal= {arXiv preprint arXiv:2509.18936},
  year   = {2025}
}

Comments

Full version of paper accepted to ISAAC

R2 v1 2026-07-01T05:51:57.642Z