English

The Parameterized Complexity of Happy Colorings

Data Structures and Algorithms 2017-08-15 v1

Abstract

Consider a graph G=(V,E)G = (V,E) and a coloring cc of vertices with colors from [][\ell]. A vertex vv is said to be happy with respect to cc if c(v)=c(u)c(v) = c(u) for all neighbors uu of vv. Further, an edge (u,v)(u,v) is happy if c(u)=c(v)c(u) = c(v). Given a partial coloring cc of VV, the Maximum Happy Vertex (Edge) problem asks for a total coloring of VV extending cc to all vertices of VV that maximises the number of happy vertices (edges). Both problems are known to be NP-hard in general even when =3\ell = 3, and is polynomially solvable when =2\ell = 2. In [IWOCA 2016] it was shown that both problems are polynomially solvable on trees, and for arbitrary kk, it was shown that MHE is \NPH{} on planar graphs and is \FPT{} parameterized by the number of precolored vertices and branchwidth. We continue the study of this problem from a parameterized prespective. Our focus is on both structural and standard parameterizations. To begin with, we establish that the problems are \FPT{} when parameterized by the treewidth and the number of colors used in the precoloring, which is a potential improvement over the total number of precolored vertices. Further, we show that both the vertex and edge variants of the problem is \FPT{} when parameterized by vertex cover and distance-to-clique parameters. We also show that the problem of maximizing the number of happy edges is \FPT{} when parameterized by the standard parameter, the number of happy edges. We show that the maximum happy vertex (edge) problem is \NPH{} on split graphs and bipartite graphs and polynomially solvable on cographs.

Keywords

Cite

@article{arxiv.1708.03853,
  title  = {The Parameterized Complexity of Happy Colorings},
  author = {Neeldhara Misra and I. Vinod Reddy},
  journal= {arXiv preprint arXiv:1708.03853},
  year   = {2017}
}

Comments

16 pages, appears in IWOCA 2017

R2 v1 2026-06-22T21:13:19.888Z