Speeding up dynamic programming for some NP-hard graph recoloring problems

  • Authors:
  • Oriana Ponta;Falk Hüffner;Rolf Niedermeier

  • Affiliations:
  • Mathematisches Institut, Ruprecht-Karls-Universität Heidelberg, Heidelberg, Germany;Institut für Informatik, Friedrich-Schiller-Universität Jena, Jena, Germany;Institut für Informatik, Friedrich-Schiller-Universität Jena, Jena, Germany

  • Venue:
  • TAMC'08 Proceedings of the 5th international conference on Theory and applications of models of computation
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

A vertex coloring of a tree is called convex if each color induces a connected component. The NP-hard CONVEX RECOLORING problem on vertex-colored trees asks for a minimum-weight change of colors to achieve a convex coloring. For the non-uniformly weighted model, where the cost of changing a vertex v to color c depends on both v and c, we improve the running time on trees from O(Δκ ċ κn) to O(3κ ċ κn), where Δ is the maximum vertex degree of the input tree T, κ is the number of colors, and n is the number of vertices in T. In the uniformly weighted case, where costs depend only on the vertex to be recolored, one can instead parameterize on the number of bad colors β ≤ κ, which is the number of colors that do not already induce a connected component. Here, we improve the running time from O(Δβ ċ βn) to O(3β ċ βn). For the case where the weights are integers bounded by M, using fast subset convolution, we further improve the running time with respect to the exponential part to O(2κ ċ κ4n2M log2(nM)) and O(2β ċ β4n2M log2(nM)), respectively. Finally, we use fast subset convolution to improve the exponential part of the running time of the related 1-CONNECTED COLORING COMPLETION problem.