Parameterized complexity of happy coloring problems

Abstract In a vertex-colored graph, an edge is happy if its endpoints have the same color. Similarly, a vertex is happy if all its incident edges are happy. Motivated by the computation of homophily in social networks, we consider the algorithmic aspects of the following Maximum Happy Edges ( k -MHE ) problem: given a partially k-colored graph G and an integer l, find an extended full k-coloring of G making at least l edges happy. When we want to make l vertices happy on the same input, the problem is known as Maximum Happy Vertices ( k -MHV ). We perform an extensive study into the complexity of the problems, particularly from a parameterized viewpoint. For every k ≥ 3 , we prove both problems can be solved in time 2 n n O ( 1 ) . Moreover, by combining this result with a linear vertex kernel of size ( k + l ) for k -MHE , we show that the edge-variant can be solved in time 2 l n O ( 1 ) . In contrast, we prove that the vertex-variant remains W[1] -hard for the natural parameter l. However, the problem does admit a kernel with O ( k 2 l 2 ) vertices for the combined parameter k + l . From a structural perspective, we show both problems are fixed-parameter tractable for treewidth and neighborhood diversity, which can both be seen as sparsity and density measures of a graph. Finally, we extend the known -completeness results of the problems by showing they remain hard on bipartite graphs and split graphs. On the positive side, we show the vertex-variant can be solved optimally in polynomial-time for cographs.

[1]  Paul S. Bonsma,et al.  The Fine Details of Fast Dynamic Programming over Tree Decompositions , 2013, IPEC.

[2]  P. Lazarsfeld,et al.  Friendship as Social process: a substantive and methodological analysis , 1964 .

[3]  M. McPherson,et al.  Birds of a Feather: Homophily in Social Networks , 2001 .

[4]  Akanksha Agrawal,et al.  On the Parameterized Complexity of Happy Vertex Coloring , 2017, IWOCA.

[5]  Fedor V. Fomin,et al.  Exact exponential algorithms , 2013, CACM.

[6]  Michal Pilipczuk,et al.  Parameterized Algorithms , 2015, Springer International Publishing.

[7]  Angsheng Li,et al.  Algorithmic aspects of homophyly of networks , 2012, Theor. Comput. Sci..

[8]  Michael Lampis,et al.  Algorithmic Meta-theorems for Restrictions of Treewidth , 2010, Algorithmica.

[9]  T. Gallai Transitiv orientierbare Graphen , 1967 .

[10]  Michael R. Fellows,et al.  Quadratic Kernelization for Convex Recoloring of Trees , 2007, Algorithmica.

[11]  Anjeneya Swami Kare,et al.  Linear Time Algorithms for Happy Vertex Coloring Problems for Trees , 2016, IWOCA.

[12]  Michal Pilipczuk,et al.  A ck n 5-Approximation Algorithm for Treewidth , 2016, SIAM J. Comput..

[13]  M. R. Rao,et al.  On the multiway cut polyhedron , 1991, Networks.

[14]  Robert Ganian,et al.  Using Neighborhood Diversity to Solve Hard Problems , 2012, ArXiv.

[15]  I. Vinod Reddy,et al.  The Parameterized Complexity of Happy Colorings , 2017, IWOCA.

[16]  Andreas Björklund,et al.  Set Partitioning via Inclusion-Exclusion , 2009, SIAM J. Comput..

[17]  E. Todeva Networks , 2007 .

[18]  Frank Harary,et al.  Graph Theory , 2016 .

[19]  G. G. Stokes "J." , 1890, The New Yale Book of Quotations.

[20]  Morroe Berger,et al.  Freedom and control in modern society , 1954 .

[21]  Tao Jiang,et al.  Improved Approximation Algorithms for the Maximum Happy Vertices and Edges Problems , 2017, Algorithmica.

[22]  Yuval Rabani,et al.  Approximation Algorithms for Graph Homomorphism Problems , 2006, APPROX-RANDOM.

[23]  Danil Sagunov,et al.  On Happy Colorings, Cuts, and Structural Parameterizations , 2019, WG.

[24]  Ran Duan,et al.  Scaling Algorithms for Weighted Matching in General Graphs , 2014, SODA.

[25]  Michael R. Fellows,et al.  On the parameterized complexity of multiple-interval graph problems , 2009, Theor. Comput. Sci..

[26]  Ton Kloks Treewidth, Computations and Approximations , 1994, Lecture Notes in Computer Science.

[27]  Juho Lauri,et al.  Algorithms and hardness results for happy coloring problems , 2017, ArXiv.

[28]  Jianer Chen,et al.  An O *(1.84 k ) Parameterized Algorithm for the Multiterminal Cut Problem , 2013, FCT.

[29]  Danil Sagunov,et al.  Lower Bounds for the Happy Coloring Problems , 2019, COCOON.

[30]  Fedor V. Fomin,et al.  Kernelization: Theory of Parameterized Preprocessing , 2019 .

[31]  Mihalis Yannakakis,et al.  The complexity of multiway cuts (extended abstract) , 1992, STOC '92.

[32]  E. David,et al.  Networks, Crowds, and Markets: Reasoning about a Highly Connected World , 2010 .